/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 10 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 = 7515
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0107.4+0334_daily_bin975
RA = 16.8508, Dec = 3.5691
tmin = 492048001, tmax = 492307201
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='347606', job_status='RUN', time_executed='2021-08-13 16:45:36.227832', time_epoch_executed='1628898336.23' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/347606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/347606/ft1_4FGL_J0107.4+0334_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/347606/ft1_4FGL_J0107.4+0334_daily_bin975.fits outfile=/scratch/kocevski/347606/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin975.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=492048001.0 tmax=492307201.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 12.03
user 3.51
sys 8.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.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/347606/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin975.fits evtable="EVENTS" outfile="/scratch/kocevski/347606/ft1_filtered_4FGL_J0107.4+0334_daily_bin975.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 8.71
user 0.34
sys 8.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/347606/ft1_filtered_4FGL_J0107.4+0334_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/347606/ltcube_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.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/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits
.....................!
real 21.80
user 12.31
sys 9.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/347606/ft1_filtered_4FGL_J0107.4+0334_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/347606/ltcube_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.fits outfile=/scratch/kocevski/347606/expmap_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.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/347606/ltcube_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.fits
.....................!
real 204.55
user 187.85
sys 16.30

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/347606/ft1_filtered_4FGL_J0107.4+0334_daily_bin975.fits scfile=/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits outfile=/scratch/kocevski/347606/cmap_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.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 8.62
user 0.39
sys 8.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/347606/ft1_filtered_4FGL_J0107.4+0334_daily_bin975.fits scfile=/scratch/kocevski/347606/ft2_4FGL_J0107.4+0334_daily_bin975.fits outfile=/scratch/kocevski/347606/cmap_HighResolution_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.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 8.63
user 0.40
sys 8.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7028       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1178       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7692       1.0000         .10000E-03   10000.    
    10 'norm      '    9.8389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1943       1.0000         .10000E-03   10000.    
    13 'norm      '    50.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76357       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .65876       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2468       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=   11755.70     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1971 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23379        3.4948       -.16172E-05    .11270E-02
   2  Prefactor     7.7055        10.880       -.20159E-06    .10481E-03
   3  norm          4.1161        4.9101        .17412E-06   -.29639E-04
   4  Prefactor     .10000E-03    6.4898        .16912E-07** at limit **
   5  Prefactor     .10000E-03    3.2573        .44745E-07** at limit **
   6  Prefactor     5.5170        2.3369        .47032E-07    .58907E-04
   7  Prefactor     .10000E-03    .98900       -.25770E-06** at limit **
   8  norm          2.5712        4.6755        .68391E-06    .34515E-04
   9  Prefactor     2.7308        31.321       -.50556E-05   -.15646E-03
  10  norm          9.8352        11.888        .16518E-06    .18451E-04
  11  Prefactor     .10000E-03    42.865        .10837E-05** at limit **
  12  Prefactor     4.1867        179.85       -.35322E-05   -.19596E-04
  13  norm          50.733        3.4711        .32202E-07    .14282E-03
  14  Prefactor     13.336        37.502        .48084E-05    .14936E-03
  15  Prefactor     1.2352        12.035        .29837E-05    .45187E-05
  16  Prefactor     7.0932        7.4704       -.28081E-06   -.48982E-04
  17  Prefactor     4.3487        5.3391        .27320E-06    .28824E-04
  18  Prefactor     .10000E-03    9.3881        .13876E-06** at limit **
  19  Prefactor     .76317        2.9115        .28749E-05    .76484E-04
  20  Normalizat    .65871        .17111       -.14348E-05    .10718E-04
  21  Prefactor     1.2469        .13243        .33870E-07   -.26958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.233792
  Prefactor  = 7.70551
  norm       = 4.11609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.517
  Prefactor  = 0.0001
  norm       = 2.57124
  Prefactor  = 2.73083
  norm       = 9.83516
  Prefactor  = 0.0001
  Prefactor  = 4.18673
  norm       = 50.7331
  Prefactor  = 13.3365
  Prefactor  = 1.23522
  Prefactor  = 7.09319
  Prefactor  = 4.34866
  Prefactor  = 0.0001
  Prefactor  = 0.763165
  Normalizat = 0.658706
  Prefactor  = 1.24686
 **********
 **   18 **HESSE 
 **********

 FCN=   11755.70     FROM HESSE     STATUS=OK           329 CALLS     2300 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23379        17.537        .35165E-02   -1.5611    
   2  Prefactor     7.7055        10.828        .14449E-03   -1.5153    
   3  norm          4.1161        4.9083        .19865E-03   -1.5302    
   4  Prefactor     .10000E-03    6.4952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5170        2.3363        .10392E-03   -1.5238    
   7  Prefactor     .10000E-03    1.0045        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5712        4.6256        .25474E-03   -1.5387    
   9  Prefactor     2.7308        32.931        .24457E-03   -1.5377    
  10  norm          9.8352        11.901        .12775E-03   -1.5081    
  11  Prefactor     .10000E-03    43.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1867        180.49        .19678E-03   -1.5299    
  13  norm          50.733        3.4631        .47467E-04   -1.4282    
  14  Prefactor     13.336        38.421        .10976E-03   -1.4977    
  15  Prefactor     1.2352        12.298        .40272E-03   -1.5486    
  16  Prefactor     7.0932        7.4840        .15067E-03   -1.5175    
  17  Prefactor     4.3487        5.3350        .19316E-03   -1.5291    
  18  Prefactor     .10000E-03    9.3923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76317        2.9898        .35862E-03   -1.5533    
  20  Normalizat    .65871        .19537        .39794E-03   -1.0555    
  21  Prefactor     1.2469        .15346        .24195E-03   -.84901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18848e-08
