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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin916
RA = 114.82, Dec = 1.6216
tmin = 476755201, tmax = 477014401
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='593166', job_status='RUN', time_executed='2021-08-27 20:32:38.463982', time_epoch_executed='1630121558.46' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='916'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593166/ft1_4FGL_J0739.2+0137_daily_bin916.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593166/ft1_4FGL_J0739.2+0137_daily_bin916.fits outfile=/scratch/kocevski/593166/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin916.fits ra=114.82 dec=1.6216 rad=12.0 tmin=476755201.0 tmax=477014401.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 3.93
user 3.32
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593166/ft1_filtered_4FGL_J0739.2+0137_daily_bin916.fits" evtable="EVENTS" scfile=/scratch/kocevski/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits sctable="SC_DATA" outfile=/scratch/kocevski/593166/ltcube_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.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/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits
.....................!
real 15.02
user 14.13
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593166/ft1_filtered_4FGL_J0739.2+0137_daily_bin916.fits evtable="EVENTS" scfile=/scratch/kocevski/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits sctable="SC_DATA" expcube=/scratch/kocevski/593166/ltcube_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.fits outfile=/scratch/kocevski/593166/expmap_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.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/593166/ltcube_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.fits
.....................!
real 194.72
user 186.99
sys 5.58

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/593166/ft1_filtered_4FGL_J0739.2+0137_daily_bin916.fits scfile=/scratch/kocevski/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits outfile=/scratch/kocevski/593166/cmap_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.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.93
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593166/ft1_filtered_4FGL_J0739.2+0137_daily_bin916.fits scfile=/scratch/kocevski/593166/ft2_4FGL_J0739.2+0137_daily_bin916.fits outfile=/scratch/kocevski/593166/cmap_HighResolution_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.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.85
user 0.39
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18558E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2477       1.0000         .10000E-03   10000.    
     5 'norm      '    .14149E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1738       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4183       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8611       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0070       1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46382E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3794       1.0000         .10000E-03   10000.    
    19 'norm      '    .38938       1.0000         .10000E-03   10000.    
    20 'norm      '    .36867       1.0000         .10000E-03   10000.    
    21 'norm      '    32.802       1.0000         .10000E-03   10000.    
    22 'norm      '    19.586       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93999       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96956       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=   9591.578     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3034 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4720        .14827E-07** at limit **
   2  norm          .10000E-03    16.624        .14297E-06** at limit **
   3  Prefactor     .10002E-03    227.88       -.61532E-05** at limit **
   4  norm          6.2479        5.6552        .27606E-06    .40063E-04
   5  norm          .10000E-03    .78515        .47300E-07** at limit **
   6  Prefactor     12.150        37.442        .13300E-05    .56344E-04
   7  Prefactor     5.0300        4.9970       -.25205E-06   -.17427E-03
   8  Prefactor     12.693        12.257        .70998E-08   -.22080E-04
   9  Prefactor     7.1735        30.794        .11855E-06   -.50902E-06
  10  norm          3.6650        2.1701        .35412E-07   -.15070E-03
  11  Prefactor     1.4191        65.840        .14779E-05   -.32569E-04
  12  norm          8.8612        16.669        .14921E-05   -.22141E-03
  13  Prefactor     1.0061        3.7355        .19318E-05   -.45520E-03
  14  norm          .10000E-03    23.532       -.45654E-07** at limit **
  15  Prefactor     18.981        16.293       -.19373E-05   -.56720E-03
  16  Prefactor     .10015E-03    4.2554        .16980E-06** at limit **
  17  Prefactor     .10000E-03    33.241       -.45599E-06** at limit **
  18  norm          7.3812        8.7325       -.31658E-07   -.59118E-04
  19  norm          .39336        1.4881       -.13327E-06   -.19230E-03
  20  norm          .36859        .94327        .37542E-06   -.39730E-03
  21  norm          32.809        27.415       -.57076E-07   -.47510E-04
  22  norm          19.587        6.1008       -.50138E-07   -.17535E-03
  23  Prefactor     .10000E-03    17.943       -.23546E-06** at limit **
  24  Normalizat    .93994        .21283       -.94108E-07   -.81024E-04
  25  Prefactor     .96956        .66572E-01   -.27653E-06    .44507E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100016
  norm       = 6.24789
  norm       = 0.0001
  Prefactor  = 12.1503
  Prefactor  = 5.02997
  Prefactor  = 12.6935
  Prefactor  = 7.17349
  norm       = 3.66495
  Prefactor  = 1.41915
  norm       = 8.86119
  Prefactor  = 1.00608
  norm       = 0.0001
  Prefactor  = 18.9814
  Prefactor  = 0.000100147
  Prefactor  = 0.0001
  norm       = 7.38122
  norm       = 0.393363
  norm       = 0.368594
  norm       = 32.8089
  norm       = 19.5872
  Prefactor  = 0.0001
  Normalizat = 0.93994
  Prefactor  = 0.969555
 **********
 **   18 **HESSE 
 **********

 FCN=   9591.578     FROM HESSE     STATUS=OK           447 CALLS     3481 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4802        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    240.53        .40590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2479        5.6636        .16060E-03   -1.5208    
   5  norm          .10000E-03    5.3185        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.150        37.346        .11496E-03   -1.5011    
   7  Prefactor     5.0300        5.0141        .17930E-03   -1.5259    
   8  Prefactor     12.693        12.260        .11243E-03   -1.4995    
   9  Prefactor     7.1735        30.541        .14976E-03   -1.5172    
  10  norm          3.6650        2.1701        .10435E-03   -1.5325    
  11  Prefactor     1.4191        67.455        .36337E-03   -1.5470    
  12  norm          8.8612        16.939        .67325E-03   -1.5113    
  13  Prefactor     1.0061        3.8677        .34358E-03   -1.5507    
  14  norm          .10000E-03    23.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.981        17.185        .91969E-04   -1.4836    
  16  Prefactor     .10015E-03    5.9874        .69908E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3812        8.7353        .14764E-03   -1.5165    
  19  norm          .39336        4.4972        .20948E-02   -1.5583    
  20  norm          .36859        .88101        .14500E-02   -1.5587    
  21  norm          32.809        27.539        .69964E-04   -1.4562    
  22  norm          19.587        6.1136        .90501E-04   -1.4823    
  23  Prefactor     .10000E-03    17.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93994        .22485        .44377E-03   -.95071    
  25  Prefactor     .96956        .70006E-01    .15107E-03   -.93751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49858e-08
