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


Performing analysis on: 4FGL_J2014.3-0047_monthly_bin39
RA = 303.599, Dec = -0.7922
tmin = 338083201, tmax = 340675201
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='682060', job_status='RUN', time_executed='2021-11-05 19:48:27.626335', time_epoch_executed='1636166907.63' WHERE source_name='4FGL J2014.3-0047' and cadence='monthly' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682060

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

Retrieving the FT1 file...

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

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

Retrieving 492 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682060/ft1_4FGL_J2014.3-0047_monthly_bin39.fits


Retrieving the FT1 file...

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

Retrieving 492 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682060/ft1_4FGL_J2014.3-0047_monthly_bin39.fits outfile=/scratch/kocevski/682060/ft1_filteredMKT_4FGL_J2014.3-0047_monthly_bin39.fits ra=303.599 dec=-0.7922 rad=12.0 tmin=338083201.0 tmax=340675201.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 46.81
user 45.55
sys 0.89

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.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/682060/ft1_filteredMKT_4FGL_J2014.3-0047_monthly_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.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.86
user 0.68
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/682060/ltcube_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.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/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits
.....................!
real 109.37
user 108.41
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/682060/ltcube_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits outfile=/scratch/kocevski/682060/expmap_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.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/682060/ltcube_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits
.....................!
real 192.28
user 186.76
sys 5.09

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 Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Added 268 point sources and 5 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 J2014.3-0047 @ 303.599 -0.7922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits outfile=/scratch/kocevski/682060/cmap_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.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=303.599 yref=-0.7922 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.78
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits outfile=/scratch/kocevski/682060/cmap_HighResolution_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.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=303.599 yref=-0.7922 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.80
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682060/Model_4FGL_J2014.3-0047_monthly_bin39.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits.....................!
real 2105.24
user 2099.38
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits', '/scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits', expMap='/scratch/kocevski/682060/expmap_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits', expCube='/scratch/kocevski/682060/ltcube_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682060/Model_4FGL_J2014.3-0047_monthly_bin39.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2014.3-0047'

4FGL J2014.3-0047
   Spectrum: PowerLaw
