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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1243
RA = 16.2913, Dec = 39.4963
tmin = 561513601, tmax = 561772801
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='341216', job_status='RUN', time_executed='2021-08-13 12:16:38.806197', time_epoch_executed='1628882198.81' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341216/ft1_4FGL_J0105.1+3929_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341216/ft1_4FGL_J0105.1+3929_daily_bin1243.fits outfile=/scratch/kocevski/341216/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1243.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=561513601.0 tmax=561772801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 12.56
user 3.58
sys 8.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.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/341216/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1243.fits evtable="EVENTS" outfile="/scratch/kocevski/341216/ft1_filtered_4FGL_J0105.1+3929_daily_bin1243.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 9.23
user 0.34
sys 8.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341216/ft1_filtered_4FGL_J0105.1+3929_daily_bin1243.fits" evtable="EVENTS" scfile=/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits sctable="SC_DATA" outfile=/scratch/kocevski/341216/ltcube_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.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/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits
.....................!
real 23.45
user 13.30
sys 10.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341216/ft1_filtered_4FGL_J0105.1+3929_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/341216/ltcube_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.fits outfile=/scratch/kocevski/341216/expmap_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.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/341216/ltcube_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.fits
.....................!
real 201.86
user 185.19
sys 16.22

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/341216/ft1_filtered_4FGL_J0105.1+3929_daily_bin1243.fits scfile=/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits outfile=/scratch/kocevski/341216/cmap_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.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 9.02
user 0.40
sys 8.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341216/ft1_filtered_4FGL_J0105.1+3929_daily_bin1243.fits scfile=/scratch/kocevski/341216/ft2_4FGL_J0105.1+3929_daily_bin1243.fits outfile=/scratch/kocevski/341216/cmap_HighResolution_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.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 9.12
user 0.40
sys 8.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    216.21       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5619       1.0000         .10000E-03   10000.    
    14 'norm      '    58.118       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5327       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.290       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63183       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2152       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=   2826.400     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     3063 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.234       -.36390E-05** at limit **
   2  Prefactor     11.141        18.844        .55826E-06    .12780E-04
   3  Prefactor     .10000E-03    6.7067       -.38849E-07** at limit **
   4  Prefactor     .10000E-03    45.106        .34720E-04** at limit **
   5  Prefactor     .10000E-03    52.978       -.53749E-04** at limit **
   6  Prefactor     .10000E-03    92.761        .15893E-04** at limit **
   7  norm          2.9429        3.0003        .12222E-06    .10540E-03
   8  Prefactor     .10000E-03    16.061        .59526E-05** at limit **
   9  Prefactor     .10000E-03    16.706       -.30899E-05** at limit **
  10  Prefactor     .10000E-03    9.4269        .38086E-06** at limit **
  11  Prefactor     49.932        58.020        .55265E-05    .24735E-04
  12  Prefactor     216.25        208.49        .21112E-04    .56448E-04
  13  norm          1.5620        1.9231        .81832E-07   -.20604E-03
  14  norm          58.125        64.771        .77772E-05    .60106E-03
  15  Prefactor     .10000E-03    7.8169       -.74834E-07** at limit **
  16  Prefactor     .10000E-03    1238.5       -.14388E-02** at limit **
  17  Prefactor     .10000E-03    140.98        .46952E-04** at limit **
  18  norm          3.5328        2.5696        .20156E-07    .81165E-04
  19  norm          .10000E-03    2.0906       -.40839E-07** at limit **
  20  Prefactor     .10000E-03    12.260       -.19871E-06** at limit **
  21  Prefactor     3.9551        13.713       -.12815E-05   -.14283E-03
  22  Prefactor     16.309        1391.4        .45534E-04    .34619E-05
  23  Normalizat    .63210        .38801       -.90350E-06    .85871E-04
  24  Prefactor     1.2150        .22303       -.13398E-05    .38677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.1408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.9322
  Prefactor  = 216.245
  norm       = 1.56201
  norm       = 58.1251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.53279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95505
  Prefactor  = 16.3086
  Normalizat = 0.632098
  Prefactor  = 1.21503
 **********
 **   18 **HESSE 
 **********

 FCN=   2826.400     FROM HESSE     STATUS=OK           385 CALLS     3448 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.141        18.920        .12004E-03   -1.5040    
   3  Prefactor     .10000E-03    6.7191        .13447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    45.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9429        3.0010        .89505E-04   -1.5365    
   8  Prefactor     .10000E-03    16.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4286        .15944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.932        57.991        .56756E-04   -1.4294    
  12  Prefactor     216.25        208.69        .13751E-03   -1.2756    
  13  norm          1.5620        1.8887        .75911E-04   -1.5458    
  14  norm          58.125        64.880        .52625E-04   -1.4182    
  15  Prefactor     .10000E-03    7.8456        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1238.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    140.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5328        2.5725        .70797E-04   -1.5332    
  19  norm          .10000E-03    2.0936        .75063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9551        13.443        .20279E-03   -1.5310    
  22  Prefactor     16.309        1344.6        .99234E-04   -1.4900    
  23  Normalizat    .63210        .42649        .42672E-03   -1.0664    
  24  Prefactor     1.2150        .25037        .18476E-03   -.85870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86748e-09
