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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1005
RA = 16.2913, Dec = 39.4963
tmin = 499824001, tmax = 500083201
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='339953', job_status='RUN', time_executed='2021-08-13 12:09:35.777013', time_epoch_executed='1628881775.78' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339953/ft1_4FGL_J0105.1+3929_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339953/ft1_4FGL_J0105.1+3929_daily_bin1005.fits outfile=/scratch/kocevski/339953/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1005.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=499824001.0 tmax=500083201.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 6.93
user 4.98
sys 1.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.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/339953/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/339953/ft1_filtered_4FGL_J0105.1+3929_daily_bin1005.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 2.14
user 0.36
sys 1.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339953/ft1_filtered_4FGL_J0105.1+3929_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/339953/ltcube_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.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/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits
.....................!
real 16.75
user 14.48
sys 2.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339953/ft1_filtered_4FGL_J0105.1+3929_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/339953/ltcube_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.fits outfile=/scratch/kocevski/339953/expmap_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.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/339953/ltcube_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.fits
.....................!
real 195.23
user 187.15
sys 7.21

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/339953/ft1_filtered_4FGL_J0105.1+3929_daily_bin1005.fits scfile=/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits outfile=/scratch/kocevski/339953/cmap_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.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 2.17
user 0.40
sys 1.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339953/ft1_filtered_4FGL_J0105.1+3929_daily_bin1005.fits scfile=/scratch/kocevski/339953/ft2_4FGL_J0105.1+3929_daily_bin1005.fits outfile=/scratch/kocevski/339953/cmap_HighResolution_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.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 2.15
user 0.40
sys 1.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1797       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.849       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.595       1.0000         .10000E-03   10000.    
     7 'norm      '    .99095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10883E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60311       1.0000         .10000E-03   10000.    
    14 'norm      '    .79667       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53571E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .53180E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.440       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5944       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.178       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86475       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0493       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5216.525     FROM MIGRAD    STATUS=CONVERGED    996 CALLS     3602 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1790        54.590        .22726E-03    .36518E-05
   2  Prefactor     .10000E-03    3.6667        .13500E-02** at limit **
   3  Prefactor     .10000E-03    1.6806        .90954E-03** at limit **
   4  Prefactor     .10000E-03    8.0677        .18142E-02** at limit **
   5  Prefactor     73.857        39.198        .46721E-04   -.28032E-04
   6  Prefactor     51.582        48.826        .55834E-04   -.31601E-04
   7  norm          .99060        2.6738        .19167E-03    .29544E-03
   8  Prefactor     .10001E-03    12.094        .30115E-02** at limit **
   9  Prefactor     .10000E-03    3.4152        .13031E-02** at limit **
  10  Prefactor     .10000E-03    9.5631        .18142E-02** at limit **
  11  Prefactor     .10000E-03    35.088        .18142E-02** at limit **
  12  Prefactor     .10000E-03    24.218        .18142E-02** at limit **
  13  norm          .60199        1.2345        .11505E-02   -.92467E-03
  14  norm          .79623        4.0510        .27099E-03    .14134E-03
  15  Prefactor     .10011E-03    40.565        .29373E-02** at limit **
  16  Prefactor     11.906        29.643        .11610E-03    .14952E-03
  17  Prefactor     .10688E-03    43.842        .13339    ** at limit **
  18  norm          .10000E-03    .39883        .44485E-03** at limit **
  19  norm          .10000E-03    .60487        .81361E-03** at limit **
  20  Prefactor     20.440        16.075        .88592E-04    .29515E-05
  21  Prefactor     6.5947        4.0051        .10440E-03    .11195E-03
  22  Prefactor     13.092        76.519        .11034E-03   -.35546E-04
  23  Normalizat    .86474        .27852        .34125E-03    .15635E-03
  24  Prefactor     1.0494        .15201        .17090E-03    .80693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.17899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.8567
  Prefactor  = 51.5819
  norm       = 0.990599
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.601991
  norm       = 0.796227
  Prefactor  = 0.00010011
  Prefactor  = 11.9057
  Prefactor  = 0.000106878
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.4395
  Prefactor  = 6.59467
  Prefactor  = 13.0917
  Normalizat = 0.864741
  Prefactor  = 1.04939
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.525     FROM HESSE     STATUS=OK           385 CALLS     3987 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1790        54.596        .90904E-05   -1.5351    
   2  Prefactor     .10000E-03    3.6667        .27000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6808        .18191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     73.857        39.195        .93441E-05   -1.3987    
   6  Prefactor     51.582        48.825        .11167E-04   -1.4270    
   7  norm          .99060        2.6736        .76668E-05   -1.5509    
   8  Prefactor     .10001E-03    12.180        .60230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4152        .26063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60199        1.2327        .46022E-04   -1.5553    
  14  norm          .79623        4.0481        .10840E-04   -1.5530    
  15  Prefactor     .10011E-03    41.017        .58745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.906        29.643        .46441E-05   -1.5018    
  17  Prefactor     .10688E-03    43.633        .13382       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .39883        .88971E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .60559        .16272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.440        16.074        .35437E-05   -1.4803    
  21  Prefactor     6.5947        4.0048        .41758E-05   -1.5194    
  22  Prefactor     13.092        76.615        .44137E-05   -1.4984    
  23  Normalizat    .86474        .27840        .13650E-04   -.97710    
  24  Prefactor     1.0494        .15205        .34179E-04   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66116e-09
