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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin188
RA = 114.82, Dec = 1.6216
tmin = 288057601, tmax = 288316801
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='586023', job_status='RUN', time_executed='2021-08-27 20:07:02.748314', time_epoch_executed='1630120022.75' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586023/ft1_4FGL_J0739.2+0137_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586023/ft1_4FGL_J0739.2+0137_daily_bin188.fits outfile=/scratch/kocevski/586023/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin188.fits ra=114.82 dec=1.6216 rad=12.0 tmin=288057601.0 tmax=288316801.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 4.70
user 3.34
sys 1.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.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/586023/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin188.fits evtable="EVENTS" outfile="/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.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 1.59
user 0.31
sys 1.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/586023/ltcube_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.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/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits
.....................!
real 13.11
user 11.55
sys 1.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/586023/ltcube_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits outfile=/scratch/kocevski/586023/expmap_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.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/586023/ltcube_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits
.....................!
real 192.06
user 185.09
sys 6.56

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 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 J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits outfile=/scratch/kocevski/586023/cmap_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.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=114.82 yref=1.6216 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 1.65
user 0.36
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits outfile=/scratch/kocevski/586023/cmap_HighResolution_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.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=114.82 yref=1.6216 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 1.56
user 0.39
sys 1.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/586023/Model_4FGL_J0739.2+0137_daily_bin188.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits.....................!
real 136.57
user 133.64
sys 2.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits', '/scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits', expMap='/scratch/kocevski/586023/expmap_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits', expCube='/scratch/kocevski/586023/ltcube_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/586023/Model_4FGL_J0739.2+0137_daily_bin188.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.2+0137'

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.536e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/586023/ft1_filtered_4FGL_J0739.2+0137_daily_bin188.fits
Spacecraft file(s): /scratch/kocevski/586023/ft2_4FGL_J0739.2+0137_daily_bin188.fits
Exposure map: /scratch/kocevski/586023/expmap_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits
Exposure cube: /scratch/kocevski/586023/ltcube_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/586023/Model_4FGL_J0739.2+0137_daily_bin188.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) = 9211.59750164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.959       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28821E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.259       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.688       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7055       1.0000         .10000E-03   10000.    
    21 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.2111       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9211.545     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2885 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.955        12.775       -.83669E-06   -.12292E-03
   2  norm          .10000E-03    11.889       -.35731E-05** at limit **
   3  Prefactor     .10000E-03    25.349       -.37833E-05** at limit **
   4  norm          .10001E-03    2.3757        .75876E-06** at limit **
   5  norm          1.9956        1.7047       -.56121E-07   -.61093E-03
   6  Prefactor     .10000E-03    25.177       -.22129E-05** at limit **
   7  Prefactor     7.8086        6.4935        .60477E-08   -.84002E-04
   8  Prefactor     .10000E-03    7.4171        .90004E-05** at limit **
   9  Prefactor     35.264        36.065        .55617E-05   -.68381E-05
  10  norm          6.2122        2.3312       -.10411E-06   -.35750E-03
  11  Prefactor     .10000E-03    11.986       -.30739E-05** at limit **
  12  norm          .10000E-03    12.436        .67339E-07** at limit **
  13  Prefactor     .10006E-03    2.5717       -.15364E-05** at limit **
  14  norm          .10000E-03    10.410       -.34818E-05** at limit **
  15  Prefactor     27.684        14.611       -.12766E-05    .29768E-03
  16  Prefactor     15.616        8.9313        .31820E-08   -.48741E-04
  17  Prefactor     48.702        39.775        .16576E-04   -.28034E-04
  18  norm          .10000E-03    2.8450       -.97370E-07** at limit **
  19  norm          .10000E-03    1.0204        .77819E-07** at limit **
  20  norm          4.7058        1.8655        .79822E-07   -.13224E-03
  21  norm          .10000E-03    11.903       -.37277E-05** at limit **
  22  norm          9.2126        5.0973        .15679E-05   -.18323E-03
  23  Prefactor     .10000E-03    14.264        .15752E-04** at limit **
  24  Normalizat    1.2541        .20456       -.53862E-05    .22681E-03
  25  Prefactor     .77073        .62597E-01    .72069E-06   -.63360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9555
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 1.99557
  Prefactor  = 0.0001
  Prefactor  = 7.80856
  Prefactor  = 0.0001
  Prefactor  = 35.2635
  norm       = 6.21218
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100063
  norm       = 0.0001
  Prefactor  = 27.6839
  Prefactor  = 15.6163
  Prefactor  = 48.7019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.70576
  norm       = 0.0001
  norm       = 9.21261
  Prefactor  = 0.0001
  Normalizat = 1.2541
  Prefactor  = 0.770732
 **********
 **   18 **HESSE 
 **********

 FCN=   9211.545     FROM HESSE     STATUS=OK           425 CALLS     3310 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.955        12.868        .11584E-03   -1.5016    
   2  norm          .10000E-03    11.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    10.719        .27943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9956        1.6942        .11052E-03   -1.5425    
   6  Prefactor     .10000E-03    25.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8086        6.4916        .14350E-03   -1.5149    
   8  Prefactor     .10000E-03    7.4624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.264        36.119        .67489E-04   -1.4520    
  10  norm          6.2122        2.3330        .84981E-04   -1.5209    
  11  Prefactor     .10000E-03    12.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    7.1107        .28835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.684        14.549        .76132E-04   -1.4655    
  16  Prefactor     15.616        8.9372        .10136E-03   -1.4917    
  17  Prefactor     48.702        39.887        .57469E-04   -1.4311    
  18  norm          .10000E-03    2.8470        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0306        .94586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7058        1.8642        .79776E-04   -1.5274    
  21  norm          .10000E-03    11.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.2126        5.0952        .13205E-03   -1.5101    
  23  Prefactor     .10000E-03    14.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2541        .21763        .38274E-03   -.84947    
  25  Prefactor     .77073        .66661E-01    .15448E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01034e-08
