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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin232
RA = 16.8508, Dec = 3.5691
tmin = 299462401, tmax = 299721601
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='344265', job_status='RUN', time_executed='2021-08-13 12:25:27.343982', time_epoch_executed='1628882727.34' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344265

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344265/ft1_4FGL_J0107.4+0334_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344265/ft1_4FGL_J0107.4+0334_daily_bin232.fits outfile=/scratch/kocevski/344265/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin232.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=299462401.0 tmax=299721601.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.93
user 3.07
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.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/344265/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin232.fits evtable="EVENTS" outfile="/scratch/kocevski/344265/ft1_filtered_4FGL_J0107.4+0334_daily_bin232.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.12
user 0.34
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344265/ft1_filtered_4FGL_J0107.4+0334_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/344265/ltcube_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.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/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits
.....................!
real 14.04
user 12.91
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344265/ft1_filtered_4FGL_J0107.4+0334_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/344265/ltcube_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.fits outfile=/scratch/kocevski/344265/expmap_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.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/344265/ltcube_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.fits
.....................!
real 194.71
user 188.73
sys 4.79

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/344265/ft1_filtered_4FGL_J0107.4+0334_daily_bin232.fits scfile=/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits outfile=/scratch/kocevski/344265/cmap_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.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 1.14
user 0.38
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344265/ft1_filtered_4FGL_J0107.4+0334_daily_bin232.fits scfile=/scratch/kocevski/344265/ft2_4FGL_J0107.4+0334_daily_bin232.fits outfile=/scratch/kocevski/344265/cmap_HighResolution_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.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 1.14
user 0.40
sys 0.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11868E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19360E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67368E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.501       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26979E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0518       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82604       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=   6205.007     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2182 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0691        3.3298        .24227E-06   -.13394E-04
   2  Prefactor     .10000E-03    5.4928        .16164E-06** at limit **
   3  norm          .10000E-03    3.1852        .24557E-07** at limit **
   4  Prefactor     57.948        27.918        .15201E-05    .31425E-04
   5  Prefactor     .10000E-03    5.8385       -.92175E-06** at limit **
   6  Prefactor     .10000E-03    .77213        .10037E-07** at limit **
   7  Prefactor     .10000E-03    1.2237        .14325E-07** at limit **
   8  norm          3.1876        3.1411        .63626E-08   -.54872E-05
   9  Prefactor     .10000E-03    6.4856        .30452E-06** at limit **
  10  norm          17.166        12.312       -.50461E-07    .26174E-05
  11  Prefactor     .10000E-03    34.320       -.36154E-05** at limit **
  12  Prefactor     .10000E-03    18.812        .80783E-06** at limit **
  13  norm          3.4637        1.5191       -.19484E-07   -.54951E-04
  14  Prefactor     .10000E-03    20.457       -.90201E-06** at limit **
  15  Prefactor     7.6851        14.306       -.11576E-06    .21637E-04
  16  Prefactor     14.522        7.3889        .52871E-06   -.13018E-05
  17  Prefactor     3.3112        5.6413        .21547E-05   -.35547E-04
  18  Prefactor     .10000E-03    32.361       -.10118E-05** at limit **
  19  Prefactor     .10000E-03    1.6084        .12303E-07** at limit **
  20  Normalizat    1.0518        .17716       -.85783E-07    .48896E-04
  21  Prefactor     .82603        .13952       -.44210E-06    .52110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.9482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18755
  Prefactor  = 0.0001
  norm       = 17.1661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46368
  Prefactor  = 0.0001
  Prefactor  = 7.68509
  Prefactor  = 14.5218
  Prefactor  = 3.31121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05182
  Prefactor  = 0.82603
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.007     FROM HESSE     STATUS=OK           315 CALLS     2497 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0691        3.2770        .24623E-03   -1.5501    
   2  Prefactor     .10000E-03    5.5302        .18028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2016        .13729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.948        28.021        .52682E-04   -1.4184    
   5  Prefactor     .10000E-03    5.9702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .78010        .67567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2535        .17010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1876        3.1434        .13500E-03   -1.5351    
   9  Prefactor     .10000E-03    6.4889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.166        12.315        .96662E-04   -1.4879    
  11  Prefactor     .10000E-03    34.177        .20987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4637        1.5174        .60925E-04   -1.5336    
  14  Prefactor     .10000E-03    20.569        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6851        14.303        .14461E-03   -1.5153    
  16  Prefactor     14.522        7.3851        .10518E-03   -1.4946    
  17  Prefactor     3.3112        5.6426        .11122E-02   -1.5344    
  18  Prefactor     .10000E-03    32.392        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6122        .97557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0518        .20221        .25204E-03   -.91314    
  21  Prefactor     .82603        .15905        .22426E-03   -.98776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25708e-11
Minuit parameter uncertainties:
  1  3.27751
  2  6.70927e-07
  3  1.51438e-06
  4  28.0273
  5  4.57291e-05
  6  4.76709e-07
  7  7.26282e-07
  8  3.1436
  9  1.6195e-06
  10  12.3169
  11  5.17629e-05
  12  4.91535e-06
  13  1.51739
  14  4.79427e-05
  15  14.3091
  16  7.38561
  17  5.64348
  18  1.96422e-05
  19  6.44661e-07
  20  0.202362
  21  0.159136
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.915e-06  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.260e-01  1.591e-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.052e+00  2.024e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344265/likelihoodResults_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.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) = 6205.00685119
delta logL = -0.000253088741374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6205.00660112
delta logL = -3.01974068861e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15305E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5989       1.0000          .0000       10.000    
     3 'Normalizat'    1.0518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82603       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=   6205.007     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    5.5919        .18142E-01** at limit **
   2  Index         2.5250        5.1726        .50000        .21229E-04
   3  Normalizat    1.0518        .27298E-02    .25204E-03    .79840E-05
   4  Prefactor     .82603        .21896E-02    .22426E-03   -.99868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010261
  Index      = 2.52505
  Normalizat = 1.05182
  Prefactor  = 0.82603
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.007     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    52.533        .29787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5250        6.2624        .50000       -.51782    
   3  Normalizat    1.0518        .83923E-02    .10081E-04   -.91314    
   4  Prefactor     .82603        .67315E-02    .89704E-05   -.98776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1021e-09
Minuit parameter uncertainties:
  1  0.0234411
  2  168.397
  3  0.00839233
  4  0.00673146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344265': 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) = 6205.00659886
delta logL = -7.59377144277e-07

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.026e-04  2.344e-02  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.525e+00  1.684e+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:  8.260e-01  6.731e-03  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.052e+00  8.392e-03  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/344265/cmap_HighResolution_299462401_299721601_4FGL_J0107.4+0334_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-08-13 12:35:51.664722', job_id='344265', GAL2='0.83', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1628883351.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-7.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='232' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:35:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 344265: <4FGL_J0107.4+0334_daily_bin232> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin232 16.8508 3.5691 299462401 299721601 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 :                                   630.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            918 sec.

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

