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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1310
RA = 16.2913, Dec = 39.4963
tmin = 578880001, tmax = 579139201
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='341314', job_status='RUN', time_executed='2021-08-13 12:15:43.404643', time_epoch_executed='1628882143.4' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341314/ft1_4FGL_J0105.1+3929_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341314/ft1_4FGL_J0105.1+3929_daily_bin1310.fits outfile=/scratch/kocevski/341314/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1310.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=578880001.0 tmax=579139201.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 3.40
user 2.70
sys 0.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.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/341314/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.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.88
user 0.28
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/341314/ltcube_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.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/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits
.....................!
real 14.21
user 13.38
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/341314/ltcube_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits outfile=/scratch/kocevski/341314/expmap_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.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/341314/ltcube_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits
.....................!
real 156.13
user 150.98
sys 4.67

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/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits scfile=/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits outfile=/scratch/kocevski/341314/cmap_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.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.95
user 0.33
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits scfile=/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits outfile=/scratch/kocevski/341314/cmap_HighResolution_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.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.91
user 0.33
sys 0.57

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits', '/scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits', expMap='/scratch/kocevski/341314/expmap_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits', expCube='/scratch/kocevski/341314/ltcube_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341314/Model_4FGL_J0105.1+3929_daily_bin1310.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/341314/ft1_filtered_4FGL_J0105.1+3929_daily_bin1310.fits
Spacecraft file(s): /scratch/kocevski/341314/ft2_4FGL_J0105.1+3929_daily_bin1310.fits
Exposure map: /scratch/kocevski/341314/expmap_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits
Exposure cube: /scratch/kocevski/341314/ltcube_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341314/Model_4FGL_J0105.1+3929_daily_bin1310.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) = 8062.22213628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1827       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2937       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69019       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.942       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0521       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.147       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29732       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.111       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0930       1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.733       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77169       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0713       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=   8062.212     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2714 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3773        .17802E-07** at limit **
   2  Prefactor     3.1825        3.6177        .73611E-07    .66551E-04
   3  Prefactor     3.4224        2.9529        .14594E-06   -.62594E-04
   4  Prefactor     .10000E-03    20.110       -.35001E-06** at limit **
   5  Prefactor     33.422        30.662       -.18289E-06   -.85284E-04
   6  Prefactor     .10000E-03    32.566        .34978E-06** at limit **
   7  norm          1.2940        1.6040        .39961E-07   -.15526E-03
   8  Prefactor     .10000E-03    1.8212        .13926E-07** at limit **
   9  Prefactor     .63668        8.2656        .17294E-05   -.48392E-03
  10  Prefactor     3.2833        6.9949        .15382E-05    .20507E-03
  11  Prefactor     12.823        12.814        .12094E-06   -.14077E-04
  12  Prefactor     29.924        57.795       -.24496E-05   -.86445E-04
  13  norm          .10000E-03    .43351       -.33859E-07** at limit **
  14  norm          .10000E-03    .89308        .76820E-08** at limit **
  15  Prefactor     7.0513        8.3471       -.12182E-07   -.21721E-03
  16  Prefactor     .10000E-03    78.088       -.40032E-06** at limit **
  17  Prefactor     52.144        33.938       -.18199E-06   -.50267E-04
  18  norm          .10000E-03    .45952       -.10612E-07** at limit **
  19  norm          .29712        .56371        .60488E-07   -.78976E-04
  20  Prefactor     17.133        17.869       -.25451E-05   -.28637E-03
  21  Prefactor     1.0857        4.9863        .36784E-05   -.20780E-03
  22  Prefactor     67.751        65.044        .41281E-06    .67334E-04
  23  Normalizat    .77174        .21371       -.10491E-05   -.25184E-03
  24  Prefactor     1.0714        .10239       -.97879E-07   -.35344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.18249
  Prefactor  = 3.42242
  Prefactor  = 0.0001
  Prefactor  = 33.4224
  Prefactor  = 0.0001
  norm       = 1.29398
  Prefactor  = 0.0001
  Prefactor  = 0.636678
  Prefactor  = 3.28327
  Prefactor  = 12.8226
  Prefactor  = 29.9243
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.05127
  Prefactor  = 0.0001
  Prefactor  = 52.1445
  norm       = 0.0001
  norm       = 0.297122
  Prefactor  = 17.1327
  Prefactor  = 1.08569
  Prefactor  = 67.7509
  Normalizat = 0.771736
  Prefactor  = 1.07136
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.212     FROM HESSE     STATUS=OK           399 CALLS     3113 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1825        3.6181        .17746E-03   -1.5351    
   3  Prefactor     3.4224        2.9472        .13660E-03   -1.5338    
   4  Prefactor     .10000E-03    20.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.422        30.918        .69307E-04   -1.4551    
   6  Prefactor     .10000E-03    32.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2940        1.5842        .12271E-03   -1.5480    
   8  Prefactor     .10000E-03    1.8246        .11832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63668        35.460        .46602E-02   -1.5548    
  10  Prefactor     3.2833        7.0636        .22337E-03   -1.5346    
  11  Prefactor     12.823        12.811        .11186E-03   -1.4992    
  12  Prefactor     29.924        58.734        .73220E-04   -1.4613    
  13  norm          .10000E-03    .43970        .57589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .89818        .82854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0513        8.4291        .15106E-03   -1.5177    
  16  Prefactor     .10000E-03    79.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.144        33.952        .55539E-04   -1.4262    
  18  norm          .10000E-03    .46600        .59423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .29712        .56329        .41653E-04   -1.5599    
  20  Prefactor     17.133        17.970        .96824E-04   -1.4880    
  21  Prefactor     1.0857        5.2580        .32916E-03   -1.5500    
  22  Prefactor     67.751        65.711        .48769E-04   -1.4060    
  23  Normalizat    .77174        .24050        .36414E-03   -1.0113    
  24  Prefactor     1.0714        .11651        .16830E-03   -.90387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63092e-09
