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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin753
RA = 114.82, Dec = 1.6216
tmin = 434505601, tmax = 434764801
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='589234', job_status='RUN', time_executed='2021-08-27 20:18:28.547281', time_epoch_executed='1630120708.55' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589234

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589234/ft1_4FGL_J0739.2+0137_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589234/ft1_4FGL_J0739.2+0137_daily_bin753.fits outfile=/scratch/kocevski/589234/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin753.fits ra=114.82 dec=1.6216 rad=12.0 tmin=434505601.0 tmax=434764801.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 6.29
user 5.67
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.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/589234/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/589234/ft1_filtered_4FGL_J0739.2+0137_daily_bin753.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.88
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589234/ft1_filtered_4FGL_J0739.2+0137_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/589234/ltcube_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.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/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits
.....................!
real 12.69
user 11.93
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589234/ft1_filtered_4FGL_J0739.2+0137_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/589234/ltcube_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.fits outfile=/scratch/kocevski/589234/expmap_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.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/589234/ltcube_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.fits
.....................!
real 192.51
user 186.04
sys 5.02

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/589234/ft1_filtered_4FGL_J0739.2+0137_daily_bin753.fits scfile=/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits outfile=/scratch/kocevski/589234/cmap_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.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.81
user 0.39
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589234/ft1_filtered_4FGL_J0739.2+0137_daily_bin753.fits scfile=/scratch/kocevski/589234/ft2_4FGL_J0739.2+0137_daily_bin753.fits outfile=/scratch/kocevski/589234/cmap_HighResolution_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.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.80
user 0.40
sys 0.40

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    28.783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9397       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6094       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2525       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9808       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4574       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.590       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8000       1.0000         .10000E-03   10000.    
    21 'norm      '    16.073       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    84.639       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63732       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1257       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=   7963.868     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2910 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4287       -.26852E-08** at limit **
   2  norm          28.784        26.514        .15364E-06    .34678E-05
   3  Prefactor     .10001E-03    126.48        .91317E-06** at limit **
   4  norm          2.9401        4.6092        .33075E-06    .30202E-04
   5  norm          1.6087        2.1420       -.24210E-06   -.13621E-02
   6  Prefactor     43.571        40.310       -.13039E-06   -.72154E-04
   7  Prefactor     10.134        9.2054        .17057E-06   -.11717E-03
   8  Prefactor     .10000E-03    19.278        .54776E-06** at limit **
   9  Prefactor     2.1624        99.050        .55765E-05   -.36915E-04
  10  norm          5.9808        2.6415       -.27851E-07   -.11773E-02
  11  Prefactor     .10000E-03    16.992       -.52302E-06** at limit **
  12  norm          22.551        20.299        .26416E-06   -.31377E-04
  13  Prefactor     9.4564        4.7878        .18222E-06   -.25015E-03
  14  norm          .10000E-03    13.386        .26032E-06** at limit **
  15  Prefactor     .10000E-03    5.8236        .62180E-07** at limit **
  16  Prefactor     1.7039        6.9644        .59249E-06    .30368E-04
  17  Prefactor     .10000E-03    27.012       -.40775E-06** at limit **
  18  norm          11.590        10.359       -.56141E-07    .56054E-04
  19  norm          .10000E-03    1.3544        .22137E-06** at limit **
  20  norm          1.8000        1.4857        .89354E-07    .15063E-03
  21  norm          16.073        19.821       -.34093E-06    .27552E-04
  22  norm          1.6383        4.4447        .65102E-05   -.29777E-03
  23  Prefactor     84.632        49.334        .78379E-06   -.25796E-04
  24  Normalizat    .63739        .23603       -.52425E-05   -.38403E-03
  25  Prefactor     1.1257        .78439E-01    .19518E-06   -.10706E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 28.7843
  Prefactor  = 0.000100006
  norm       = 2.94006
  norm       = 1.60874
  Prefactor  = 43.5706
  Prefactor  = 10.1344
  Prefactor  = 0.0001
  Prefactor  = 2.16242
  norm       = 5.98085
  Prefactor  = 0.0001
  norm       = 22.5507
  Prefactor  = 9.45645
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70395
  Prefactor  = 0.0001
  norm       = 11.5902
  norm       = 0.0001
  norm       = 1.80001
  norm       = 16.0731
  norm       = 1.63828
  Prefactor  = 84.6317
  Normalizat = 0.63739
  Prefactor  = 1.12566
 **********
 **   18 **HESSE 
 **********

 FCN=   7963.868     FROM HESSE     STATUS=OK           429 CALLS     3339 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          28.784        26.613        .74677E-04   -1.4634    
   3  Prefactor     .10001E-03    128.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9401        4.6056        .22999E-03   -1.5365    
   5  norm          1.6087        2.1247        .14134E-03   -1.5454    
   6  Prefactor     43.571        40.265        .60738E-04   -1.4387    
   7  Prefactor     10.134        9.1984        .12587E-03   -1.5071    
   8  Prefactor     .10000E-03    19.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1624        99.666        .27377E-03   -1.5414    
  10  norm          5.9808        2.6372        .90418E-04   -1.5219    
  11  Prefactor     .10000E-03    16.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.551        20.296        .84350E-04   -1.4758    
  13  Prefactor     9.4564        4.7913        .13031E-03   -1.5093    
  14  norm          .10000E-03    13.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7039        6.8605        .32220E-03   -1.5447    
  17  Prefactor     .10000E-03    27.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.590        10.352        .11767E-03   -1.5027    
  19  norm          .10000E-03    1.3773        .10141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8000        1.4790        .95826E-04   -1.5440    
  21  norm          16.073        19.824        .99902E-04   -1.4906    
  22  norm          1.6383        4.4531        .14779E-02   -1.5452    
  23  Prefactor     84.632        49.447        .43665E-04   -1.3865    
  24  Normalizat    .63739        .23994        .52345E-03   -1.0642    
  25  Prefactor     1.1257        .81078E-01    .14859E-03   -.88650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13478e-09