Minuit parameter uncertainties:
  1  26.3762
  2  5.37226e-06
  3  2.6072e-08
  4  7.16597e-07
  5  39.209
  6  48.8629
  7  2.6739
  8  0.000795302
  9  5.17363e-06
  10  1.10768e-05
  11  6.9179e-05
  12  5.15632e-05
  13  1.23279
  14  3.59082
  15  0.00424658
  16  29.6799
  17  0.0346723
  18  3.07747e-07
  19  4.07786e-05
  20  16.0776
  21  4.00494
  22  63.4636
  23  0.27886
  24  0.152112
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  6.918e-05  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.049e+00  1.521e-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:  8.647e-01  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/339953/likelihoodResults_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.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) = 5216.52515647
delta logL = -0.000135743489409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5216.52502093
delta logL = -2.01082002604e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3749       1.0000          .0000       10.000    
     3 'Normalizat'    .86474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   5216.525     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6229.3        .90712E-02** at limit **
   2  Index         2.3310        6.9122        .50000        .11850E-04
   3  Normalizat    .86473        .61129E-01    .77100E-01   -.26036E-03
   4  Prefactor     1.0494        .33533E-01    .39946E-01   -.21643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33103
  Normalizat = 0.864733
  Prefactor  = 1.04939
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.525     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3310        6.1556        .50000       -.56308    
   3  Normalizat    .86473        .26413        .34125E-03   -.97711    
   4  Prefactor     1.0494        .14564        .17089E-03   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34582e-10
Minuit parameter uncertainties:
  1  0.000139753
  2  4.63725
  3  0.264521
  4  0.145695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339953': 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) = 5216.5250208
delta logL = -7.43530108593e-08

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  1.398e-04  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.331e+00  4.637e+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:  1.049e+00  1.457e-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:  8.647e-01  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.291 39.496

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/339953/cmap_HighResolution_499824001_500083201_4FGL_J0105.1+3929_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2021-08-13 12:21:49.308480', job_id='339953', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1628882509.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-7.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1005' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 339953: <4FGL_J0105.1+3929_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin1005> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 12:05:49 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:07:10 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:07:10 2021
Terminated at Fri Aug 13 12:21:49 2021
Results reported at Fri Aug 13 12:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1005 16.2913 39.4963 499824001 500083201 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            960 sec.

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

