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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin836
RA = 114.82, Dec = 1.6216
tmin = 456019201, tmax = 456278401
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='590707', job_status='RUN', time_executed='2021-08-27 20:24:04.551634', time_epoch_executed='1630121044.55' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590707/ft1_4FGL_J0739.2+0137_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590707/ft1_4FGL_J0739.2+0137_daily_bin836.fits outfile=/scratch/kocevski/590707/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin836.fits ra=114.82 dec=1.6216 rad=12.0 tmin=456019201.0 tmax=456278401.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.39
user 6.69
sys 0.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.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/590707/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/590707/ft1_filtered_4FGL_J0739.2+0137_daily_bin836.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.93
user 0.35
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590707/ft1_filtered_4FGL_J0739.2+0137_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/590707/ltcube_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.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/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits
.....................!
real 12.29
user 11.40
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590707/ft1_filtered_4FGL_J0739.2+0137_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/590707/ltcube_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.fits outfile=/scratch/kocevski/590707/expmap_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.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/590707/ltcube_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.fits
.....................!
real 193.49
user 187.38
sys 5.46

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/590707/ft1_filtered_4FGL_J0739.2+0137_daily_bin836.fits scfile=/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits outfile=/scratch/kocevski/590707/cmap_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.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 0.98
user 0.38
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590707/ft1_filtered_4FGL_J0739.2+0137_daily_bin836.fits scfile=/scratch/kocevski/590707/ft2_4FGL_J0739.2+0137_daily_bin836.fits outfile=/scratch/kocevski/590707/cmap_HighResolution_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.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 0.99
user 0.38
sys 0.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2883       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4656       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4308       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.982       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16324E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9793       1.0000         .10000E-03   10000.    
    14 'norm      '    11.831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.799       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5261       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3524       1.0000         .10000E-03   10000.    
    21 'norm      '    40.080       1.0000         .10000E-03   10000.    
    22 'norm      '    10.705       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97905       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=   8338.918     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2972 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2861        14.453       -.14715E-04    .16594E-03
   2  norm          .10000E-03    44.595        .28268E-05** at limit **
   3  Prefactor     2.8289        437.06       -.22570E-04   -.16953E-04
   4  norm          5.4348        6.8342        .20034E-07    .24744E-03
   5  norm          4.5831        2.9846       -.76786E-06    .23653E-03
   6  Prefactor     .10000E-03    138.11        .14291E-04** at limit **
   7  Prefactor     .10000E-03    6.2302        .82590E-06** at limit **
   8  Prefactor     12.900        19.460       -.18747E-05   -.62964E-05
   9  Prefactor     20.965        31.795       -.49577E-05   -.93205E-04
  10  norm          6.2357        2.6546       -.17573E-06    .20211E-03
  11  Prefactor     .10000E-03    219.27        .47004E-04** at limit **
  12  norm          .10000E-03    18.387        .11045E-05** at limit **
  13  Prefactor     3.9794        3.1290       -.23411E-06    .10846E-03
  14  norm          11.829        20.853       -.92653E-06   -.55778E-04
  15  Prefactor     11.597        14.324       -.36797E-05   -.19153E-03
  16  Prefactor     .10000E-03    4.9442        .21686E-05** at limit **
  17  Prefactor     .10000E-03    13.709        .40785E-06** at limit **
  18  norm          15.805        14.094        .42823E-06    .19785E-03
  19  norm          1.5297        3.0043       -.37727E-05   -.37707E-04
  20  norm          3.3518        1.9258        .32200E-06    .63166E-03
  21  norm          40.088        26.970       -.98224E-06    .31438E-04
  22  norm          10.706        6.0195       -.70438E-06    .60969E-04
  23  Prefactor     .10000E-03    15.542        .79715E-07** at limit **
  24  Normalizat    .95087        .23641        .43367E-05    .15708E-03
  25  Prefactor     .97901        .77556E-01    .41019E-06    .43271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28606
  norm       = 0.0001
  Prefactor  = 2.82885
  norm       = 5.43483
  norm       = 4.58306
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 12.9001
  Prefactor  = 20.9646
  norm       = 6.23572
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 3.97936
  norm       = 11.829
  Prefactor  = 11.5974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8052
  norm       = 1.52972
  norm       = 3.35182
  norm       = 40.0876
  norm       = 10.7064
  Prefactor  = 0.0001
  Normalizat = 0.950865
  Prefactor  = 0.979008
 **********
 **   18 **HESSE 
 **********

 FCN=   8338.918     FROM HESSE     STATUS=OK           441 CALLS     3413 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2861        14.541        .39036E-03   -1.5481    
   2  norm          .10000E-03    45.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8289        433.76        .26044E-03   -1.5372    
   4  norm          5.4348        6.8702        .17243E-03   -1.5242    
   5  norm          4.5831        2.9706        .11696E-03   -1.5280    
   6  Prefactor     .10000E-03    139.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.900        19.513        .11155E-03   -1.4989    
   9  Prefactor     20.965        31.905        .87441E-04   -1.4792    
  10  norm          6.2357        2.6533        .91894E-04   -1.5208    
  11  Prefactor     .10000E-03    21.709        .14226       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9794        3.1286        .13827E-03   -1.5309    
  14  norm          11.829        20.836        .11646E-03   -1.5020    
  15  Prefactor     11.597        14.369        .11763E-03   -1.5027    
  16  Prefactor     .10000E-03    4.9761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.805        14.128        .10076E-03   -1.4913    
  19  norm          1.5297        2.9831        .20346E-03   -1.5461    
  20  norm          3.3518        1.9102        .88337E-04   -1.5342    
  21  norm          40.088        27.041        .63315E-04   -1.4441    
  22  norm          10.706        6.0240        .12245E-03   -1.5053    
  23  Prefactor     .10000E-03    15.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95087        .25174        .45816E-03   -.94695    
  25  Prefactor     .97901        .83669E-01    .15764E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55832e-10