Minuit parameter uncertainties:
  1  9.55795e-07
  2  26.6239
  3  0.00178849
  4  4.60616
  5  2.12483
  6  40.2901
  7  9.19968
  8  0.000172153
  9  29.4128
  10  2.63729
  11  0.000116166
  12  20.3025
  13  4.79154
  14  3.44616e-05
  15  1.40534e-05
  16  6.83928
  17  4.44388e-06
  18  10.3532
  19  1.92022e-05
  20  1.47905
  21  19.8323
  22  4.45399
  23  49.4707
  24  0.240335
  25  0.0810864
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.981e+00  2.637e+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.126e+00  8.109e-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:  6.374e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.93
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 6.53e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 2.11e-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) = 7963.73521785
delta logL = 0.132706778979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7963.7349506
delta logL = 0.132974036889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5971       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5323       1.0000          .0000       5.0000    
     3 'Normalizat'    .62133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1283       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=   7963.735     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      233 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5971        46.673        .42452E-02    .29804E-03
   2  alpha         2.5323        3.6466        .30452        .10140E-04
   3  Normalizat    .62133        .15830        .11937        .40987E-04
   4  Prefactor     1.1283        .62645E-01    .36598E-01   -.37144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.59708
  alpha      = 2.53226
  Normalizat = 0.621334
  Prefactor  = 1.12833
 **********
 **   18 **HESSE 
 **********

 FCN=   7963.735     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5971        2.6678        .85025E-04   -1.5235    
   2  alpha         2.5323        .44132        .12573E-01    .12904E-01
   3  Normalizat    .62133        .21114        .52975E-03   -1.0709    
   4  Prefactor     1.1283        .76490E-01    .14843E-03   -.88566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24475e-12
Minuit parameter uncertainties:
  1  2.66781
  2  0.443649
  3  0.21141
  4  0.0764976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589234': 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) = 7963.7349506
delta logL = 0.132974036891

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.597e+00  2.668e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.532e+00  4.436e-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.128e+00  7.650e-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:  6.213e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.26
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.53 +/- 0.44
Photon Flux (Free Index): 1.66e-07 +/- 7.69e-08
Energy Flux (Free Index): 4.43e-05 +/- 2.02e-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/589234/cmap_HighResolution_434505601_434764801_4FGL_J0739.2+0137_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='4.43e-05', photon_flux_error='6.53e-08', dlogl='1.33e-01', energy_flux='4.79e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-08-27 20:30:56.988024', photon_index_error2='0.44', photon_index2='2.53', ts='9.93', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='0.64', time_epoch_completed='1630121456.99', return_code='0', job_id='589234', GAL2='1.13', EG2='0.62', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='7.69e-08', ts2='10.26', photon_index='2.31' WHERE bin_id='753' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 589234: <4FGL_J0739.2+0137_daily_bin753> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin753 114.82 1.6216 434505601 434764801 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 :                                   748.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            922 sec.

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