Minuit parameter uncertainties:
  1  6.72649e-06
  2  18.9304
  3  8.52498e-07
  4  6.60495e-06
  5  1.92283e-05
  6  2.58643e-05
  7  3.00112
  8  4.58534e-05
  9  3.0579e-05
  10  2.13101e-05
  11  58.0567
  12  209.408
  13  1.88877
  14  64.9586
  15  1.46795e-05
  16  0.00116199
  17  0.000151219
  18  2.57257
  19  6.29401e-06
  20  4.94025e-06
  21  13.4535
  22  303.513
  23  0.428743
  24  0.25062
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  4.993e+01  5.806e+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.215e+00  2.506e-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:  6.321e-01  4.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 16.291 39.496
Photon Flux Upper Limit: 3.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341216/likelihoodResults_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.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) = 2826.37255621
delta logL = 0.0271527294708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2826.36678107
delta logL = 0.032927863328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.949       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5104       1.0000          .0000       10.000    
     3 'Normalizat'    .61407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2210       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=   2826.367     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.947        60.672        .60474E-04    .15340E-03
   2  Index         2.5105        .84769        .66159E-02    .61102E-04
   3  Normalizat    .61390        .42001        .43259E-03   -.30694E-03
   4  Prefactor     1.2210        .24434        .18435E-03   -.67321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.947
  Index      = 2.5105
  Normalizat = 0.613903
  Prefactor  = 1.22104
 **********
 **   18 **HESSE 
 **********

 FCN=   2826.367     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.947        58.289        .12095E-04   -1.4381    
   2  Index         2.5105        .81353        .26463E-03   -.52117    
   3  Normalizat    .61390        .41975        .17304E-04   -1.0740    
   4  Prefactor     1.2210        .24419        .36870E-04   -.85686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05864e-09
Minuit parameter uncertainties:
  1  58.3643
  2  0.818376
  3  0.421955
  4  0.244416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341216': 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) = 2826.366781
delta logL = 0.0329279367702

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  4.395e+01  5.836e+01  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.511e+00  8.184e-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.221e+00  2.444e-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:  6.139e-01  4.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 16.291 39.496
Photon Index (Free Index): 2.51 +/- 0.82
Photon Flux (Free Index): 1.15e-07 +/- 1.49e-07
Energy Flux (Free Index): 3.31e-05 +/- 3.73e-05

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/341216/cmap_HighResolution_561513601_561772801_4FGL_J0105.1+3929_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-02', comment='SUCCESS', energy_flux2='3.31e-05', dlogl='3.29e-02', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-08-13 12:26:54.693813', photon_index_error2='0.82', photon_index2='2.51', ts='0.98', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='3.31e-07', energy_flux_error2='3.73e-05', EG='0.63', time_epoch_completed='1628882814.69', return_code='0', job_id='341216', GAL2='1.22', EG2='0.61', return_code2='0', photon_flux_error2='1.49e-07', ts2='1.04', photon_index='2.30' WHERE bin_id='1243' 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@bullet0289>
Subject: Job 341216: <4FGL_J0105.1+3929_daily_bin1243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1243 16.2913 39.4963 561513601 561772801 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 :                                   748.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            996 sec.

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

