/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 203 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0107.4+0334_daily_bin116
RA = 16.8508, Dec = 3.5691
tmin = 269395201, tmax = 269654401
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='344102', job_status='RUN', time_executed='2021-08-13 12:25:02.372185', time_epoch_executed='1628882702.37' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344102/ft1_4FGL_J0107.4+0334_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344102/ft1_4FGL_J0107.4+0334_daily_bin116.fits outfile=/scratch/kocevski/344102/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin116.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=269395201.0 tmax=269654401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.44
user 1.60
sys 1.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.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/344102/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin116.fits evtable="EVENTS" outfile="/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.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.17
user 0.36
sys 1.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits" evtable="EVENTS" scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits sctable="SC_DATA" outfile=/scratch/kocevski/344102/ltcube_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.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/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits
.....................!
real 17.40
user 15.12
sys 2.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/344102/ltcube_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits outfile=/scratch/kocevski/344102/expmap_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.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/344102/ltcube_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits
.....................!
real 195.70
user 187.43
sys 7.43

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits outfile=/scratch/kocevski/344102/cmap_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.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.8508 yref=3.5691 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.39
sys 1.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits outfile=/scratch/kocevski/344102/cmap_HighResolution_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.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.8508 yref=3.5691 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.13
user 0.38
sys 1.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344102/Model_4FGL_J0107.4+0334_daily_bin116.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/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits.....................!
real 66.50
user 62.60
sys 3.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits', '/scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits', expMap='/scratch/kocevski/344102/expmap_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits', expCube='/scratch/kocevski/344102/ltcube_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344102/Model_4FGL_J0107.4+0334_daily_bin116.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/344102/ft1_filtered_4FGL_J0107.4+0334_daily_bin116.fits
Spacecraft file(s): /scratch/kocevski/344102/ft2_4FGL_J0107.4+0334_daily_bin116.fits
Exposure map: /scratch/kocevski/344102/expmap_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits
Exposure cube: /scratch/kocevski/344102/ltcube_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344102/Model_4FGL_J0107.4+0334_daily_bin116.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) = 6039.81137737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    20.740       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8735       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4361       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0672       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5732       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2489       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5247       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .76428       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6039.808     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2215 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6991        .19740E-06** at limit **
   2  Prefactor     20.739        12.891        .22531E-06    .27189E-05
   3  norm          4.0788        8.3816       -.49508E-06   -.44072E-04
   4  Prefactor     .97239E-01    8.4050       -.30648E-06    .10743E-03
   5  Prefactor     6.8761        4.9050       -.31847E-06    .38013E-05
   6  Prefactor     .10000E-03    1.5150       -.83198E-07** at limit **
   7  Prefactor     2.4351        3.0669       -.14819E-05   -.79639E-03
   8  norm          2.0648        4.2192       -.10314E-05   -.26652E-02
   9  Prefactor     1.5475        47.296        .52322E-04    .40475E-04
  10  norm          .10000E-03    5.0942        .35592E-06** at limit **
  11  Prefactor     26.847        34.948       -.25383E-05   -.13877E-04
  12  Prefactor     .10000E-03    31.940       -.14278E-06** at limit **
  13  norm          2.5526        1.4482        .10440E-07    .23657E-05
  14  Prefactor     .10000E-03    14.620       -.79715E-06** at limit **
  15  Prefactor     1.2453        4.9239        .28979E-05   -.17521E-02
  16  Prefactor     14.118        7.3550       -.71655E-06   -.11869E-03
  17  Prefactor     8.5234        8.7049       -.20196E-07   -.28434E-03
  18  Prefactor     43.205        70.268       -.19710E-04   -.33335E-04
  19  Prefactor     .10000E-03    1.8096       -.56542E-07** at limit **
  20  Normalizat    .76410        .19080        .13030E-05   -.17705E-03
  21  Prefactor     1.1280        .15331       -.76563E-06   -.14925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.7387
  norm       = 4.07882
  Prefactor  = 0.0972389
  Prefactor  = 6.87611
  Prefactor  = 0.0001
  Prefactor  = 2.43511
  norm       = 2.06482
  Prefactor  = 1.54754
  norm       = 0.0001
  Prefactor  = 26.8469
  Prefactor  = 0.0001
  norm       = 2.55259
  Prefactor  = 0.0001
  Prefactor  = 1.24532
  Prefactor  = 14.118
  Prefactor  = 8.52344
  Prefactor  = 43.205
  Prefactor  = 0.0001
  Normalizat = 0.764099
  Prefactor  = 1.12796
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.808     FROM HESSE     STATUS=OK           331 CALLS     2546 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7066        .98904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.739        12.905        .87950E-04   -1.4797    
   3  norm          4.0788        8.3831        .19961E-03   -1.5304    
   4  Prefactor     .97239E-01    11.086        .78522E-01   -1.5646    
   5  Prefactor     6.8761        4.9050        .14068E-03   -1.5183    
   6  Prefactor     .10000E-03    2.9866        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4351        3.0474        .14168E-03   -1.5396    
   8  norm          2.0648        4.7280        .12039E-02   -1.5421    
   9  Prefactor     1.5475        47.456        .33884E-03   -1.5459    
  10  norm          .10000E-03    5.0967        .17132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.847        34.987        .77317E-04   -1.4671    
  12  Prefactor     .10000E-03    31.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5526        1.4437        .66759E-04   -1.5388    
  14  Prefactor     .10000E-03    14.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2453        14.985        .20017E-02   -1.5485    
  16  Prefactor     14.118        7.3611        .10660E-03   -1.4956    
  17  Prefactor     8.5234        8.7234        .68648E-03   -1.5124    
  18  Prefactor     43.205        70.235        .60979E-04   -1.4392    
  19  Prefactor     .10000E-03    1.8297        .10209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .76410        .21677        .29871E-03   -1.0141    
  21  Prefactor     1.1280        .17707        .20764E-03   -.88578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6042e-08