600    Prefactor:  4.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
601        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
602        Scale:  3.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682060/ft1_filtered_4FGL_J2014.3-0047_monthly_bin39.fits
Spacecraft file(s): /scratch/kocevski/682060/ft2_4FGL_J2014.3-0047_monthly_bin39.fits
Exposure map: /scratch/kocevski/682060/expmap_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits
Exposure cube: /scratch/kocevski/682060/ltcube_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682060/Model_4FGL_J2014.3-0047_monthly_bin39.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) = 108480.661958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0432       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7180       1.0000         .10000E-03   10000.    
     8 'norm      '    12.225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67530       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4405       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    .93451       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9570E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   108479.9     FROM MIGRAD    STATUS=FAILED       486 CALLS     1390 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3602        .18142E-02** at limit **
   2  Prefactor     1.0998        5.8328        .45257E-02    .84282E-02
   3  Prefactor     1.8641        1.1893        .27827E-03    .25389E-03
   4  Prefactor     6.8757        6.2708        .15301E-03    .12483E-03
   5  Prefactor     .61670        3.3929        .17386        .18420E-02
   6  Prefactor     4.0432        3.9783        .20053E-03    .10885E-04
   7  norm          4.7181        3.2574        .92627E-03   -.13688E-03
   8  norm          12.225        5.8628        .11457E-03    .33977E-04
   9  Prefactor     .67557        3.0850        .48458E-02    .20798E-01
  10  norm          2.4405        .45449        .91373E-04    .16125E-03
  11  Prefactor     .10000E-03    1.2844        .18142E-02** at limit **
  12  norm          1.0679        .72626        .22772E-03   -.33549E-04
  13  Prefactor     .10000E-03    2.1766        .31684E-02** at limit **
  14  Normalizat    .93448        .95927E-01    .56873E-03    .30480E-03
  15  Prefactor     1.0403        .23968E-01    .13630E-03    .75533E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   108479.9     FROM SIMPLEX   STATUS=UNCHANGED    656 CALLS     2046 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3602        .34090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0998        5.8328        .12326E-05   -1.5498    
   3  Prefactor     1.8641        1.1893        .12201E-05   -1.5435    
   4  Prefactor     6.8757        6.2708        .12083E-05   -1.5183    
   5  Prefactor     .61670        3.3929        .12435E-05   -1.5551    
   6  Prefactor     4.0432        3.9783        .12197E-05   -1.5306    
   7  norm          4.7181        3.2574        .12086E-05   -1.5274    
   8  norm          12.225        5.8628        .11799E-05   -1.5009    
   9  Prefactor     .67557        3.0850        .12537E-05   -1.5544    
  10  norm          2.4405        .45449        .12206E-05   -1.5396    
  11  Prefactor     .10000E-03    1.2844        .21591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0679        .72626        .12163E-05   -1.5501    
  13  Prefactor     .10000E-03    2.1766        .16876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .93448        .95927E-01    .74935E-06   -.95259    
  15  Prefactor     1.0403        .23968E-01    .71719E-06   -.91397    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   108479.9     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2231 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3620        .36285E-03** at limit **
   2  Prefactor     1.0998        5.8229        .90514E-03    .33673E-03
   3  Prefactor     1.8641        1.1892        .55655E-04   -.22878E-04
   4  Prefactor     6.8757        6.2671        .61203E-05   -.17832E-04
   5  Prefactor     .61671        3.3733        .17453        .18251E-02
   6  Prefactor     4.0432        3.9782        .80214E-05   -.18141E-05
   7  norm          4.7181        3.2572        .37051E-04   -.39276E-05
   8  norm          12.225        5.8627        .22913E-04   -.12702E-05
   9  Prefactor     .67563        3.0994        .96915E-03    .85278E-03
  10  norm          2.4405        .45440        .36549E-05   -.29861E-04
  11  Prefactor     .10000E-03    1.2852        .36285E-03** at limit **
  12  norm          1.0679        .72625        .91087E-05    .23964E-05
  13  Prefactor     .10000E-03    2.2131        .63367E-03** at limit **
  14  Normalizat    .93448        .95826E-01    .22749E-04   -.47975E-04
  15  Prefactor     1.0403        .23950E-01    .54522E-05   -.16681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09982
  Prefactor  = 1.86413
  Prefactor  = 6.87573
  Prefactor  = 0.616707
  Prefactor  = 4.04322
  norm       = 4.71807
  norm       = 12.2254
  Prefactor  = 0.675632
  norm       = 2.44054
  Prefactor  = 0.0001
  norm       = 1.06789
  Prefactor  = 0.0001
  Normalizat = 0.934483
  Prefactor  = 1.04033
 **********
 **   18 **HESSE 
 **********

 FCN=   108479.9     FROM HESSE     STATUS=OK           180 CALLS     2411 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3620        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0998        5.8134        .18103E-03   -1.5498    
   3  Prefactor     1.8641        1.1889        .22262E-05   -1.5435    
   4  Prefactor     6.8757        6.2723        .12241E-05   -1.5183    
   5  Prefactor     .61671        3.3769        .17438       -1.5551    
   6  Prefactor     4.0432        3.9782        .80214E-05   -1.5306    
   7  norm          4.7181        3.2570        .74101E-05   -1.5274    
   8  norm          12.225        5.8627        .22913E-04   -1.5009    
   9  Prefactor     .67563        3.0974        .19383E-03   -1.5544    
  10  norm          2.4405        .45438        .73099E-06   -1.5396    
  11  Prefactor     .10000E-03    1.2852        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0679        .72625        .91087E-05   -1.5501    
  13  Prefactor     .10000E-03    2.2146        .12673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .93448        .95793E-01    .45498E-05   -.95259    
  15  Prefactor     1.0403        .23944E-01    .10904E-05   -.91397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54857e-09
Minuit parameter uncertainties:
  1  4.31391e-08
  2  5.05769
  3  1.1889
  4  6.27287
  5  2.88625
  6  3.97843
  7  3.25717
  8  5.86298
  9  2.89328
  10  0.454377
  11  9.7472e-08
  12  0.726252
  13  1.11337e-06
  14  0.0958101
  15  0.0239444
Done.

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

Extracting fit parameters...

4FGL J2014.3-0047
   Spectrum: PowerLaw