Minuit parameter uncertainties:
  1  12.8711
  2  5.45301e-06
  3  2.03491e-05
  4  0.000503702
  5  1.69425
  6  9.77451e-06
  7  6.49215
  8  7.03168e-06
  9  36.1412
  10  2.33301
  11  8.11917e-06
  12  1.78272e-05
  13  0.00134276
  14  4.39313e-05
  15  14.5513
  16  8.93793
  17  39.9093
  18  5.62865e-06
  19  2.32292e-06
  20  1.86423
  21  0.000148186
  22  5.09539
  23  4.60045e-05
  24  0.217789
  25  0.0666679
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.212e+00  2.333e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  7.707e-01  6.667e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.254e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.55
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 5.78e-08
Energy Flux (Fixed Index): 4.98e-05 +/- 1.87e-05

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) = 9211.05513238
delta logL = 0.489828498301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9211.03736644
delta logL = 0.507594438486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7081       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9320       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76562       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9211.037     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7069        2.2944        .42031E-02    .15385E-03
   2  alpha         1.9318        .30766        .28929       -.45510E-04
   3  Normalizat    1.2926        .18228        .85394E-01    .17813E-04
   4  Prefactor     .76562        .58529E-01    .43268E-01    .12561E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.70695
  alpha      = 1.93183
  Normalizat = 1.29256
  Prefactor  = 0.765617
 **********
 **   18 **HESSE 
 **********

 FCN=   9211.037     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7069        2.5672        .88157E-04   -1.5230    
   2  alpha         1.9318        .37497        .11707E-01   -.22927    
   3  Normalizat    1.2926        .19595        .37809E-03   -.83789    
   4  Prefactor     .76562        .62249E-01    .15494E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97955e-10
Minuit parameter uncertainties:
  1  2.56725
  2  0.376467
  3  0.196065
  4  0.0622549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586023': 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) = 9211.03736625
delta logL = 0.507594624052

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.707e+00  2.567e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.932e+00  3.765e-01  0.000e+00  5.000e+00 ( 1.000e+00)
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  7.656e-01  6.225e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.293e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.43
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.93 +/- 0.38
Photon Flux (Free Index): 1.10e-07 +/- 6.25e-08
Energy Flux (Free Index): 5.80e-05 +/- 2.60e-05

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/586023/cmap_HighResolution_288057601_288316801_4FGL_J0739.2+0137_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='5.80e-05', photon_flux_error='5.78e-08', dlogl='5.08e-01', energy_flux='4.98e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-27 20:20:12.930847', photon_index_error2='0.38', photon_index2='1.93', ts='17.55', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='1.25', time_epoch_completed='1630120812.93', return_code='0', job_id='586023', GAL2='0.77', EG2='1.29', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.25e-08', ts2='18.43', photon_index='2.31' WHERE bin_id='188' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 586023: <4FGL_J0739.2+0137_daily_bin188> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin188> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:05:22 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 20:05:23 2021
Terminated at Fri Aug 27 20:20:13 2021
Results reported at Fri Aug 27 20:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin188 114.82 1.6216 288057601 288316801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.2+0137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   805.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