Minuit parameter uncertainties:
  1  8.65127
  2  4.87385e-05
  3  70.5838
  4  6.87124
  5  2.9707
  6  0.00142254
  7  1.22903e-05
  8  19.5222
  9  31.9313
  10  2.65335
  11  0.000482922
  12  3.19468e-05
  13  3.12878
  14  20.8483
  15  14.3732
  16  1.94474e-05
  17  7.10529e-07
  18  14.1305
  19  2.9834
  20  1.91019
  21  27.0496
  22  6.02439
  23  1.25871e-05
  24  0.252052
  25  0.0836797
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.236e+00  2.653e+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.790e-01  8.368e-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.509e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.85
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 6.57e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 2.13e-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) = 8338.6758855
delta logL = 0.2418878548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8338.66619438
delta logL = 0.251578982216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1258       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0238       1.0000          .0000       5.0000    
     3 'Normalizat'    .97574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97506       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=   8338.666     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1258        2.8250        .40552E-02   -.15672E-02
   2  alpha         2.0238        .36822        .31254       -.32339E-04
   3  Normalizat    .97569        .20871        .10222        .34411E-04
   4  Prefactor     .97508        .72283E-01    .45955E-01   -.62955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12581
  alpha      = 2.02384
  Normalizat = 0.975689
  Prefactor  = 0.975076
 **********
 **   18 **HESSE 
 **********

 FCN=   8338.666     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1258        2.7362        .93939E-04   -1.5213    
   2  alpha         2.0238        .39448        .12459E-01   -.19164    
   3  Normalizat    .97569        .22190        .45301E-03   -.93849    
   4  Prefactor     .97508        .76603E-01    .15790E-03   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72177e-10
Minuit parameter uncertainties:
  1  2.73623
  2  0.396195
  3  0.222107
  4  0.0766113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590707': 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) = 8338.66619434
delta logL = 0.251579014115

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  6.126e+00  2.736e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.024e+00  3.962e-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.751e-01  7.661e-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.757e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.27
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.02 +/- 0.40
Photon Flux (Free Index): 1.24e-07 +/- 6.89e-08
Energy Flux (Free Index): 5.70e-05 +/- 2.78e-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/590707/cmap_HighResolution_456019201_456278401_4FGL_J0739.2+0137_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='5.70e-05', photon_flux_error='6.57e-08', dlogl='2.52e-01', energy_flux='5.00e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-08-27 20:36:51.655324', photon_index_error2='0.40', photon_index2='2.02', ts='11.85', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='0.95', time_epoch_completed='1630121811.66', return_code='0', job_id='590707', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.89e-08', ts2='12.27', photon_index='2.31' WHERE bin_id='836' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:36:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 590707: <4FGL_J0739.2+0137_daily_bin836> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin836> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:20:34 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:20:46 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:20:46 2021
Terminated at Fri Aug 27 20:36:52 2021
Results reported at Fri Aug 27 20:36:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin836 114.82 1.6216 456019201 456278401 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 :                                   770.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            978 sec.

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

