/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 213 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0107.4+0334_daily_bin581
RA = 16.8508, Dec = 3.5691
tmin = 389923201, tmax = 390182401
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='345801', job_status='RUN', time_executed='2021-08-13 12:33:00.351628', time_epoch_executed='1628883180.35' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345801/ft1_4FGL_J0107.4+0334_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345801/ft1_4FGL_J0107.4+0334_daily_bin581.fits outfile=/scratch/kocevski/345801/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin581.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=389923201.0 tmax=390182401.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.64
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345801/ft1_filtered_4FGL_J0107.4+0334_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/345801/ltcube_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.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/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits
.....................!
real 13.91
user 13.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345801/ft1_filtered_4FGL_J0107.4+0334_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/345801/ltcube_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.fits outfile=/scratch/kocevski/345801/expmap_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.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/345801/ltcube_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.fits
.....................!
real 191.56
user 186.51
sys 4.66

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/345801/ft1_filtered_4FGL_J0107.4+0334_daily_bin581.fits scfile=/scratch/kocevski/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits outfile=/scratch/kocevski/345801/cmap_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.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 0.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345801/ft1_filtered_4FGL_J0107.4+0334_daily_bin581.fits scfile=/scratch/kocevski/345801/ft2_4FGL_J0107.4+0334_daily_bin581.fits outfile=/scratch/kocevski/345801/cmap_HighResolution_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.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 0.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.4954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.760       1.0000         .10000E-03   10000.    
    10 'norm      '    24.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13650E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66117E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75543       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4969.249     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1526 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0495        .13189E-07** at limit **
   2  Prefactor     .10000E-03    7.0100        .21737E-06** at limit **
   3  norm          .10000E-03    4.2564        .18703E-06** at limit **
   4  Prefactor     .10000E-03    7.3726       -.98721E-06** at limit **
   5  Prefactor     2.7055        4.2433        .32269E-05    .14983E-03
   6  Prefactor     .10000E-03    2.2879       -.90390E-07** at limit **
   7  Prefactor     .10000E-03    1.8054        .73766E-06** at limit **
   8  norm          9.4965        1.3450        .26831E-05    .40750E-02
   9  Prefactor     54.756        1.3266       -.92171E-06    .89609E-03
  10  norm          24.527        1.0058        .11678E-06    .18386E-05
  11  Prefactor     .10019E-03    161.48       -.16097E-03** at limit **
  12  Prefactor     .10011E-03    93.042        .10834E-03** at limit **
  13  norm          6.3782        2.0408        .30153E-06    .82076E-03
  14  Prefactor     .10001E-03    24.513        .17016E-04** at limit **
  15  Prefactor     .10000E-03    9.2857        .60751E-06** at limit **
  16  Prefactor     8.2980        2.1567        .60394E-05    .63345E-02
  17  Prefactor     .10001E-03    41.515       -.36390E-04** at limit **
  18  Prefactor     .10001E-03    19.898       -.81400E-05** at limit **
  19  Prefactor     .10000E-03    3.5414        .18974E-06** at limit **
  20  Normalizat    .75537        .22798       -.29972E-05    .24885E-04
  21  Prefactor     1.1695        .18886       -.19547E-06    .34319E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49647
  Prefactor  = 54.7557
  norm       = 24.5267
  Prefactor  = 0.000100192
  Prefactor  = 0.000100105
  norm       = 6.37823
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 8.29796
  Prefactor  = 0.000100011
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.755373
  Prefactor  = 1.16949
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.249     FROM HESSE     STATUS=OK           357 CALLS     1883 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.2370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7055        4.2620        .61902E-02   -1.5379    
   6  Prefactor     .10000E-03    2.2028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.4965        7.3850        .32513E-02   -1.5092    
   9  Prefactor     54.756        36.287        .13551E-02   -1.4227    
  10  norm          24.527        16.585        .20221E-02   -1.4717    
  11  Prefactor     .10019E-03    164.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10011E-03    94.914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3782        2.0640        .39733E-02   -1.5203    
  14  Prefactor     .10001E-03    24.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2980        8.0984        .34802E-02   -1.5132    
  17  Prefactor     .10001E-03    5.5038        .93953E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    19.965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .75537        .20301        .68366E-01   -1.0175    
  21  Prefactor     1.1695        .16623        .35398E-01   -.87275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58219e-08
Minuit parameter uncertainties:
  1  1.23156e-05
  2  1.01849e-06
  3  2.90003e-05
  4  2.99399e-05
  5  4.26249
  6  2.078e-05
  7  1.68253e-06
  8  7.38566
  9  36.3021
  10  16.5886
  11  0.0112499
  12  0.00632997
  13  2.06402
  14  0.0010096
  15  5.582e-05
  16  8.09948
  17  0.000498031
  18  0.000668295
  19  1.33296e-05
  20  0.203213
  21  0.166304
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.001e-04  6.330e-03  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.169e+00  1.663e-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.554e-01  2.032e-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: 9.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345801/likelihoodResults_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.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) = 4969.24873401
delta logL = -4.99376446896e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4969.24868408
delta logL = 7.54880602472e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3980       1.0000          .0000       10.000    
     3 'Normalizat'    .75537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1695       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=   4969.249     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.11        .18142E-02** at limit **
   2  Index         2.4160        6.2064        .50000       -.16435E-05
   3  Normalizat    .75537        .22394        .30251E-03    .46147E-03
   4  Prefactor     1.1695        .18734        .20612E-03    .88576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41595
  Normalizat = 0.755372
  Prefactor  = 1.16949
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.249     FROM HESSE     STATUS=OK            29 CALLS      295 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4160        6.2073        .50000       -.54312    
   3  Normalizat    .75537        .22409        .60503E-04   -1.0175    
   4  Prefactor     1.1695        .18747        .41223E-04   -.87275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3325e-10
Minuit parameter uncertainties:
  1  0.000326172
  2  4.29589
  3  0.224359
  4  0.187572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345801': 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) = 4969.24868405
delta logL = 2.27591954172e-08

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.262e-04  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.416e+00  4.296e+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.169e+00  1.876e-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.554e-01  2.244e-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/345801/cmap_HighResolution_389923201_390182401_4FGL_J0107.4+0334_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='9.13e-08', time_completed='2021-08-13 12:41:43.531274', job_id='345801', GAL2='1.17', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1628883703.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='581' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:41:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 345801: <4FGL_J0107.4+0334_daily_bin581> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin581> 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) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:29:17 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:17 2021
Terminated at Fri Aug 13 12:41:45 2021
Results reported at Fri Aug 13 12:41:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin581 16.8508 3.5691 389923201 390182401 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 :                                   520.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            981 sec.

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

