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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin433
RA = 129.963, Dec = 1.0877
tmin = 351561601, tmax = 351820801
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='601110', job_status='RUN', time_executed='2021-08-30 02:53:36.643064', time_epoch_executed='1630317216.64' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601110

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601110/ft1_4FGL_J0839.8+0105_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601110/ft1_4FGL_J0839.8+0105_daily_bin433.fits outfile=/scratch/kocevski/601110/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin433.fits ra=129.963 dec=1.0877 rad=12.0 tmin=351561601.0 tmax=351820801.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 9.70
user 6.59
sys 3.05

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.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/601110/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin433.fits evtable="EVENTS" outfile="/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.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 3.69
user 0.33
sys 3.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/601110/ltcube_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.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/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits
.....................!
real 14.67
user 10.71
sys 3.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/601110/ltcube_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits outfile=/scratch/kocevski/601110/expmap_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.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/601110/ltcube_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits
.....................!
real 195.01
user 185.56
sys 9.05

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

Setting source of interest to:
4FGL J0839.8+0105 @ 129.963 1.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits outfile=/scratch/kocevski/601110/cmap_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.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=129.963 yref=1.0877 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.45
user 0.36
sys 2.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits outfile=/scratch/kocevski/601110/cmap_HighResolution_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.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=129.963 yref=1.0877 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.80
user 0.37
sys 3.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601110/Model_4FGL_J0839.8+0105_daily_bin433.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/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits....................!
real 56.21
user 49.33
sys 5.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits', '/scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits', expMap='/scratch/kocevski/601110/expmap_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits', expCube='/scratch/kocevski/601110/ltcube_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601110/Model_4FGL_J0839.8+0105_daily_bin433.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0839.8+0105'

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.335e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/601110/ft1_filtered_4FGL_J0839.8+0105_daily_bin433.fits
Spacecraft file(s): /scratch/kocevski/601110/ft2_4FGL_J0839.8+0105_daily_bin433.fits
Exposure map: /scratch/kocevski/601110/expmap_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits
Exposure cube: /scratch/kocevski/601110/ltcube_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601110/Model_4FGL_J0839.8+0105_daily_bin433.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) = 4193.0288761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.523       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4601       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3900       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27689       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.372       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3834       1.0000         .10000E-03   10000.    
    11 'norm      '    .59896       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.728       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4896       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0061       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91324       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4192.932     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1706 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6328        27.968        .17929E-04   -.16684E-04
   2  Prefactor     17.523        21.128       -.16070E-05    .11881E-03
   3  norm          1.4431        23.746       -.40140E-05   -.48351E-05
   4  norm          2.3889        2.3778       -.38742E-06   -.97824E-06
   5  norm          .10000E-03    1.0126       -.10582E-06** at limit **
   6  norm          .20465        15.521       -.28096E-05    .27057E-03
   7  norm          .10000E-03    2.4740        .99213E-07** at limit **
   8  Prefactor     10.361        35.564       -.58697E-05   -.10343E-03
   9  norm          .10000E-03    15.657       -.47554E-07** at limit **
  10  Prefactor     6.3832        11.267        .41312E-06   -.25009E-04
  11  norm          .59911        1.1161        .19449E-06    .27375E-04
  12  norm          .10000E-03    5.4941       -.16228E-06** at limit **
  13  Prefactor     .10000E-03    24.045       -.27525E-06** at limit **
  14  norm          10.728        5.7762        .15480E-06   -.29059E-04
  15  norm          .10000E-03    2.5286       -.74732E-07** at limit **
  16  Prefactor     .10000E-03    30.125       -.32643E-06** at limit **
  17  Prefactor     5.4896        4.1126        .76615E-07    .27945E-04
  18  Normalizat    1.0059        .22162       -.20454E-05   -.33338E-03
  19  Prefactor     .91336        .16718        .31446E-06   -.19789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63279
  Prefactor  = 17.5229
  norm       = 1.44313
  norm       = 2.38888
  norm       = 0.0001
  norm       = 0.204647
  norm       = 0.0001
  Prefactor  = 10.3611
  norm       = 0.0001
  Prefactor  = 6.38316
  norm       = 0.599113
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7282
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.48961
  Normalizat = 1.00593
  Prefactor  = 0.913361
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.932     FROM HESSE     STATUS=OK           276 CALLS     1982 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6328        28.727        .16531E-02   -1.5452    
   2  Prefactor     17.523        21.287        .95680E-04   -1.4871    
   3  norm          1.4431        23.886        .35611E-03   -1.5468    
   4  norm          2.3889        2.3837        .95385E-04   -1.5399    
   5  norm          .10000E-03    1.0364        .12710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .20465        19.281        .79085E-01   -1.5618    
   7  norm          .10000E-03    2.5385        .19888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.361        36.705        .12441E-03   -1.5064    
   9  norm          .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3832        11.260        .15886E-03   -1.5203    
  11  norm          .59911        1.0874        .87735E-04   -1.5553    
  12  norm          .10000E-03    5.5294        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.728        5.7749        .10901E-03   -1.5053    
  15  norm          .10000E-03    2.5333        .10056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4896        4.1095        .11017E-03   -1.5239    
  18  Normalizat    1.0059        .25854        .25812E-03   -.92832    
  19  Prefactor     .91336        .19687        .20837E-03   -.95676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25593e-09
Minuit parameter uncertainties:
  1  13.7047
  2  21.2958
  3  11.7475
  4  2.38384
  5  6.08674e-06
  6  3.97315
  7  9.46615e-06
  8  36.7853
  9  1.02468e-05
  10  11.2635
  11  1.0874
  12  1.25232e-05
  13  2.2525e-06
  14  5.77517
  15  6.71705e-06
  16  0.00025687
  17  4.10975
  18  0.258859
  19  0.197024
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.252e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.134e-01  1.970e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.006e+00  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601110/likelihoodResults_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.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) = 4192.93288649
delta logL = -0.000861391768012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4192.93202505
delta logL = 3.95448296331e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+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=   4192.932     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      245 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .77943        .45637E-01** at limit **
   2  alpha         3.6608        4.2924        .16561        .44593E-07
   3  Normalizat    1.0059        .41504E-02    .25812E-03    .14649E-03
   4  Prefactor     .91336        .32252E-02    .20837E-03    .96408E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.66078
  Normalizat = 1.00594
  Prefactor  = 0.913359
 **********
 **   18 **HESSE 
 **********

 FCN=   4192.932     FROM HESSE     STATUS=OK            27 CALLS      272 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.239        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6608        3.6999        .33122E-01    .48286    
   3  Normalizat    1.0059        .25097        .10325E-04   -.92832    
   4  Prefactor     .91336        .19506        .41674E-04   -.95676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35235e-11
Minuit parameter uncertainties:
  1  9.3759e-07
  2  336.108
  3  0.251264
  4  0.195206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601110': 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) = 4192.93202064
delta logL = 4.45388468506e-06

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  9.376e-07  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.661e+00  3.361e+02  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.134e-01  1.952e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.006e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.963 1.088

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/601110/cmap_HighResolution_351561601_351820801_4FGL_J0839.8+0105_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-08-30 03:02:32.354019', job_id='601110', GAL2='0.91', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630317752.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='433' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 601110: <4FGL_J0839.8+0105_daily_bin433> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin433> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:35 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:50:36 2021
Terminated at Mon Aug 30 03:02:34 2021
Results reported at Mon Aug 30 03:02:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin433 129.963 1.0877 351561601 351820801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0839.8+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

