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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin36
RA = 16.8508, Dec = 3.5691
tmin = 248659201, tmax = 248918401
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='342893', job_status='RUN', time_executed='2021-08-13 12:18:09.015691', time_epoch_executed='1628882289.02' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342893/ft1_4FGL_J0107.4+0334_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342893/ft2_4FGL_J0107.4+0334_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342893/ft1_4FGL_J0107.4+0334_daily_bin36.fits outfile=/scratch/kocevski/342893/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin36.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.44
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342893/ft1_filtered_4FGL_J0107.4+0334_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/342893/ft2_4FGL_J0107.4+0334_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/342893/ltcube_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.fits outfile=/scratch/kocevski/342893/expmap_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.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/342893/ltcube_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.fits
.....................!
real 192.27
user 185.96
sys 5.87

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/342893/ft1_filtered_4FGL_J0107.4+0334_daily_bin36.fits scfile=/scratch/kocevski/342893/ft2_4FGL_J0107.4+0334_daily_bin36.fits outfile=/scratch/kocevski/342893/cmap_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342893/ft1_filtered_4FGL_J0107.4+0334_daily_bin36.fits scfile=/scratch/kocevski/342893/ft2_4FGL_J0107.4+0334_daily_bin36.fits outfile=/scratch/kocevski/342893/cmap_HighResolution_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85614       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5907       1.0000         .10000E-03   10000.    
     8 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.169       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.0097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8215       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2232       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13517E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87639       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=   8857.354     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1918 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85589        2.1583       -.16975E-07   -.19039E-03
   2  Prefactor     .10000E-03    2.1636       -.12774E-07** at limit **
   3  norm          .10000E-03    3.1306        .10817E-06** at limit **
   4  Prefactor     .10000E-03    10.961       -.11248E-05** at limit **
   5  Prefactor     .10000E-03    1.2211        .20668E-07** at limit **
   6  Prefactor     1.7163        1.6450       -.27120E-07   -.44962E-04
   7  Prefactor     1.5919        1.7622        .30470E-06    .12642E-03
   8  norm          .10000E-03    1.7713        .93545E-07** at limit **
   9  Prefactor     18.158        22.142       -.55111E-05   -.41563E-04
  10  norm          4.0230        5.7652        .78830E-06    .81716E-05
  11  Prefactor     .10000E-03    52.879        .69179E-06** at limit **
  12  Prefactor     .10000E-03    11.040        .11900E-05** at limit **
  13  norm          6.0090        1.4283       -.12111E-07    .37254E-04
  14  Prefactor     .10000E-03    27.433       -.52556E-08** at limit **
  15  Prefactor     7.8232        8.8267        .28151E-06   -.67778E-05
  16  Prefactor     .85202        3.5546       -.89805E-07   -.19100E-04
  17  Prefactor     3.1044        4.1317        .24253E-06   -.70291E-03
  18  Prefactor     4.2235        31.216        .29649E-06   -.88919E-04
  19  Prefactor     .10000E-03    2.0475        .34468E-07** at limit **
  20  Normalizat    1.0463        .15176        .34457E-06   -.44767E-05
  21  Prefactor     .87646        .11830       -.63565E-08    .25305E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.855888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71627
  Prefactor  = 1.59192
  norm       = 0.0001
  Prefactor  = 18.1582
  norm       = 4.02304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.00903
  Prefactor  = 0.0001
  Prefactor  = 7.82315
  Prefactor  = 0.85202
  Prefactor  = 3.10441
  Prefactor  = 4.22345
  Prefactor  = 0.0001
  Normalizat = 1.04628
  Prefactor  = 0.876462
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.354     FROM HESSE     STATUS=OK           325 CALLS     2243 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85589        2.0914        .21448E-02   -1.5523    
   2  Prefactor     .10000E-03    2.1683        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1691        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2240        .10155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7163        1.6427        .11323E-03   -1.5446    
   7  Prefactor     1.5919        1.7521        .12528E-03   -1.5456    
   8  norm          .10000E-03    1.7875        .12236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.158        22.178        .93962E-04   -1.4855    
  10  norm          4.0230        5.7583        .20106E-03   -1.5307    
  11  Prefactor     .10000E-03    53.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0090        1.4203        .51713E-04   -1.5218    
  14  Prefactor     .10000E-03    27.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8232        8.8296        .14338E-03   -1.5148    
  16  Prefactor     .85202        6.9607        .32576E-02   -1.5523    
  17  Prefactor     3.1044        9.2045        .11510E-02   -1.5356    
  18  Prefactor     4.2235        33.686        .98043E-03   -1.5297    
  19  Prefactor     .10000E-03    8.9915        .26209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0463        .17479        .25203E-03   -.91496    
  21  Prefactor     .87646        .13718        .21922E-03   -.96969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35884e-08
Minuit parameter uncertainties:
  1  2.09161
  2  4.6448e-07
  3  6.02022e-07
  4  6.11705e-06
  5  2.6919e-07
  6  1.64269
  7  1.75217
  8  9.62913e-06
  9  22.1876
  10  5.75913
  11  3.57542e-05
  12  5.78904e-06
  13  1.4203
  14  4.21771e-05
  15  8.83109
  16  4.87109
  17  9.2087
  18  23.8736
  19  7.20575e-05
  20  0.174885
  21  0.137232
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.789e-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.765e-01  1.372e-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.046e+00  1.749e-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: 3.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342893/likelihoodResults_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.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) = 8857.35413899
delta logL = -0.000430956995842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8857.35370791
delta logL = 1.20489858091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3226       1.0000          .0000       10.000    
     3 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87647       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=   8857.354     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10264E-03    7.1729        .18142E-01** at limit **
   2  Index         2.2487        7.5052        .50000        .20209E-04
   3  Normalizat    1.0463        .28189E-02    .25203E-03   -.24539E-04
   4  Prefactor     .87646        .22759E-02    .21922E-03    .22403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102644
  Index      = 2.24865
  Normalizat = 1.04628
  Prefactor  = 0.876462
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.354     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 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     .10264E-03    51.009        .32599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2487        8.3963        .50000       -.58269    
   3  Normalizat    1.0463        .75470E-02    .10081E-04   -.91496    
   4  Prefactor     .87646        .60932E-02    .87688E-05   -.96969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10139e-09
Minuit parameter uncertainties:
  1  0.0232445
  2  198.236
  3  0.007547
  4  0.00609319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342893': 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) = 8857.35370758
delta logL = 4.50645529781e-07

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.026e-04  2.324e-02  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.249e+00  1.982e+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.765e-01  6.093e-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.046e+00  7.547e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/342893/cmap_HighResolution_248659201_248918401_4FGL_J0107.4+0334_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2021-08-13 12:29:51.458680', job_id='342893', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1628882991.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='36' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 342893: <4FGL_J0107.4+0334_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin36 16.8508 3.5691 248659201 248918401 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 :                                   701.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            845 sec.

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

