/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 67 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0105.1+3929_daily_bin380
RA = 16.2913, Dec = 39.4963
tmin = 337824001, tmax = 338083201
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='337056', job_status='RUN', time_executed='2021-08-13 11:59:52.485637', time_epoch_executed='1628881192.49' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337056/ft1_4FGL_J0105.1+3929_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337056/ft1_4FGL_J0105.1+3929_daily_bin380.fits outfile=/scratch/kocevski/337056/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin380.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=337824001.0 tmax=338083201.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 2.88
user 2.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.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/337056/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin380.fits evtable="EVENTS" outfile="/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.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.44
user 0.30
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/337056/ltcube_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.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/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits
.....................!
real 11.52
user 11.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/337056/ltcube_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits outfile=/scratch/kocevski/337056/expmap_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.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/337056/ltcube_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits
.....................!
real 161.48
user 157.06
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits outfile=/scratch/kocevski/337056/cmap_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.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.2913 yref=39.4963 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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits outfile=/scratch/kocevski/337056/cmap_HighResolution_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.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.2913 yref=39.4963 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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/337056/Model_4FGL_J0105.1+3929_daily_bin380.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/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits.....................!
real 71.83
user 70.60
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits', '/scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits', expMap='/scratch/kocevski/337056/expmap_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits', expCube='/scratch/kocevski/337056/ltcube_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/337056/Model_4FGL_J0105.1+3929_daily_bin380.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/337056/ft1_filtered_4FGL_J0105.1+3929_daily_bin380.fits
Spacecraft file(s): /scratch/kocevski/337056/ft2_4FGL_J0105.1+3929_daily_bin380.fits
Exposure map: /scratch/kocevski/337056/expmap_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits
Exposure cube: /scratch/kocevski/337056/ltcube_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/337056/Model_4FGL_J0105.1+3929_daily_bin380.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) = 8355.62236421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10670E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5013       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8180       1.0000         .10000E-03   10000.    
    19 'norm      '    .53222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2951       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4446       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8355.611     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2746 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7825        16.181       -.26710E-06   -.28373E-04
   2  Prefactor     .10000E-03    3.3782       -.88606E-07** at limit **
   3  Prefactor     .10000E-03    1.2657        .28643E-07** at limit **
   4  Prefactor     .10000E-03    9.7117        .15448E-06** at limit **
   5  Prefactor     .10002E-03    21.737        .78533E-07** at limit **
   6  Prefactor     .10000E-03    75.509        .17330E-04** at limit **
   7  norm          .10000E-03    .58727       -.28953E-08** at limit **
   8  Prefactor     4.6212        4.9712       -.95038E-07   -.78892E-04
   9  Prefactor     8.5252        11.154        .55079E-05    .28942E-03
  10  Prefactor     3.2211        8.3145        .13578E-05   -.79351E-05
  11  Prefactor     1.7395        9.9399        .41832E-05   -.82129E-03
  12  Prefactor     .10000E-03    61.307       -.13930E-04** at limit **
  13  norm          1.5010        1.1033       -.98745E-07   -.10015E-03
  14  norm          2.0018        2.0435        .41300E-07   -.82941E-04
  15  Prefactor     .10000E-03    6.6418        .17290E-07** at limit **
  16  Prefactor     .10000E-03    36.083        .28771E-05** at limit **
  17  Prefactor     .10000E-03    12.699        .16393E-06** at limit **
  18  norm          1.8180        1.0254        .43682E-07    .40180E-04
  19  norm          .53229        .43009       -.51419E-08   -.17532E-03
  20  Prefactor     4.2996        8.9207       -.16051E-05   -.12986E-03
  21  Prefactor     .10000E-03    1.0894        .36002E-07** at limit **
  22  Prefactor     .10000E-03    48.460       -.18787E-05** at limit **
  23  Normalizat    1.4446        .18107       -.11242E-05   -.57422E-04
  24  Prefactor     .73265        .90241E-01   -.94470E-07   -.19510E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.78252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 4.62125
  Prefactor  = 8.52516
  Prefactor  = 3.22111
  Prefactor  = 1.73947
  Prefactor  = 0.000100002
  norm       = 1.50101
  norm       = 2.00182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81805
  norm       = 0.532288
  Prefactor  = 4.29957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44463
  Prefactor  = 0.73265
 **********
 **   18 **HESSE 
 **********

 FCN=   8355.611     FROM HESSE     STATUS=OK           409 CALLS     3155 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7825        16.182        .15402E-03   -1.5187    
   2  Prefactor     .10000E-03    3.3983        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2791        .10038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    24.616        .11421       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    76.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .59151        .68401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6212        4.9677        .18731E-03   -1.5278    
   9  Prefactor     8.5252        11.224        .13736E-03   -1.5124    
  10  Prefactor     3.2211        8.3678        .22568E-03   -1.5349    
  11  Prefactor     1.7395        35.559        .15886E-02   -1.5444    
  12  Prefactor     .10000E-03    62.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5010        1.1051        .34944E-04   -1.5463    
  14  norm          2.0018        2.0352        .12789E-03   -1.5425    
  15  Prefactor     .10000E-03    6.8270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8180        1.0255        .30974E-04   -1.5438    
  19  norm          .53229        .41459        .52246E-03   -1.5562    
  20  Prefactor     4.2996        8.9284        .19439E-03   -1.5293    
  21  Prefactor     .10000E-03    1.1133        .93118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    48.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4446        .21123        .27012E-03   -.79346    
  24  Prefactor     .73265        .10475        .18852E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71148e-09
