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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin436
RA = 114.82, Dec = 1.6216
tmin = 352339201, tmax = 352598401
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='587709', job_status='RUN', time_executed='2021-08-27 20:11:03.069852', time_epoch_executed='1630120263.07' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587709/ft1_4FGL_J0739.2+0137_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587709/ft1_4FGL_J0739.2+0137_daily_bin436.fits outfile=/scratch/kocevski/587709/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin436.fits ra=114.82 dec=1.6216 rad=12.0 tmin=352339201.0 tmax=352598401.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.25
user 3.32
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.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/587709/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/587709/ft1_filtered_4FGL_J0739.2+0137_daily_bin436.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.21
user 0.34
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587709/ft1_filtered_4FGL_J0739.2+0137_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/587709/ltcube_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.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/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits
.....................!
real 13.02
user 11.84
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587709/ft1_filtered_4FGL_J0739.2+0137_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/587709/ltcube_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.fits outfile=/scratch/kocevski/587709/expmap_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.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/587709/ltcube_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.fits
.....................!
real 193.08
user 186.51
sys 6.04

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/587709/ft1_filtered_4FGL_J0739.2+0137_daily_bin436.fits scfile=/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits outfile=/scratch/kocevski/587709/cmap_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.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.23
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587709/ft1_filtered_4FGL_J0739.2+0137_daily_bin436.fits scfile=/scratch/kocevski/587709/ft2_4FGL_J0739.2+0137_daily_bin436.fits outfile=/scratch/kocevski/587709/cmap_HighResolution_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.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.24
user 0.39
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.633       1.0000         .10000E-03   10000.    
     2 'norm      '    32.793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.9323       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43439E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .74060       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7985       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0118       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0175       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=   8720.767     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2877 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.635        14.470        .37307E-06   -.34467E-03
   2  norm          32.794        26.596        .12519E-06    .26473E-04
   3  Prefactor     .10001E-03    40.281       -.74658E-05** at limit **
   4  norm          5.9327        4.9872        .10226E-05   -.20472E-02
   5  norm          3.1893        1.8632        .31841E-06   -.29268E-02
   6  Prefactor     .10000E-03    37.396        .10602E-05** at limit **
   7  Prefactor     .10000E-03    2.9910        .13024E-07** at limit **
   8  Prefactor     .10000E-03    5.8906        .84820E-07** at limit **
   9  Prefactor     .10000E-03    28.462        .54333E-05** at limit **
  10  norm          1.3090        1.2854        .39267E-07   -.11388E-03
  11  Prefactor     .10000E-03    27.749        .45101E-05** at limit **
  12  norm          6.5974        11.325        .38628E-07   -.17519E-04
  13  Prefactor     .10001E-03    1.5473       -.53995E-07** at limit **
  14  norm          .10000E-03    25.330        .12463E-05** at limit **
  15  Prefactor     .10000E-03    3.9078        .35695E-07** at limit **
  16  Prefactor     .10000E-03    13.513        .25694E-05** at limit **
  17  Prefactor     .10000E-03    11.678       -.12877E-05** at limit **
  18  norm          .10000E-03    12.302        .21608E-05** at limit **
  19  norm          .10000E-03    1.5010       -.68123E-07** at limit **
  20  norm          .74070        2.0957        .36025E-06   -.67970E-03
  21  norm          .10000E-03    11.653       -.13020E-05** at limit **
  22  norm          6.7988        4.1561        .68783E-06    .51369E-03
  23  Prefactor     .10001E-03    19.840       -.76978E-05** at limit **
  24  Normalizat    1.0119        .19461       -.71210E-06   -.44449E-04
  25  Prefactor     1.0175        .71344E-01   -.17160E-06   -.51023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.635
  norm       = 32.7939
  Prefactor  = 0.000100006
  norm       = 5.93267
  norm       = 3.18931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.30897
  Prefactor  = 0.000100002
  norm       = 6.59739
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.740705
  norm       = 0.0001
  norm       = 6.79878
  Prefactor  = 0.000100006
  Normalizat = 1.01186
  Prefactor  = 1.01747
 **********
 **   18 **HESSE 
 **********

 FCN=   8720.767     FROM HESSE     STATUS=OK           425 CALLS     3302 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.635        14.724        .61436E-03   -1.5056    
   2  norm          32.794        26.717        .69973E-04   -1.4562    
   3  Prefactor     .10001E-03    40.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9327        6.1092        .82434E-03   -1.5221    
   5  norm          3.1893        2.0189        .50651E-03   -1.5351    
   6  Prefactor     .10000E-03    37.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0037        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3090        1.2708        .10129E-03   -1.5479    
  11  Prefactor     .10000E-03    28.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5974        11.320        .15624E-03   -1.5194    
  13  Prefactor     .10001E-03    23.374        .22197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9120        .18027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5138        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .74070        2.1537        .21925E-03   -1.5536    
  21  norm          .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7988        4.1656        .14434E-03   -1.5186    
  23  Prefactor     .10001E-03    20.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0119        .20252        .41664E-03   -.92634    
  25  Prefactor     1.0175        .77875E-01    .15171E-03   -.92149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45556e-09