Minuit parameter uncertainties:
  1  5.71598e-07
  2  2.64632e-05
  3  0.00393163
  4  5.66407
  5  4.60649e-05
  6  37.4176
  7  5.0145
  8  12.2628
  9  29.6284
  10  2.17013
  11  19.591
  12  16.9484
  13  3.86865
  14  0.000210403
  15  17.1898
  16  0.00187804
  17  0.000104323
  18  8.73685
  19  2.66002
  20  0.881044
  21  27.5492
  22  6.11379
  23  3.45104e-05
  24  0.225075
  25  0.0700128
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.665e+00  2.170e+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.696e-01  7.001e-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.399e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.08e-08 +/- 5.37e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.74e-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) = 9591.54301082
delta logL = 0.0348490386114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9591.54170437
delta logL = 0.0361554896317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6738       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4655       1.0000          .0000       5.0000    
     3 'Normalizat'    .92915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97109       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=   9591.542     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6780        53.405        .52683E-02    .26600E-03
   2  alpha         2.4669        3.1285        .41157       -.37648E-05
   3  Normalizat    .92895        .14050        .10066        .18658E-04
   4  Prefactor     .97110        .52069E-01    .34162E-01    .30963E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.67804
  alpha      = 2.46686
  Normalizat = 0.928951
  Prefactor  = 0.971101
 **********
 **   18 **HESSE 
 **********

 FCN=   9591.542     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6780        2.1291        .10155E-03   -1.5324    
   2  alpha         2.4669        .57299        .17920E-01   -.13257E-01
   3  Normalizat    .92895        .19890        .44613E-03   -.95450    
   4  Prefactor     .97110        .66821E-01    .15096E-03   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84423e-11
Minuit parameter uncertainties:
  1  2.12909
  2  0.578133
  3  0.199062
  4  0.0668271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593166': 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) = 9591.54169916
delta logL = 0.0361606939132

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.678e+00  2.129e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.467e+00  5.781e-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.711e-01  6.683e-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.290e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.47 +/- 0.58
Photon Flux (Free Index): 1.03e-07 +/- 7.27e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.67e-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/593166/cmap_HighResolution_476755201_477014401_4FGL_J0739.2+0137_daily_bin916.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.08e-08', energy_flux2='2.90e-05', photon_flux_error='5.37e-08', dlogl='3.62e-02', energy_flux='2.94e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-27 20:46:26.493133', photon_index_error2='0.58', photon_index2='2.47', ts='4.82', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.94', time_epoch_completed='1630122386.49', return_code='0', job_id='593166', GAL2='0.97', EG2='0.93', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.27e-08', ts2='4.91', photon_index='2.31' WHERE bin_id='916' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 593166: <4FGL_J0739.2+0137_daily_bin916> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin916> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 20:30:23 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:30:25 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:30:25 2021
Terminated at Fri Aug 27 20:46:27 2021
Results reported at Fri Aug 27 20:46:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin916 114.82 1.6216 476755201 477014401 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 :                                   826.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