Minuit parameter uncertainties:
  1  2.56279e-06
  2  3.61835
  3  2.94728
  4  4.37009e-05
  5  30.9324
  6  5.68349e-05
  7  1.5843
  8  2.86148e-07
  9  9.50815
  10  7.06535
  11  12.814
  12  58.848
  13  1.14821e-07
  14  7.09906e-07
  15  8.43055
  16  5.2829e-05
  17  33.9648
  18  1.1252e-07
  19  0.563303
  20  17.9754
  21  4.77898
  22  65.781
  23  0.240832
  24  0.116537
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.282e+01  1.281e+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:  1.071e+00  1.165e-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:  7.717e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 16.291 39.496
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 8.95e-06 +/- 8.95e-06

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

Saving results to:
/scratch/kocevski/341314/likelihoodResults_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.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) = 8062.10433796
delta logL = 0.107508517891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8062.09973878
delta logL = 0.11210770431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.570       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9716       1.0000          .0000       10.000    
     3 'Normalizat'    .77926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0686       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.

 FCN=   8062.100     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.570        589.34        .24598E-02    .86900E-04
   2  Index         1.9716        5.6269        .25955        .54095E-04
   3  Normalizat    .77917        .10644        .81868E-01    .33404E-04
   4  Prefactor     1.0687        .42868E-01    .38924E-01   -.37357E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5703
  Index      = 1.97164
  Normalizat = 0.779169
  Prefactor  = 1.06866
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.100     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.570        16.970        .98391E-04   -1.4894    
   2  Index         1.9716        .65755        .10326E-01   -.65061    
   3  Normalizat    .77917        .20966        .36249E-03   -1.0085    
   4  Prefactor     1.0687        .11314        .16848E-03   -.90475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03745e-11
Minuit parameter uncertainties:
  1  16.9754
  2  0.660578
  3  0.209879
  4  0.113162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341314': 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) = 8062.09973868
delta logL = 0.112107801872

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.657e+01  1.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  1.972e+00  6.606e-01  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:  1.069e+00  1.132e-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:  7.792e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 16.291 39.496
Photon Index (Free Index): 1.97 +/- 0.66
Photon Flux (Free Index): 1.87e-08 +/- 2.14e-08
Energy Flux (Free Index): 1.39e-05 +/- 2.03e-05

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/341314/cmap_HighResolution_578880001_579139201_4FGL_J0105.1+3929_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='1.39e-05', photon_flux_error='2.38e-08', dlogl='1.12e-01', energy_flux='8.95e-06', photon_flux2='1.87e-08', job_status='DONE', time_completed='2021-08-13 12:26:54.498834', photon_index_error2='0.66', photon_index2='1.97', ts='1.95', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.57e-08', energy_flux_error2='2.03e-05', EG='0.77', time_epoch_completed='1628882814.5', return_code='0', job_id='341314', GAL2='1.07', EG2='0.78', return_code2='0', energy_flux_error='8.95e-06', photon_flux_error2='2.14e-08', ts2='2.17', photon_index='2.30' WHERE bin_id='1310' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:26:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 341314: <4FGL_J0105.1+3929_daily_bin1310> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin1310> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 12:10:27 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:13:35 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:13:35 2021
Terminated at Fri Aug 13 12:26:55 2021
Results reported at Fri Aug 13 12:26:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1310 16.2913 39.4963 578880001 579139201 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 :                                   672.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            988 sec.

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

