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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin1075
RA = 123.551, Dec = -10.2172
tmin = 517968001, tmax = 518227201
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='335086', job_status='RUN', time_executed='2021-08-29 13:38:43.399552', time_epoch_executed='1630269523.4' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335086/ft1_4FGL_J0814.2-1013_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335086/ft1_4FGL_J0814.2-1013_daily_bin1075.fits outfile=/scratch/kocevski/335086/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1075.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=517968001.0 tmax=518227201.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 6.05
user 3.47
sys 2.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.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/335086/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.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 2.83
user 0.32
sys 2.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/335086/ltcube_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.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/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits
.....................!
real 14.57
user 11.61
sys 2.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/335086/ltcube_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits outfile=/scratch/kocevski/335086/expmap_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.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/335086/ltcube_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits
.....................!
real 194.62
user 185.44
sys 8.18

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0814.2-1013 @ 123.551 -10.2172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits outfile=/scratch/kocevski/335086/cmap_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.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=123.551 yref=-10.2172 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 3.08
user 0.38
sys 2.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits outfile=/scratch/kocevski/335086/cmap_HighResolution_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.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=123.551 yref=-10.2172 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 2.90
user 0.40
sys 2.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335086/Model_4FGL_J0814.2-1013_daily_bin1075.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/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits.....................!
real 124.65
user 119.69
sys 4.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits', '/scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits', expMap='/scratch/kocevski/335086/expmap_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits', expCube='/scratch/kocevski/335086/ltcube_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335086/Model_4FGL_J0814.2-1013_daily_bin1075.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0814.2-1013'

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  3.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335086/ft1_filtered_4FGL_J0814.2-1013_daily_bin1075.fits
Spacecraft file(s): /scratch/kocevski/335086/ft2_4FGL_J0814.2-1013_daily_bin1075.fits
Exposure map: /scratch/kocevski/335086/expmap_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits
Exposure cube: /scratch/kocevski/335086/ltcube_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335086/Model_4FGL_J0814.2-1013_daily_bin1075.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) = 9373.16146404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.554       1.0000         .10000E-03   10000.    
     4 'norm      '    12.256       1.0000         .10000E-03   10000.    
     5 'norm      '    27.580       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .26165       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9822       1.0000         .10000E-03   10000.    
    11 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7880       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2922       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7716       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94092       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9373.144     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1884 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2968        1.5135       -.45507E-07    .22348E-03
   2  Prefactor     8.7682        19.274       -.23870E-04   -.79283E-06
   3  Prefactor     26.543        28.629       -.18066E-04    .25233E-04
   4  norm          12.253        14.344       -.39109E-05    .28946E-04
   5  norm          27.576        13.278       -.40003E-05    .53104E-04
   6  norm          .10000E-03    .85414       -.44161E-07** at limit **
   7  Prefactor     .10000E-03    3.2698       -.50735E-06** at limit **
   8  norm          .10000E-03    6.6802        .80772E-06** at limit **
   9  norm          .25183        1.1445       -.77704E-06    .53146E-04
  10  Prefactor     6.9814        7.8112       -.72928E-06   -.10196E-03
  11  norm          .10000E-03    .33256        .23783E-07** at limit **
  12  Prefactor     .10000E-03    2.6880       -.34052E-07** at limit **
  13  Prefactor     4.7880        3.4592       -.22480E-06    .13856E-03
  14  norm          8.2917        11.077       -.56565E-06    .58448E-05
  15  norm          .10000E-03    7.6899        .10089E-05** at limit **
  16  Prefactor     .10000E-03    6.1261       -.22703E-05** at limit **
  17  norm          3.7716        6.0157       -.83196E-06   -.26890E-03
  18  norm          1.5354        1.4990        .17374E-07    .43997E-03
  19  Prefactor     .10000E-03    3.9114        .78487E-06** at limit **
  20  Normalizat    .94074        .18584        .14079E-05    .22720E-03
  21  Prefactor     1.0280        .81253E-01    .21235E-05   -.10505E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.29685
  Prefactor  = 8.76824
  Prefactor  = 26.5432
  norm       = 12.2532
  norm       = 27.576
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.251828
  Prefactor  = 6.98143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78797
  norm       = 8.29168
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77159
  norm       = 1.53541
  Prefactor  = 0.0001
  Normalizat = 0.94074
  Prefactor  = 1.02804
 **********
 **   18 **HESSE 
 **********

 FCN=   9373.144     FROM HESSE     STATUS=OK           323 CALLS     2207 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2968        1.5202        .67773E-04   -1.5293    
   2  Prefactor     8.7682        19.312        .13529E-03   -1.5116    
   3  Prefactor     26.543        28.611        .77741E-04   -1.4677    
   4  norm          12.253        14.347        .11442E-03   -1.5008    
   5  norm          27.576        13.347        .76284E-04   -1.4657    
   6  norm          .10000E-03    .86113        .87369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2832        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .25183        4.0290        .19609E-02   -1.5608    
  10  Prefactor     6.9814        7.8005        .15182E-03   -1.5179    
  11  norm          .10000E-03    .50272        .10705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6946        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7880        3.4584        .14817E-03   -1.5270    
  14  norm          8.2917        11.072        .13922E-03   -1.5132    
  15  norm          .10000E-03    7.9193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7716        6.0069        .20788E-03   -1.5320    
  18  norm          1.5354        1.5190        .11388E-03   -1.5460    
  19  Prefactor     .10000E-03    3.9158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94074        .20074        .39938E-03   -.95043    
  21  Prefactor     1.0280        .89122E-01    .16339E-03   -.91801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86312e-10
