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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin32
RA = 16.8508, Dec = 3.5691
tmin = 247622401, tmax = 247881601
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='342887', job_status='RUN', time_executed='2021-08-13 12:19:14.385291', time_epoch_executed='1628882354.39' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342887/ft1_4FGL_J0107.4+0334_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342887/ft1_4FGL_J0107.4+0334_daily_bin32.fits outfile=/scratch/kocevski/342887/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin32.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=247622401.0 tmax=247881601.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 5.26
user 1.24
sys 3.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.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/342887/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.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 4.09
user 0.34
sys 3.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/342887/ltcube_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.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/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits
.....................!
real 19.96
user 15.48
sys 4.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/342887/ltcube_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits outfile=/scratch/kocevski/342887/expmap_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.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/342887/ltcube_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits
.....................!
real 196.74
user 186.54
sys 9.24

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/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits scfile=/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits outfile=/scratch/kocevski/342887/cmap_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.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 4.03
user 0.38
sys 3.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits scfile=/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits outfile=/scratch/kocevski/342887/cmap_HighResolution_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.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 4.04
user 0.39
sys 3.61

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits', '/scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits', expMap='/scratch/kocevski/342887/expmap_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits', expCube='/scratch/kocevski/342887/ltcube_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342887/Model_4FGL_J0107.4+0334_daily_bin32.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/342887/ft1_filtered_4FGL_J0107.4+0334_daily_bin32.fits
Spacecraft file(s): /scratch/kocevski/342887/ft2_4FGL_J0107.4+0334_daily_bin32.fits
Exposure map: /scratch/kocevski/342887/expmap_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits
Exposure cube: /scratch/kocevski/342887/ltcube_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342887/Model_4FGL_J0107.4+0334_daily_bin32.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) = 7051.720633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9187       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6838       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.351       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.378       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.621       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9352       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .74568       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0692       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=   7051.718     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2144 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8485        3.9781       -.26134E-06   -.62866E-04
   2  Prefactor     3.9173        7.6971        .27855E-05   -.21295E-03
   3  norm          .10000E-03    3.5871       -.26185E-06** at limit **
   4  Prefactor     .10000E-03    4.0901       -.59508E-07** at limit **
   5  Prefactor     5.1616        4.5147       -.70675E-07   -.40163E-04
   6  Prefactor     .10000E-03    1.6078       -.11277E-06** at limit **
   7  Prefactor     2.6808        3.4278       -.14523E-05   -.65566E-03
   8  norm          4.6615        6.1715       -.28257E-06   -.27652E-03
   9  Prefactor     .10000E-03    39.787        .92989E-06** at limit **
  10  norm          24.351        14.824       -.30093E-06    .54913E-05
  11  Prefactor     29.815        46.849       -.48774E-05    .18773E-05
  12  Prefactor     35.375        42.888       -.43527E-05    .54130E-05
  13  norm          1.6127        1.1007        .34992E-08   -.22053E-02
  14  Prefactor     30.603        35.765       -.25111E-04   -.26014E-04
  15  Prefactor     9.2407        9.0391        .54121E-06   -.27784E-04
  16  Prefactor     .10000E-03    3.3958        .98444E-06** at limit **
  17  Prefactor     1.9343        7.1795        .41526E-05   -.44148E-03
  18  Prefactor     21.419        23.068       -.43591E-07    .58698E-05
  19  Prefactor     .10000E-03    1.7920        .74087E-08** at limit **
  20  Normalizat    .74573        .16321        .39148E-05   -.13343E-03
  21  Prefactor     1.0691        .13341       -.78848E-08    .87290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.84852
  Prefactor  = 3.91726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16159
  Prefactor  = 0.0001
  Prefactor  = 2.68075
  norm       = 4.66154
  Prefactor  = 0.000100003
  norm       = 24.3514
  Prefactor  = 29.815
  Prefactor  = 35.3748
  norm       = 1.61267
  Prefactor  = 30.603
  Prefactor  = 9.24071
  Prefactor  = 0.000100002
  Prefactor  = 1.93428
  Prefactor  = 21.4192
  Prefactor  = 0.0001
  Normalizat = 0.745726
  Prefactor  = 1.06911
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.718     FROM HESSE     STATUS=OK           323 CALLS     2467 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8485        3.9756        .13357E-03   -1.5224    
   2  Prefactor     3.9173        7.6542        .20380E-03   -1.5312    
   3  norm          .10000E-03    3.6291        .15531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0922        .16586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1616        4.5167        .16192E-03   -1.5254    
   6  Prefactor     .10000E-03    1.6731        .20757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6808        3.3943        .15382E-03   -1.5380    
   8  norm          4.6615        6.1001        .18639E-03   -1.5276    
   9  Prefactor     .10000E-03    40.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.351        14.829        .81174E-04   -1.4721    
  11  Prefactor     29.815        46.870        .73372E-04   -1.4615    
  12  Prefactor     35.375        42.859        .67376E-04   -1.4518    
  13  norm          1.6127        1.1016        .16674E-03   -1.5454    
  14  Prefactor     30.603        35.660        .72406E-04   -1.4601    
  15  Prefactor     9.2407        9.0336        .13184E-03   -1.5100    
  16  Prefactor     .10000E-03    3.4685        .15149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9343        7.0978        .29851E-03   -1.5430    
  18  Prefactor     21.419        23.070        .86546E-04   -1.4782    
  19  Prefactor     .10000E-03    1.8069        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .74573        .18708        .28554E-03   -1.0211    
  21  Prefactor     1.0691        .15406        .20214E-03   -.90460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81206e-09
