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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1003
RA = 16.2913, Dec = 39.4963
tmin = 499305601, tmax = 499564801
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='339950', job_status='RUN', time_executed='2021-08-13 12:11:32.873713', time_epoch_executed='1628881892.87' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339950/ft1_4FGL_J0105.1+3929_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339950/ft1_4FGL_J0105.1+3929_daily_bin1003.fits outfile=/scratch/kocevski/339950/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1003.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=499305601.0 tmax=499564801.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.89
user 5.16
sys 1.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.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/339950/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/339950/ft1_filtered_4FGL_J0105.1+3929_daily_bin1003.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.01
user 0.35
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339950/ft1_filtered_4FGL_J0105.1+3929_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/339950/ltcube_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.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/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits
.....................!
real 15.75
user 13.60
sys 2.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339950/ft1_filtered_4FGL_J0105.1+3929_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/339950/ltcube_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.fits outfile=/scratch/kocevski/339950/expmap_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.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/339950/ltcube_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.fits
.....................!
real 192.93
user 185.81
sys 6.77

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/339950/ft1_filtered_4FGL_J0105.1+3929_daily_bin1003.fits scfile=/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits outfile=/scratch/kocevski/339950/cmap_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.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.06
user 0.40
sys 1.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339950/ft1_filtered_4FGL_J0105.1+3929_daily_bin1003.fits scfile=/scratch/kocevski/339950/ft2_4FGL_J0105.1+3929_daily_bin1003.fits outfile=/scratch/kocevski/339950/cmap_HighResolution_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.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.24
user 0.41
sys 1.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    107.32       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12199E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.134       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2210       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2482       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0699       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.031       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99695       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0353       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=   3167.987     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     3082 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.174       -.13890E-06** at limit **
   2  Prefactor     .10000E-03    14.630       -.56771E-06** at limit **
   3  Prefactor     .10000E-03    4.6415       -.58928E-06** at limit **
   4  Prefactor     .10000E-03    15.400       -.22036E-06** at limit **
   5  Prefactor     48.268        40.770        .33246E-06    .17488E-04
   6  Prefactor     107.30        94.204        .16687E-06    .21407E-05
   7  norm          .10000E-03    1.2116       -.77841E-07** at limit **
   8  Prefactor     .10000E-03    7.1690       -.25523E-06** at limit **
   9  Prefactor     .10000E-03    50.940       -.26255E-05** at limit **
  10  Prefactor     .10000E-03    45.474       -.17283E-05** at limit **
  11  Prefactor     .10000E-03    28.577       -.57442E-06** at limit **
  12  Prefactor     33.127        59.796        .50301E-06    .26406E-05
  13  norm          3.2208        1.9629        .18940E-07    .55541E-04
  14  norm          5.2480        5.6371        .11762E-05    .10585E-03
  15  Prefactor     .10000E-03    5.1452       -.36039E-06** at limit **
  16  Prefactor     .10000E-03    25.701       -.22204E-06** at limit **
  17  Prefactor     .10000E-03    51.130       -.90058E-07** at limit **
  18  norm          1.0702        2.5228        .22115E-06    .36028E-04
  19  norm          1.0442        1.1294        .73838E-08    .34314E-04
  20  Prefactor     .10000E-03    13.191        .20638E-06** at limit **
  21  Prefactor     .10000E-03    3.1455        .23994E-05** at limit **
  22  Prefactor     12.198        215.63       -.30900E-05    .39293E-05
  23  Normalizat    .99676        .31719       -.37981E-05    .45271E-04
  24  Prefactor     1.0354        .17651        .21712E-05   -.73039E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2681
  Prefactor  = 107.301
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1275
  norm       = 3.22076
  norm       = 5.24798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07017
  norm       = 1.04424
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1975
  Normalizat = 0.996757
  Prefactor  = 1.03539
 **********
 **   18 **HESSE 
 **********

 FCN=   3167.987     FROM HESSE     STATUS=OK           395 CALLS     3477 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7364        .11835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.268        40.786        .28862E-03   -1.4317    
   6  Prefactor     107.30        94.258        .19411E-03   -1.3633    
   7  norm          .10000E-03    1.2132        .60504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2233        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.861        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    47.275        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.127        59.797        .69614E-04   -1.4556    
  13  norm          3.2208        1.9600        .59529E-04   -1.5349    
  14  norm          5.2480        5.6855        .67638E-03   -1.5250    
  15  Prefactor     .10000E-03    5.1855        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0702        2.4686        .13148E-03   -1.5501    
  19  norm          1.0442        1.1072        .59891E-04   -1.5504    
  20  Prefactor     .10000E-03    13.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2282        .98028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.198        212.84        .11549E-03   -1.5009    
  23  Normalizat    .99676        .35233        .32961E-03   -.93139    
  24  Prefactor     1.0354        .19705        .18007E-03   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1685e-10
Minuit parameter uncertainties:
  1  2.383e-06
  2  2.25111e-06
  3  2.26535e-06
  4  1.60338e-06
  5  40.8099
  6  94.39
  7  9.31592e-08
  8  4.81017e-07
  9  3.6423e-05
  10  3.08708e-05
  11  8.93545e-06
  12  59.9053
  13  1.96002
  14  5.68612
  15  1.85114e-06
  16  3.45809e-05
  17  7.86788e-06
  18  2.4688
  19  1.10724
  20  5.81533e-07
  21  2.02515e-05
  22  102.332
  23  0.353158
  24  0.197187
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  8.935e-06  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.035e+00  1.972e-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:  9.968e-01  3.532e-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: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339950/likelihoodResults_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.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): 102
logL (Free Index) = 3167.98758697
delta logL = -0.000166062298831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3167.98742076
delta logL = 1.39976236824e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8512       1.0000          .0000       10.000    
     3 'Normalizat'    .99675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0354       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=   3167.987     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      245 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.288        .90712E-02** at limit **
   2  Index         2.8532        7.8641        .50000       -.60287E-06
   3  Normalizat    .99675        .56505E-02    .74493E-01    .13995E-04
   4  Prefactor     1.0354        .31552E-02    .40853E-01    .48512E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85323
  Normalizat = 0.996753
  Prefactor  = 1.03539
 **********
 **   18 **HESSE 
 **********

 FCN=   3167.987     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    906.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8532        5.8491        .50000       -.44378    
   3  Normalizat    .99675        .44867E-01    .32962E-03   -.93139    
   4  Prefactor     1.0354        .25092E-01    .18007E-03   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33412e-08
Minuit parameter uncertainties:
  1  0.000734535
  2  777.844
  3  0.0448682
  4  0.025092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339950': 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): 102
logL (Free Index) = 3167.98742075
delta logL = 1.53118435264e-07

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  7.345e-04  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.853e+00  7.778e+02  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.035e+00  2.509e-02  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:  9.968e-01  4.487e-02  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/339950/cmap_HighResolution_499305601_499564801_4FGL_J0105.1+3929_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-08-13 12:20:55.182019', job_id='339950', GAL2='1.04', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1628882455.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1003' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 339950: <4FGL_J0105.1+3929_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin1003> 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) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:07:08 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:08 2021
Terminated at Fri Aug 13 12:20:56 2021
Results reported at Fri Aug 13 12:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1003 16.2913 39.4963 499305601 499564801 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            907 sec.

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