Minuit parameter uncertainties:
  1  16.1926
  2  2.86273e-06
  3  1.59982e-06
  4  1.10458e-05
  5  0.001396
  6  0.00121917
  7  1.42043e-06
  8  4.96818
  9  11.227
  10  8.3708
  11  15.7396
  12  0.000769507
  13  1.10514
  14  2.03523
  15  6.14315e-06
  16  0.000107481
  17  9.15331e-06
  18  1.0255
  19  0.414594
  20  8.93113
  21  4.70214e-06
  22  6.80149e-05
  23  0.211353
  24  0.104782
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.739e+00  1.574e+01  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.326e-01  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.445e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 16.291 39.496
Photon Flux Upper Limit: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/337056/likelihoodResults_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.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) = 8355.61084914
delta logL = 1.48004510265e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8355.61082858
delta logL = 3.53620707756e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7394       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3211       1.0000          .0000       10.000    
     3 'Normalizat'    1.4446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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.

 FCN=   8355.611     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      267 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7127        40.001        .15907E-02    .13514E-03
   2  Index         2.3285        2.5961        .11489E-01   -.17356E-05
   3  Normalizat    1.4445        .20037        .27013E-03    .82742E-04
   4  Prefactor     .73269        .10340        .18851E-03    .10662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71271
  Index      = 2.32853
  Normalizat = 1.44452
  Prefactor  = 0.732686
 **********
 **   18 **HESSE 
 **********

 FCN=   8355.611     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7127        36.088        .31813E-03   -1.5446    
   2  Index         2.3285        2.4859        .45956E-03   -.56367    
   3  Normalizat    1.4445        .20055        .10805E-04   -.79350    
   4  Prefactor     .73269        .10346        .75406E-05   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12981e-12
Minuit parameter uncertainties:
  1  15.7339
  2  2.65764
  3  0.200661
  4  0.103484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337056': 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) = 8355.61082108
delta logL = 4.28599250881e-05

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.713e+00  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.329e+00  2.658e+00  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.327e-01  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.445e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 16.291 39.496

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/337056/cmap_HighResolution_337824001_338083201_4FGL_J0105.1+3929_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-08-13 12:11:28.144205', job_id='337056', GAL2='0.73', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1628881888.14', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.29e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='380' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 337056: <4FGL_J0105.1+3929_daily_bin380> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin380> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 11:56:18 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:58:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:58:29 2021
Terminated at Fri Aug 13 12:11:28 2021
Results reported at Fri Aug 13 12:11:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin380 16.2913 39.4963 337824001 338083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0105.1+3929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            910 sec.

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

