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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin576
RA = 16.8508, Dec = 3.5691
tmin = 388627201, tmax = 388886401
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='345794', job_status='RUN', time_executed='2021-08-13 12:30:12.948410', time_epoch_executed='1628883012.95' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345794

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345794/ft1_4FGL_J0107.4+0334_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345794/ft2_4FGL_J0107.4+0334_daily_bin576.fits


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

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

Done.
real 6.59
user 3.84
sys 2.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345794/ft2_4FGL_J0107.4+0334_daily_bin576.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/345794/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/345794/ft1_filtered_4FGL_J0107.4+0334_daily_bin576.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.99
user 0.35
sys 2.59

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345794/ft1_filtered_4FGL_J0107.4+0334_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/345794/ft2_4FGL_J0107.4+0334_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/345794/ltcube_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.fits outfile=/scratch/kocevski/345794/expmap_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.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/345794/ltcube_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.fits
.....................!
real 194.24
user 185.51
sys 7.93

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/345794/ft1_filtered_4FGL_J0107.4+0334_daily_bin576.fits scfile=/scratch/kocevski/345794/ft2_4FGL_J0107.4+0334_daily_bin576.fits outfile=/scratch/kocevski/345794/cmap_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.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.96
user 0.39
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345794/ft1_filtered_4FGL_J0107.4+0334_daily_bin576.fits scfile=/scratch/kocevski/345794/ft2_4FGL_J0107.4+0334_daily_bin576.fits outfile=/scratch/kocevski/345794/cmap_HighResolution_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.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 3.01
user 0.39
sys 2.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4391       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
     3 'norm      '    12.644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3258       1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .98255E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3154       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.849       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81120       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=   5134.625     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2620 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4398        4.8112       -.93831E-07   -.59737E-05
   2  Prefactor     10.921        18.584       -.11963E-05    .76876E-05
   3  norm          12.644        10.144       -.22844E-06    .11518E-04
   4  Prefactor     .10000E-03    15.597       -.31452E-05** at limit **
   5  Prefactor     7.8330        9.3423       -.41512E-06   -.13252E-03
   6  Prefactor     2.3667        2.3124       -.18852E-06   -.83885E-04
   7  Prefactor     5.3244        4.1561        .21477E-07    .17585E-03
   8  norm          .10000E-03    9.1708       -.51524E-06** at limit **
   9  Prefactor     .10000E-03    12.200       -.26237E-06** at limit **
  10  norm          .10000E-03    149.54        .42353E-05** at limit **
  11  Prefactor     60.730        57.465       -.51298E-06    .14845E-05
  12  Prefactor     2.5997        687.49       -.49112E-05    .13112E-05
  13  norm          5.3587        2.0388       -.87398E-07   -.23361E-03
  14  Prefactor     18.840        28.781       -.37114E-06    .10993E-04
  15  Prefactor     17.249        16.510       -.20305E-06    .12081E-04
  16  Prefactor     .10000E-03    1.8950       -.25961E-06** at limit **
  17  Prefactor     .10000E-03    8.4088       -.44398E-06** at limit **
  18  Prefactor     .10000E-03    25.088       -.44087E-06** at limit **
  19  Prefactor     .10000E-03    8.7356       -.37753E-06** at limit **
  20  Normalizat    1.2216        .25288        .61439E-05    .10205E-03
  21  Prefactor     .81123        .18866       -.35307E-05    .27935E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4398
  Prefactor  = 10.9206
  norm       = 12.6438
  Prefactor  = 0.000100001
  Prefactor  = 7.83303
  Prefactor  = 2.36671
  Prefactor  = 5.32437
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.73
  Prefactor  = 2.59968
  norm       = 5.35866
  Prefactor  = 18.8401
  Prefactor  = 17.2488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22156
  Prefactor  = 0.811234
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.625     FROM HESSE     STATUS=OK           323 CALLS     2943 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4398        4.7942        .15310E-03   -1.5287    
   2  Prefactor     10.921        18.517        .12124E-03   -1.5047    
   3  norm          12.644        10.145        .11265E-03   -1.4997    
   4  Prefactor     .10000E-03    16.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8330        9.3741        .71636E-03   -1.5148    
   6  Prefactor     2.3667        2.3029        .10363E-03   -1.5400    
   7  Prefactor     5.3244        4.1483        .12308E-03   -1.5246    
   8  norm          .10000E-03    9.5004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    143.32        .50310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.730        57.504        .51484E-04   -1.4148    
  12  Prefactor     2.5997        649.61        .26960E-02   -1.5385    
  13  norm          5.3587        2.0423        .57383E-04   -1.5245    
  14  Prefactor     18.840        28.777        .92254E-04   -1.4840    
  15  Prefactor     17.249        16.515        .96439E-04   -1.4877    
  16  Prefactor     .10000E-03    1.9028        .96473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2216        .25736        .26497E-03   -.85939    
  21  Prefactor     .81123        .19517        .24548E-03   -.99316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11637e-10
Minuit parameter uncertainties:
  1  4.79458
  2  18.5271
  3  10.1461
  4  0.000207864
  5  9.37588
  6  2.30301
  7  4.14855
  8  2.43008e-05
  9  1.92739e-05
  10  0.000389983
  11  57.5564
  12  83.1163
  13  2.04229
  14  28.7981
  15  16.5197
  16  8.89226e-06
  17  1.79912e-05
  18  4.78172e-05
  19  3.25224e-05
  20  0.257628
  21  0.195334
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  2.600e+00  8.312e+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:  8.112e-01  1.953e-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:  1.222e+00  2.576e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345794/likelihoodResults_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.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) = 5134.56977301
delta logL = 0.0548878578065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5134.56953464
delta logL = 0.0551262287818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.294       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6672       1.0000          .0000       10.000    
     3 'Normalizat'    1.2223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80694       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=   5134.570     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      319 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.391        129.29        .31573E-03    .10802E-06
   2  Index         1.6683        1.1820        .16357E-01   -.52664E-04
   3  Normalizat    1.2222        .24477        .26484E-03   -.12706E-04
   4  Prefactor     .80693        .19004        .24595E-03    .14006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.3905
  Index      = 1.66828
  Normalizat = 1.22225
  Prefactor  = 0.806926
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.570     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.391        128.99        .12629E-04   -1.4436    
   2  Index         1.6683        1.1806        .32714E-02   -.72929    
   3  Normalizat    1.2222        .24497        .10594E-04   -.85918    
   4  Prefactor     .80693        .19019        .98381E-05   -.99474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84264e-12
Minuit parameter uncertainties:
  1  129.899
  2  1.20125
  3  0.245201
  4  0.190343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345794': 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) = 5134.56953394
delta logL = 0.055126923382

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  4.039e+01  1.299e+02  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  1.668e+00  1.201e+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:  8.069e-01  1.903e-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:  1.222e+00  2.452e-01  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/345794/cmap_HighResolution_388627201_388886401_4FGL_J0107.4+0334_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-08-13 12:40:40.730286', job_id='345794', GAL2='0.81', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1628883640.73', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.51e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='576' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 345794: <4FGL_J0107.4+0334_daily_bin576> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin576> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Aug 13 12:25:24 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:29:12 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:29:12 2021
Terminated at Fri Aug 13 12:40:41 2021
Results reported at Fri Aug 13 12:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin576 16.8508 3.5691 388627201 388886401 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 :                                   662.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            917 sec.

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

