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


Performing analysis on: 4FGL_J0113.4+4948_daily_bin1604
RA = 18.3682, Dec = 49.8054
tmin = 655084801, tmax = 655344001
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='4153', job_status='RUN', time_executed='2021-10-08 00:04:46.144639', time_epoch_executed='1633676686.14' WHERE source_name='4FGL J0113.4+4948' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4153/ft1_4FGL_J0113.4+4948_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4153/ft1_4FGL_J0113.4+4948_daily_bin1604.fits outfile=/scratch/kocevski/4153/ft1_filteredMKT_4FGL_J0113.4+4948_daily_bin1604.fits ra=18.3682 dec=49.8054 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.92
user 2.69
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.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/4153/ft1_filteredMKT_4FGL_J0113.4+4948_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4153/ltcube_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.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/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits
.....................!
real 14.31
user 13.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4153/ltcube_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits outfile=/scratch/kocevski/4153/expmap_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.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/4153/ltcube_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits
.....................!
real 192.10
user 186.73
sys 4.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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 184 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0113.4+4948 @ 18.3682 49.8054

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits outfile=/scratch/kocevski/4153/cmap_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.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=18.3682 yref=49.8054 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.59
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits outfile=/scratch/kocevski/4153/cmap_HighResolution_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.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=18.3682 yref=49.8054 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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4153/Model_4FGL_J0113.4+4948_daily_bin1604.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits.....................!
real 32.81
user 30.94
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits', '/scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits', expMap='/scratch/kocevski/4153/expmap_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits', expCube='/scratch/kocevski/4153/ltcube_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4153/Model_4FGL_J0113.4+4948_daily_bin1604.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0113.4+4948'

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  2.121e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4153/ft1_filtered_4FGL_J0113.4+4948_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/4153/ft2_4FGL_J0113.4+4948_daily_bin1604.fits
Exposure map: /scratch/kocevski/4153/expmap_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits
Exposure cube: /scratch/kocevski/4153/ltcube_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4153/Model_4FGL_J0113.4+4948_daily_bin1604.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) = 1648.14914968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14980E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    9.4813       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    1837.5       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    53.421       1.0000         .10000E-03   10000.    
    10 'norm      '    .20439E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60083       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90787E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    230.79       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.728       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.633       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.215       1.0000         .10000E-03   10000.    
    23 'Prefactor '    288.77       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76846       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1647.882     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     3902 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.161       -.34328E-07** at limit **
   2  Prefactor     .10000E-03    264.58       -.52299E-04** at limit **
   3  Prefactor     .10000E-03    1006.6        .12263E-03** at limit **
   4  norm          9.2783        191.33       -.13437E-03   -.34013E-05
   5  Prefactor    10000.0        9720.7        .21118E-02** at limit **
   6  norm          1837.8        1083.3        .57773E-04   -.73863E-06
   7  Prefactor    10000.0        9128.8        .13295E-02** at limit **
   8  Prefactor    10000.0        8463.4        .17691E-02** at limit **
   9  norm          53.412        56.783       -.11153E-05   -.27737E-04
  10  norm          .10000E-03    647.86        .53334E-03** at limit **
  11  Prefactor     .10000E-03    9883.5       -.13608E-01** at limit **
  12  norm          3.9438        24.936        .15365E-04   -.66241E-04
  13  Prefactor     .10000E-03    6580.6       -.28722E-03** at limit **
  14  norm          .10000E-03    39.855        .82305E-07** at limit **
  15  Prefactor     230.74        346.91       -.33078E-04    .71932E-05
  16  Prefactor     26.874        6497.6       -.16091E-02    .23073E-04
  17  norm          .10000E-03    3.5908       -.97287E-07** at limit **
  18  norm          .10000E-03    12.400       -.12334E-06** at limit **
  19  norm          .10001E-03    4.3459        .16837E-05** at limit **
  20  Prefactor     14.971        10.390       -.71289E-06   -.56038E-04
  21  Prefactor     58.625        50.504       -.17468E-05    .14015E-05
  22  Prefactor     47.382        251.20        .20697E-03    .11021E-04
  23  Prefactor     288.74        237.61       -.20043E-04   -.29251E-05
  24  Normalizat    .76861        .67669        .25399E-04    .20761E-04
  25  Prefactor     .49431        .11045       -.26196E-06    .48498E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.27827
  Prefactor  = 10000
  norm       = 1837.76
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 53.4123
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94382
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 230.74
  Prefactor  = 26.8737
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 14.971
  Prefactor  = 58.6251
  Prefactor  = 47.3819
  Prefactor  = 288.736
  Normalizat = 0.768615
  Prefactor  = 0.494309
 **********
 **   18 **HESSE 
 **********

 FCN=   1647.882     FROM HESSE     STATUS=OK           413 CALLS     4315 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.161        .14387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    264.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1006.6        .20472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.2783        193.14        .13015E-03   -1.5099    
   5  Prefactor    10000.0        9720.6        .18169E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1837.8        1082.4        .51642E-04   -.68471    
   7  Prefactor    10000.0        9128.8        .18974E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8462.7        .18156E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          53.412        56.728        .54876E-04   -1.4245    
  10  norm          .10000E-03    647.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9884.5        .23352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9438        24.986        .20299E-03   -1.5311    
  13  Prefactor     .10000E-03    6580.8        .20825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    39.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     230.74        345.83        .13320E-03   -1.2658    
  16  Prefactor     26.874        6557.9        .38041E-03   -1.4671    
  17  norm          .10000E-03    3.5988        .75123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.400        .13964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    4.3559        .82412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.971        10.427        .10308E-03   -1.4934    
  21  Prefactor     58.625        50.239        .52394E-04   -1.4175    
  22  Prefactor     47.382        250.02        .29177E-03   -1.4330    
  23  Prefactor     288.74        237.79        .11943E-03   -1.2293    
  24  Normalizat    .76861        .68590        .63461E-03   -1.0124    
  25  Prefactor     .49431        .11544        .12598E-03   -1.1224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57331e-09
