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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin700
RA = 114.82, Dec = 1.6216
tmin = 420768001, tmax = 421027201
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='589159', job_status='RUN', time_executed='2021-08-27 20:17:26.356574', time_epoch_executed='1630120646.36' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589159/ft1_4FGL_J0739.2+0137_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589159/ft1_4FGL_J0739.2+0137_daily_bin700.fits outfile=/scratch/kocevski/589159/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin700.fits ra=114.82 dec=1.6216 rad=12.0 tmin=420768001.0 tmax=421027201.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 7.90
user 3.24
sys 4.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/589159/ltcube_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.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/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits
.....................!
real 17.22
user 12.37
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/589159/ltcube_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits outfile=/scratch/kocevski/589159/expmap_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.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/589159/ltcube_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits
.....................!
real 197.68
user 187.19
sys 10.03

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/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits scfile=/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits outfile=/scratch/kocevski/589159/cmap_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.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 4.28
user 0.37
sys 3.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits scfile=/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits outfile=/scratch/kocevski/589159/cmap_HighResolution_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.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 4.29
user 0.36
sys 3.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589159/Model_4FGL_J0739.2+0137_daily_bin700.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/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits.....................!
real 132.03
user 125.43
sys 6.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits', '/scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits', expMap='/scratch/kocevski/589159/expmap_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits', expCube='/scratch/kocevski/589159/ltcube_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/589159/Model_4FGL_J0739.2+0137_daily_bin700.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/589159/ft1_filtered_4FGL_J0739.2+0137_daily_bin700.fits
Spacecraft file(s): /scratch/kocevski/589159/ft2_4FGL_J0739.2+0137_daily_bin700.fits
Exposure map: /scratch/kocevski/589159/expmap_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits
Exposure cube: /scratch/kocevski/589159/ltcube_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/589159/Model_4FGL_J0739.2+0137_daily_bin700.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) = 8555.78809985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.495       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43834E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.6443       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.651       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2077       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.523       1.0000         .10000E-03   10000.    
    18 'norm      '    20.127       1.0000         .10000E-03   10000.    
    19 'norm      '    .30291       1.0000         .10000E-03   10000.    
    20 'norm      '    .13544       1.0000         .10000E-03   10000.    
    21 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97129       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=   8555.776     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2919 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.493        11.864        .16014E-06   -.51289E-04
   2  norm          .10000E-03    14.128        .81970E-06** at limit **
   3  Prefactor     .10000E-03    203.78        .15589E-04** at limit **
   4  norm          6.6442        4.2885        .53698E-07   -.34625E-04
   5  norm          2.9714        2.2543       -.29436E-07   -.71916E-03
   6  Prefactor     .10000E-03    49.255       -.51662E-06** at limit **
   7  Prefactor     1.8611        14.994        .12826E-04   -.33738E-04
   8  Prefactor     19.653        14.021        .10245E-06   -.10386E-04
   9  Prefactor     10.495        27.087       -.96335E-06   -.45845E-04
  10  norm          3.2940        1.7731        .18846E-07    .48765E-04
  11  Prefactor     .10000E-03    12.587        .20608E-06** at limit **
  12  norm          10.931        17.787        .29052E-06   -.16066E-04
  13  Prefactor     3.2095        3.9647        .47187E-06    .12416E-04
  14  norm          .10000E-03    6.3376       -.26643E-07** at limit **
  15  Prefactor     16.913        10.884        .18280E-06    .78624E-05
  16  Prefactor     .10000E-03    16.208        .20098E-06** at limit **
  17  Prefactor     66.524        41.425        .50355E-06   -.20030E-04
  18  norm          20.139        19.180       -.14030E-06   -.11503E-03
  19  norm          .30352        2.8218        .12766E-05   -.33426E-04
  20  norm          .13568        .98138        .13097E-05   -.92348E-03
  21  norm          .10000E-03    11.691       -.66062E-06** at limit **
  22  norm          1.4479        5.5917        .21015E-05    .86945E-04
  23  Prefactor     .10000E-03    8.7289       -.58920E-08** at limit **
  24  Normalizat    .99960        .22681       -.26909E-05   -.36618E-03
  25  Prefactor     .97136        .72312E-01   -.59456E-06   -.93570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4933
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.64419
  norm       = 2.97137
  Prefactor  = 0.0001
  Prefactor  = 1.86106
  Prefactor  = 19.653
  Prefactor  = 10.4948
  norm       = 3.29402
  Prefactor  = 0.0001
  norm       = 10.9314
  Prefactor  = 3.20951
  norm       = 0.0001
  Prefactor  = 16.9127
  Prefactor  = 0.0001
  Prefactor  = 66.5237
  norm       = 20.139
  norm       = 0.303516
  norm       = 0.135677
  norm       = 0.0001
  norm       = 1.44791
  Prefactor  = 0.0001
  Normalizat = 0.999599
  Prefactor  = 0.971363
 **********
 **   18 **HESSE 
 **********

 FCN=   8555.776     FROM HESSE     STATUS=OK           431 CALLS     3350 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.493        11.927        .95756E-04   -1.4871    
   2  norm          .10000E-03    14.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    203.62        .21221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.6442        4.2938        .14857E-03   -1.5192    
   5  norm          2.9714        2.2454        .11347E-03   -1.5363    
   6  Prefactor     .10000E-03    49.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.8611        15.346        .15288E-02   -1.5435    
   8  Prefactor     19.653        14.027        .90351E-04   -1.4821    
   9  Prefactor     10.495        27.067        .12373E-03   -1.5060    
  10  norm          3.2940        1.7721        .86569E-04   -1.5345    
  11  Prefactor     .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.931        17.784        .12119E-03   -1.5047    
  13  Prefactor     3.2095        3.9739        .19015E-03   -1.5350    
  14  norm          .10000E-03    6.3425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.913        10.891        .97396E-04   -1.4885    
  16  Prefactor     .10000E-03    16.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     66.524        41.568        .49208E-04   -1.4075    
  18  norm          20.139        19.197        .89278E-04   -1.4810    
  19  norm          .30352        2.8477        .29573E-03   -1.5598    
  20  norm          .13568        3.5181        .16137E-02   -1.5634    
  21  norm          .10000E-03    11.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4479        5.5585        .35887E-03   -1.5467    
  23  Prefactor     .10000E-03    8.7324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99960        .24147        .42214E-03   -.93044    
  25  Prefactor     .97136        .77246E-01    .15376E-03   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10025e-09