600    Prefactor:  4.043e+00  3.978e+00  1.000e-04  1.000e+04 ( 1.000e-14)
601        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
602        Scale:  3.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
939    Prefactor:  1.040e+00  2.394e-02  0.000e+00  1.000e+01 ( 1.000e+00)
940        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
941        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
935   Normalization:  9.345e-01  9.581e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 303.599 -0.792
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.38e-09 +/- 4.30e-09
Energy Flux (Fixed Index): 3.17e-06 +/- 3.11e-06

TS (Fixed Index): 2.74
Ra Dec: 303.599 -0.792
Photon Flux Upper Limit: 1.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682060/likelihoodResults_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.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) = 108479.399646
delta logL = 0.549811888559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 108479.395346
delta logL = 0.554111901627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4859       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3194       1.0000          .0000       10.000    
     3 'Normalizat'    .93646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9570E+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=   108479.4     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4855        4.8387        .19010E-03    .12831E-02
   2  Index         1.3192        .62480        .21070E-01    .40385E-03
   3  Normalizat    .93646        .93331E-01    .56818E-03   -.23178E-03
   4  Prefactor     1.0404        .23703E-01    .13630E-03   -.98488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48549
  Index      = 1.3192
  Normalizat = 0.936463
  Prefactor  = 1.04036
 **********
 **   18 **HESSE 
 **********

 FCN=   108479.4     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4855        4.9848        .76041E-05   -1.5284    
   2  Index         1.3192        .64381        .84278E-03   -.82738    
   3  Normalizat    .93646        .93357E-01    .22727E-04   -.95190    
   4  Prefactor     1.0404        .23710E-01    .54521E-05   -.91396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31058e-09
Minuit parameter uncertainties:
  1  4.98528
  2  0.647757
  3  0.0933731
  4  0.02371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682060': 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) = 108479.395346
delta logL = 0.554111977181

Extracting fit parameters...

4FGL J2014.3-0047
   Spectrum: PowerLaw
600    Prefactor:  4.485e+00  4.985e+00  1.000e-04  1.000e+04 ( 1.000e-14)
601        Index:  1.319e+00  6.478e-01  0.000e+00  1.000e+01 (-1.000e+00)
602        Scale:  3.367e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
939    Prefactor:  1.040e+00  2.371e-02  0.000e+00  1.000e+01 ( 1.000e+00)
940        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
941        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
935   Normalization:  9.365e-01  9.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 303.599 -0.792
Photon Index (Free Index): 1.32 +/- 0.65
Photon Flux (Free Index): 1.29e-09 +/- 2.12e-09
Energy Flux (Free Index): 7.45e-06 +/- 9.42e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/682060/cmap_HighResolution_338083201_340675201_4FGL_J2014.3-0047_monthly_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-03', comment='SUCCESS', photon_flux='4.38e-09', energy_flux2='7.45e-06', photon_flux_error='4.30e-09', dlogl='5.54e-01', energy_flux='3.17e-06', photon_flux2='1.29e-09', job_status='DONE', time_completed='2021-11-05 22:33:31.154174', photon_index_error2='0.65', photon_index2='1.32', ts='2.74', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.66e-08', energy_flux_error2='9.42e-06', EG='0.93', time_epoch_completed='1636176811.15', return_code='0', job_id='682060', GAL2='1.04', EG2='0.94', return_code2='0', energy_flux_error='3.11e-06', photon_flux_error2='2.12e-09', ts2='3.85', photon_index='1.98' WHERE bin_id='39' AND source_name='4FGL J2014.3-0047' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 22:33:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 682060: <4FGL_J2014.3-0047_monthly_bin39> in cluster <slac> Done

Job <4FGL_J2014.3-0047_monthly_bin39> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Nov  5 19:45:20 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov  5 19:45:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov  5 19:45:23 2021
Terminated at Fri Nov  5 22:33:32 2021
Results reported at Fri Nov  5 22:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2014.3-0047_monthly_bin39 303.599 -0.7922 338083201 340675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2014.3-0047 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9820.00 sec.
    Max Memory :                                 797 MB
    Average Memory :                             527.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10089 sec.
    Turnaround time :                            10092 sec.

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