Minuit parameter uncertainties:
  1  1.15728e-07
  2  8.88172e-06
  3  2.57873e-05
  4  84.9776
  5  0.000771053
  6  1096.96
  7  0.000859015
  8  0.00600636
  9  56.7853
  10  0.000212533
  11  0.00588461
  12  19.8655
  13  0.00666254
  14  0.000130815
  15  348.965
  16  669.881
  17  1.90873e-05
  18  3.45643e-05
  19  0.000354529
  20  10.4284
  21  50.2755
  22  219.133
  23  238.593
  24  0.693819
  25  0.115495
Done.

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

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  1.000e-04  1.308e-04  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  2.134e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  4.943e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  7.686e-01  6.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 18.368 49.805
Photon Flux Upper Limit: 2.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4153/likelihoodResults_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.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) = 1647.88183841
delta logL = -0.000119152884054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1647.88172099
delta logL = -1.72835393641e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3615       1.0000          .0000       5.0000    
     3 'Normalizat'    .76861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   1647.882     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      272 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1587.5        .16669E-01** at limit **
   2  alpha         1.7471        3.9562        .17907       -.22696E-07
   3  Normalizat    .76861        .12291        .63459E-03   -.10180E-04
   4  Prefactor     .49431        .20104E-01    .12598E-03   -.54560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.74715
  Normalizat = 0.768612
  Prefactor  = 0.494309
 **********
 **   18 **HESSE 
 **********

 FCN=   1647.882     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    92.950        .25956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7471        4.0065        .71630E-01   -.30589    
   3  Normalizat    .76861        .64011        .25383E-04   -1.0124    
   4  Prefactor     .49431        .10567        .25196E-04   -1.1224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79754e-10
Minuit parameter uncertainties:
  1  0.000486483
  2  1267.67
  3  0.646523
  4  0.105716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4153': 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) = 1647.88171917
delta logL = 8.62821707415e-08

Extracting fit parameters...

4FGL J0113.4+4948
   Spectrum: LogParabola
222         norm:  1.000e-04  4.865e-04  1.000e-04  1.000e+04 ( 1.000e-12)
223        alpha:  1.747e+00  1.268e+03  0.000e+00  5.000e+00 ( 1.000e+00)
224         beta:  6.875e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
225           Eb:  9.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  4.943e-01  1.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  7.686e-01  6.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 18.368 49.805

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/4153/cmap_HighResolution_655084801_655344001_4FGL_J0113.4+4948_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-03', job_status='DONE', photon_flux_upper_limit='2.11e-06', time_completed='2021-10-08 00:12:28.271535', job_id='4153', GAL2='0.49', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1633677148.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='8.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1604' AND source_name='4FGL J0113.4+4948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:12:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 4153: <4FGL_J0113.4+4948_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0113.4+4948_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:31 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:01:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:01:28 2021
Terminated at Fri Oct  8 00:12:29 2021
Results reported at Fri Oct  8 00:12:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0113.4+4948_daily_bin1604 18.3682 49.8054 655084801 655344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0113.4+4948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   458.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            718 sec.

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