Minuit parameter uncertainties:
  1  14.7291
  2  26.7268
  3  0.00100575
  4  6.10984
  5  2.01892
  6  0.000134436
  7  4.60286e-07
  8  4.5621e-06
  9  0.000612245
  10  1.27085
  11  0.000499056
  12  11.3233
  13  0.00094163
  14  0.000131161
  15  2.35516e-06
  16  0.000183738
  17  9.63499e-05
  18  0.000139459
  19  2.1482e-06
  20  2.15397
  21  9.55214e-05
  22  4.16574
  23  0.000728249
  24  0.202671
  25  0.0778833
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.309e+00  1.271e+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:  1.017e+00  7.788e-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.012e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.02e-05

TS (Fixed Index): 2.25
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587709/likelihoodResults_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.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): 0
logL (Free Index) = 8720.61958505
delta logL = 0.147387035642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8720.6035679
delta logL = 0.163404180754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0764       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   8720.604     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0765        1.0714        .11648E-01    .17781E-03
   2  alpha         1.7854        .60430        .43507       -.39637E-04
   3  Normalizat    1.0232        .18378        .93593E-01    .29395E-06
   4  Prefactor     1.0161        .67219E-01    .42557E-01    .59237E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07646
  alpha      = 1.78536
  Normalizat = 1.02319
  Prefactor  = 1.01605
 **********
 **   18 **HESSE 
 **********

 FCN=   8720.604     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0765        1.2307        .93784E-04   -1.5500    
   2  alpha         1.7854        .83557        .23199E-01   -.28990    
   3  Normalizat    1.0232        .19434        .41460E-03   -.92257    
   4  Prefactor     1.0161        .71233E-01    .15180E-03   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8692e-09
Minuit parameter uncertainties:
  1  1.23073
  2  0.853514
  3  0.194471
  4  0.0712395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587709': 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) = 8720.60356784
delta logL = 0.163404238609

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.076e+00  1.231e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.785e+00  8.535e-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:  1.016e+00  7.124e-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.023e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.79 +/- 0.85
Photon Flux (Free Index): 1.93e-08 +/- 2.61e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.57e-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/587709/cmap_HighResolution_352339201_352598401_4FGL_J0739.2+0137_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-05', comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='1.32e-05', photon_flux_error='3.15e-08', dlogl='1.63e-01', energy_flux='1.05e-05', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-08-27 20:25:17.326595', photon_index_error2='0.85', photon_index2='1.79', ts='2.25', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.57e-05', EG='1.01', time_epoch_completed='1630121117.33', return_code='0', job_id='587709', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.61e-08', ts2='2.58', photon_index='2.31' WHERE bin_id='436' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:25:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 587709: <4FGL_J0739.2+0137_daily_bin436> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin436> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 20:10:39 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:10:41 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:10:41 2021
Terminated at Fri Aug 27 20:25:18 2021
Results reported at Fri Aug 27 20:25:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin436 114.82 1.6216 352339201 352598401 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 :                                   862.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