Minuit parameter uncertainties:
  1  3.97573
  2  7.65608
  3  9.37092e-06
  4  3.94386e-06
  5  4.51697
  6  1.02152e-05
  7  3.39452
  8  6.10095
  9  0.000674635
  10  14.8312
  11  46.9282
  12  42.896
  13  1.10159
  14  35.6845
  15  9.03498
  16  0.00014626
  17  7.10085
  18  23.0798
  19  6.14863e-06
  20  0.187238
  21  0.154126
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  3.537e+01  4.290e+01  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.069e+00  1.541e-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.457e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 16.851 3.569
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 7.13e-06 +/- 8.64e-06

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

Saving results to:
/scratch/kocevski/342887/likelihoodResults_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.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) = 7051.66886072
delta logL = 0.0486521902612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7051.66727772
delta logL = 0.050235189683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.128       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6799       1.0000          .0000       10.000    
     3 'Normalizat'    .73556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0740       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=   7051.667     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      320 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.070        561.99        .81549E-04    .26070E-04
   2  Index         2.6834        2.7126        .20034        .92471E-04
   3  Normalizat    .73550        .47395E-01    .28735E-03    .24134E-03
   4  Prefactor     1.0742        .34787E-01    .20171E-03   -.40399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0697
  Index      = 2.68344
  Normalizat = 0.735496
  Prefactor  = 1.07423
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.667     FROM HESSE     STATUS=OK            27 CALLS      347 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.070        55.225        .32619E-05   -1.4726    
   2  Index         2.6834        1.2606        .59892E-02   -.48173    
   3  Normalizat    .73550        .18762        .11494E-04   -1.0251    
   4  Prefactor     1.0742        .15434        .40343E-04   -.90295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27475e-09
Minuit parameter uncertainties:
  1  55.343
  2  1.27824
  3  0.187784
  4  0.154401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342887': 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) = 7051.66726411
delta logL = 0.0502488003658

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  2.407e+01  5.534e+01  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.683e+00  1.278e+00  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.074e+00  1.544e-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.355e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 16.851 3.569
Photon Index (Free Index): 2.68 +/- 1.28
Photon Flux (Free Index): 2.84e-08 +/- 3.95e-08
Energy Flux (Free Index): 6.93e-06 +/- 7.79e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/342887/cmap_HighResolution_247622401_247881601_4FGL_J0107.4+0334_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='6.93e-06', photon_flux_error='2.47e-08', dlogl='5.02e-02', energy_flux='7.13e-06', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-08-13 12:30:48.128990', photon_index_error2='1.28', photon_index2='2.68', ts='1.11', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='8.21e-08', energy_flux_error2='7.79e-06', EG='0.75', time_epoch_completed='1628883048.13', return_code='0', job_id='342887', GAL2='1.07', EG2='0.74', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='3.95e-08', ts2='1.24', photon_index='2.35' WHERE bin_id='32' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:30:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 342887: <4FGL_J0107.4+0334_daily_bin32> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin32> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 13 12:15:47 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:17:28 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:17:28 2021
Terminated at Fri Aug 13 12:30:49 2021
Results reported at Fri Aug 13 12:30:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin32 16.8508 3.5691 247622401 247881601 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 :                                   746.14 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            902 sec.

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