Minuit parameter uncertainties:
  1  1.52022
  2  19.3256
  3  28.6259
  4  14.3514
  5  13.3488
  6  2.987e-07
  7  5.69536e-06
  8  1.22339e-07
  9  2.01432
  10  7.80167
  11  2.0242e-06
  12  2.53495e-06
  13  3.45851
  14  11.0748
  15  7.18755e-05
  16  6.67392e-06
  17  6.00788
  18  1.51908
  19  4.37846e-06
  20  0.200897
  21  0.0891348
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  2.535e-06  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.028e+00  8.913e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  9.407e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335086/likelihoodResults_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.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) = 9373.14555904
delta logL = -0.00176499705412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9373.14379399
delta logL = 6.07051333645e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0944       1.0000          .0000       10.000    
     3 'Normalizat'    .94076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+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=   9373.144     FROM MIGRAD    STATUS=FAILED        86 CALLS      240 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    41.895        .15705E-02** at limit **
   2  Index         2.0136        5.9947        .50000        .43378E-04
   3  Normalizat    .94074        .21166E-01    .39938E-03    .12297E-04
   4  Prefactor     1.0280        .90795E-02    .16339E-03    .31033E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9373.144     FROM SIMPLEX   STATUS=PROGRESS     128 CALLS      368 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10179E-03    41.895        .19062E-03** at limit **
   2  Index         2.0121        5.9947        .50320E-03    .43378E-04
   3  Normalizat    .94073        .21166E-01    .48676E-05    .12297E-04
   4  Prefactor     1.0280        .90795E-02    .17697E-05    .31033E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9373.144     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      419 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.348        .31410E-02** at limit **
   2  Index         1.6677        8.0880        .50000       -.21828E-08
   3  Normalizat    .94074        .20093E-01    .15975E-04   -.15371E-04
   4  Prefactor     1.0280        .86195E-02    .65354E-05   -.77236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66769
  Normalizat = 0.940737
  Prefactor  = 1.02804
 **********
 **   18 **HESSE 
 **********

 FCN=   9373.144     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    207.54        .62821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6677        5.4592        .50000       -.72945    
   3  Normalizat    .94074        .47483E-01    .31951E-05   -.95043    
   4  Prefactor     1.0280        .20373E-01    .13071E-05   -.91800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42654e-10
Minuit parameter uncertainties:
  1  0.000147124
  2  820.833
  3  0.0474854
  4  0.020373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335086': 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) = 9373.143791
delta logL = 3.04371678794e-06

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.471e-04  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  1.668e+00  8.208e+02  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.028e+00  2.037e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  9.407e-01  4.749e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 123.551 -10.217

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/335086/cmap_HighResolution_517968001_518227201_4FGL_J0814.2-1013_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-08-29 13:52:09.845895', job_id='335086', GAL2='1.03', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630270329.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1075' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 335086: <4FGL_J0814.2-1013_daily_bin1075> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin1075> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 13:35:32 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 13:35:33 2021
Terminated at Sun Aug 29 13:52:11 2021
Results reported at Sun Aug 29 13:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin1075 123.551 -10.2172 517968001 518227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0814.2-1013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