Minuit parameter uncertainties:
  1  11.9285
  2  3.05052e-05
  3  0.000769964
  4  4.29401
  5  2.24544
  6  2.52009e-06
  7  10.6917
  8  14.0294
  9  27.0986
  10  1.7721
  11  1.03999e-05
  12  17.7922
  13  3.97427
  14  3.27552e-06
  15  10.8924
  16  0.000109153
  17  41.5864
  18  19.2029
  19  1.8592
  20  1.38136
  21  4.00132e-05
  22  5.56047
  23  3.40068e-06
  24  0.241734
  25  0.0772544
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.294e+00  1.772e+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:  9.714e-01  7.725e-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:  9.996e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.26
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.16e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.42e-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) = 8555.747816
delta logL = 0.0283244821167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8555.74714263
delta logL = 0.0289978593155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2719       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1847       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97046       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=   8555.747     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2719        2.7707        .55968E-02    .19934E-03
   2  alpha         2.1847        .70051        .41573        .31951E-04
   3  Normalizat    1.0064        .19202        .95010E-01    .20687E-04
   4  Prefactor     .97046        .68637E-01    .34811E-01   -.56168E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.27189
  alpha      = 2.18473
  Normalizat = 1.00644
  Prefactor  = 0.970463
 **********
 **   18 **HESSE 
 **********

 FCN=   8555.747     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2719        1.7863        .87673E-04   -1.5346    
   2  alpha         2.1847        .52510        .16299E-01   -.12644    
   3  Normalizat    1.0064        .20124        .42087E-03   -.92815    
   4  Prefactor     .97046        .71856E-01    .15383E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70811e-11
Minuit parameter uncertainties:
  1  1.78636
  2  0.529101
  3  0.201392
  4  0.0718631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589159': 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) = 8555.74714263
delta logL = 0.0289978596993

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.272e+00  1.786e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.185e+00  5.291e-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:  9.705e-01  7.186e-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.006e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.30
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.18 +/- 0.53
Photon Flux (Free Index): 7.37e-08 +/- 5.12e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.58e-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/589159/cmap_HighResolution_420768001_421027201_4FGL_J0739.2+0137_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.16e-08', energy_flux2='2.74e-05', photon_flux_error='4.39e-08', dlogl='2.90e-02', energy_flux='2.64e-05', photon_flux2='7.37e-08', job_status='DONE', time_completed='2021-08-27 20:30:59.963205', photon_index_error2='0.53', photon_index2='2.18', ts='8.26', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.00', time_epoch_completed='1630121459.96', return_code='0', job_id='589159', GAL2='0.97', EG2='1.01', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.12e-08', ts2='8.30', photon_index='2.31' WHERE bin_id='700' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 589159: <4FGL_J0739.2+0137_daily_bin700> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin700> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 27 20:15:31 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:15:32 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:15:32 2021
Terminated at Fri Aug 27 20:31:01 2021
Results reported at Fri Aug 27 20:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin700 114.82 1.6216 420768001 421027201 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 :                                   872.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