Minuit parameter uncertainties:
  1  7.36758e-07
  2  12.9067
  3  8.3855
  4  2.07583
  5  4.90524
  6  1.00426e-06
  7  3.0476
  8  4.72884
  9  17.1538
  10  2.06059e-06
  11  35.0138
  12  2.78484e-05
  13  1.4437
  14  2.07782e-05
  15  8.64215
  16  7.36157
  17  8.72466
  18  70.3698
  19  1.50208e-06
  20  0.217012
  21  0.177163
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.785e-05  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.128e+00  1.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.641e-01  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344102/likelihoodResults_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.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) = 6039.80826742
delta logL = -0.000149017151671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6039.80811889
delta logL = -4.86722456117e-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.6113       1.0000          .0000       10.000    
     3 'Normalizat'    .76410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   6039.808     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    134.76        .18142E-02** at limit **
   2  Index         2.5556        5.3039        .50000        .99326E-05
   3  Normalizat    .76410        .10608E-01    .29871E-03   -.76119E-07
   4  Prefactor     1.1280        .88535E-02    .20764E-03   -.11334E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101418
  Index      = 2.55565
  Normalizat = 0.764101
  Prefactor  = 1.12796
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.808     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    589.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5556        5.2905        .50000       -.51079    
   3  Normalizat    .76410        .22796E-01    .11948E-04   -1.0141    
   4  Prefactor     1.1280        .19026E-01    .83056E-05   -.88578    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.34623e-09
Minuit parameter uncertainties:
  1  0.0584151
  2  521.318
  3  0.0227963
  4  0.0190262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344102': 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) = 6039.80811878
delta logL = -3.80638994102e-07

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.014e-04  5.842e-02  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.556e+00  5.213e+02  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.128e+00  1.903e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.641e-01  2.280e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

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/344102/cmap_HighResolution_269395201_269654401_4FGL_J0107.4+0334_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-08-13 12:35:31.741208', job_id='344102', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1628883331.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='116' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:35:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 344102: <4FGL_J0107.4+0334_daily_bin116> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin116> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 12:20:24 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:21:01 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:21:01 2021
Terminated at Fri Aug 13 12:35:32 2021
Results reported at Fri Aug 13 12:35:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin116 16.8508 3.5691 269395201 269654401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0107.4+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            908 sec.

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

