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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin297
RA = 16.2913, Dec = 39.4963
tmin = 316310401, tmax = 316569601
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='336899', job_status='RUN', time_executed='2021-08-13 11:58:27.010510', time_epoch_executed='1628881107.01' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336899/ft1_4FGL_J0105.1+3929_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336899/ft1_4FGL_J0105.1+3929_daily_bin297.fits outfile=/scratch/kocevski/336899/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin297.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=316310401.0 tmax=316569601.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 4.77
user 3.35
sys 1.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336899/ft1_filtered_4FGL_J0105.1+3929_daily_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/336899/ltcube_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.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/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits
.....................!
real 15.60
user 13.93
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336899/ft1_filtered_4FGL_J0105.1+3929_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/336899/ltcube_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.fits outfile=/scratch/kocevski/336899/expmap_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.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/336899/ltcube_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.fits
.....................!
real 194.95
user 187.91
sys 6.63

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/336899/ft1_filtered_4FGL_J0105.1+3929_daily_bin297.fits scfile=/scratch/kocevski/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits outfile=/scratch/kocevski/336899/cmap_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.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 1.65
user 0.35
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336899/ft1_filtered_4FGL_J0105.1+3929_daily_bin297.fits scfile=/scratch/kocevski/336899/ft2_4FGL_J0105.1+3929_daily_bin297.fits outfile=/scratch/kocevski/336899/cmap_HighResolution_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.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 1.67
user 0.39
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5221       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7738       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6586       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2497       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4715       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9358       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69231       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0950       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=   8093.907     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2690 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9198        12.253        .66017E-07   -.26544E-04
   2  Prefactor     .10000E-03    3.0527       -.20049E-09** at limit **
   3  Prefactor     2.5225        3.4267        .47940E-06    .11188E-03
   4  Prefactor     .10000E-03    10.901       -.66729E-06** at limit **
   5  Prefactor     20.602        26.129        .11041E-05   -.27714E-04
   6  Prefactor     .10000E-03    13.239        .66003E-06** at limit **
   7  norm          .10000E-03    1.4661        .10452E-05** at limit **
   8  Prefactor     .10000E-03    2.1098       -.14662E-06** at limit **
   9  Prefactor     .10000E-03    4.7227        .23130E-06** at limit **
  10  Prefactor     17.378        9.7039        .42635E-06    .13197E-03
  11  Prefactor     .10000E-03    4.5300       -.18152E-06** at limit **
  12  Prefactor     .10000E-03    35.154       -.13718E-05** at limit **
  13  norm          1.7740        1.3466       -.92784E-07   -.55194E-04
  14  norm          2.6579        2.6311        .13561E-07   -.14686E-03
  15  Prefactor     3.7957        5.6939        .26424E-05   -.88859E-04
  16  Prefactor     .10000E-03    40.215        .15109E-05** at limit **
  17  Prefactor     .10000E-03    17.503       -.18791E-06** at limit **
  18  norm          1.2497        .85066       -.22433E-08    .36415E-04
  19  norm          2.0559        .84113       -.40546E-07   -.14975E-02
  20  Prefactor     2.4710        12.404        .63436E-05   -.32327E-04
  21  Prefactor     1.9358        2.7975       -.23262E-06    .84524E-04
  22  Prefactor     .10000E-03    17.122       -.36501E-07** at limit **
  23  Normalizat    .69215        .20207       -.21327E-05   -.26584E-04
  24  Prefactor     1.0951        .10464        .56341E-07   -.28414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.91981
  Prefactor  = 0.0001
  Prefactor  = 2.52248
  Prefactor  = 0.0001
  Prefactor  = 20.6022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77399
  norm       = 2.65792
  Prefactor  = 3.79573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24967
  norm       = 2.05587
  Prefactor  = 2.47104
  Prefactor  = 1.93584
  Prefactor  = 0.0001
  Normalizat = 0.692155
  Prefactor  = 1.09505
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.907     FROM HESSE     STATUS=OK           399 CALLS     3089 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9198        12.248        .13421E-03   -1.5111    
   2  Prefactor     .10000E-03    3.0828        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5225        3.4180        .18384E-03   -1.5390    
   4  Prefactor     .10000E-03    10.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.602        26.158        .88224E-04   -1.4800    
   6  Prefactor     .10000E-03    13.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0114        .20586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1186        .12765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.378        9.7193        .48037E-03   -1.4874    
  11  Prefactor     .10000E-03    4.5333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7740        1.3305        .84711E-04   -1.5442    
  14  norm          2.6579        2.6286        .14037E-03   -1.5382    
  15  Prefactor     3.7957        5.7296        .10361E-02   -1.5318    
  16  Prefactor     .10000E-03    40.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2497        .85726        .66741E-04   -1.5484    
  19  norm          2.0559        .84029        .50780E-04   -1.5421    
  20  Prefactor     2.4710        12.476        .13005E-02   -1.5394    
  21  Prefactor     1.9358        2.7600        .16531E-03   -1.5430    
  22  Prefactor     .10000E-03    17.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69215        .22577        .36802E-03   -1.0420    
  24  Prefactor     1.0951        .11878        .16668E-03   -.89625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25415e-10
Minuit parameter uncertainties:
  1  12.2516
  2  1.26721e-05
  3  3.41824
  4  4.31763e-05
  5  26.1729
  6  5.23771e-05
  7  6.59809e-05
  8  1.44136e-05
  9  9.96605e-07
  10  9.72014
  11  5.54451e-06
  12  0.00012885
  13  1.33053
  14  2.62869
  15  5.73042
  16  0.000164611
  17  3.5352e-05
  18  0.857264
  19  0.840298
  20  11.1082
  21  2.76015
  22  1.15238e-05
  23  0.226075
  24  0.118807
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  5.545e-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.095e+00  1.188e-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.922e-01  2.261e-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: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336899/likelihoodResults_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.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) = 8093.90800481
delta logL = -0.00104719214414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8093.90695763
delta logL = -6.47105480311e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2822       1.0000          .0000       10.000    
     3 'Normalizat'    .69224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0950       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=   8093.907     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10228E-03    55.133        .18142E-02** at limit **
   2  Index         2.2019        6.4341        .50000        .31871E-04
   3  Normalizat    .69215        .15929E-01    .36802E-03   -.16373E-05
   4  Prefactor     1.0951        .89630E-02    .16668E-03    .47062E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102283
  Index      = 2.20191
  Normalizat = 0.692153
  Prefactor  = 1.09505
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.907     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10228E-03    226.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2019        6.0983        .50000       -.59393    
   3  Normalizat    .69215        .33685E-01    .14721E-04   -1.0420    
   4  Prefactor     1.0951        .18955E-01    .66672E-05   -.89625    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73813e-08
Minuit parameter uncertainties:
  1  0.0456023
  2  603.066
  3  0.0336861
  4  0.0189549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336899': 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) = 8093.90695697
delta logL = 6.51195477985e-07

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.023e-04  4.560e-02  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.202e+00  6.031e+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.095e+00  1.895e-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:  6.922e-01  3.369e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/336899/cmap_HighResolution_316310401_316569601_4FGL_J0105.1+3929_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-08-13 12:12:13.882102', job_id='336899', GAL2='1.10', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1628881933.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='297' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 336899: <4FGL_J0105.1+3929_daily_bin297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin297 16.2913 39.4963 316310401 316569601 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 :                                   841.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            973 sec.

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