Minuit parameter uncertainties:
  1  4.05001
  2  10.8305
  3  4.90881
  4  2.71449e-06
  5  2.96463e-06
  6  2.33633
  7  3.47678e-06
  8  4.62623
  9  18.9788
  10  11.904
  11  0.000212412
  12  55.1566
  13  3.46309
  14  38.492
  15  7.79667
  16  7.48501
  17  5.33559
  18  1.39932e-05
  19  2.99034
  20  0.195579
  21  0.15351
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  4.187e+00  5.516e+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.247e+00  1.535e-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:  6.587e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/347606/likelihoodResults_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.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) = 11755.7003991
delta logL = 0.00288988149441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11755.7003313
delta logL = 0.00295766859745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5837       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5690       1.0000          .0000       10.000    
     3 'Normalizat'    .65787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2472       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=   11755.70     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      260 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6485        370.96        .47003E-02    .10328E-04
   2  Index         2.5642        .46862        .50000       -.42137E-04
   3  Normalizat    .65774        .81754E-02    .89863E-01    .38301E-04
   4  Prefactor     1.2472        .66696E-02    .54719E-01   -.16795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6485
  Index      = 2.56422
  Normalizat = 0.657739
  Prefactor  = 1.2472
 **********
 **   18 **HESSE 
 **********

 FCN=   11755.70     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6485        116.20        .18801E-03   -1.5277    
   2  Index         2.5642        2.5172        .57811E-02   -.50883    
   3  Normalizat    .65774        .18570        .39817E-03   -1.0559    
   4  Prefactor     1.2472        .15134        .24191E-03   -.84891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91639e-10
Minuit parameter uncertainties:
  1  46.5833
  2  2.68288
  3  0.185876
  4  0.151389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/347606': 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) = 11755.7003286
delta logL = 0.00296043880007

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  4.649e+00  4.658e+01  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.564e+00  2.683e+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.247e+00  1.514e-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:  6.577e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/347606/cmap_HighResolution_492048001_492307201_4FGL_J0107.4+0334_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-08-13 17:02:18.960553', job_id='347606', GAL2='1.25', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1628899338.96', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.96e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='975' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:02:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 347606: <4FGL_J0107.4+0334_daily_bin975> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin975> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 12:30:35 2021
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:41:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 12:41:07 2021
Terminated at Fri Aug 13 17:02:21 2021
Results reported at Fri Aug 13 17:02:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin975 16.8508 3.5691 492048001 492307201 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 :                                   1142.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             66.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   15673 sec.
    Turnaround time :                            16306 sec.

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

