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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin684
RA = 114.82, Dec = 1.6216
tmin = 416620801, tmax = 416880001
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='589135', job_status='RUN', time_executed='2021-08-27 20:17:57.164042', time_epoch_executed='1630120677.16' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589135/ft1_4FGL_J0739.2+0137_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589135/ft1_4FGL_J0739.2+0137_daily_bin684.fits outfile=/scratch/kocevski/589135/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin684.fits ra=114.82 dec=1.6216 rad=12.0 tmin=416620801.0 tmax=416880001.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 5.61
user 5.00
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.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/589135/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/589135/ft1_filtered_4FGL_J0739.2+0137_daily_bin684.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.75
user 0.33
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589135/ft1_filtered_4FGL_J0739.2+0137_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/589135/ltcube_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.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/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits
.....................!
real 12.60
user 12.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589135/ft1_filtered_4FGL_J0739.2+0137_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/589135/ltcube_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.fits outfile=/scratch/kocevski/589135/expmap_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.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/589135/ltcube_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.fits
.....................!
real 191.20
user 186.21
sys 4.61

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/589135/ft1_filtered_4FGL_J0739.2+0137_daily_bin684.fits scfile=/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits outfile=/scratch/kocevski/589135/cmap_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.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.62
user 0.37
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589135/ft1_filtered_4FGL_J0739.2+0137_daily_bin684.fits scfile=/scratch/kocevski/589135/ft2_4FGL_J0739.2+0137_daily_bin684.fits outfile=/scratch/kocevski/589135/cmap_HighResolution_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.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.61
user 0.37
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    11.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.026       1.0000         .10000E-03   10000.    
     4 'norm      '    .62522       1.0000         .10000E-03   10000.    
     5 'norm      '    5.3027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.318       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.712       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2557       1.0000         .10000E-03   10000.    
    14 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
    18 'norm      '    .10277E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8981       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9061       1.0000         .10000E-03   10000.    
    21 'norm      '    26.385       1.0000         .10000E-03   10000.    
    22 'norm      '    5.8979       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10799E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94890       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93304       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=   8248.486     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2938 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1313       -.26319E-05** at limit **
   2  norm          11.907        15.741        .27574E-05   -.55425E-04
   3  Prefactor     40.018        42.246       -.68769E-05    .89367E-04
   4  norm          .62498        .77516        .25805E-06   -.20217E-02
   5  norm          5.3031        2.4156        .14676E-06    .12437E-03
   6  Prefactor     .10000E-03    140.92       -.53054E-05** at limit **
   7  Prefactor     .10000E-03    5.8494        .36091E-06** at limit **
   8  Prefactor     10.122        17.819       -.79828E-05    .16017E-03
   9  Prefactor     37.323        32.746       -.42239E-06    .22668E-04
  10  norm          4.5751        2.4173        .13189E-06    .94314E-04
  11  Prefactor     40.717        32.922       -.14132E-06    .18897E-04
  12  norm          .10000E-03    5.3593       -.12166E-06** at limit **
  13  Prefactor     7.2559        4.9410       -.54165E-06   -.31782E-03
  14  norm          .10000E-03    8.5976        .23114E-05** at limit **
  15  Prefactor     5.5359        13.869        .12206E-04   -.10822E-03
  16  Prefactor     .10000E-03    4.1754        .38730E-07** at limit **
  17  Prefactor     17.361        33.451       -.81553E-05    .10560E-03
  18  norm          .10000E-03    15.988       -.44865E-06** at limit **
  19  norm          2.8984        2.6404        .10456E-06   -.35239E-05
  20  norm          1.9062        1.7460        .75561E-07    .31719E-04
  21  norm          26.340        28.609        .17590E-04    .36073E-03
  22  norm          5.9010        5.2271       -.28031E-06    .10731E-03
  23  Prefactor     .10000E-03    225.11       -.98572E-04** at limit **
  24  Normalizat    .94869        .22464       -.46889E-05    .47095E-03
  25  Prefactor     .93309        .69183E-01    .10445E-05    .18869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.9072
  Prefactor  = 40.018
  norm       = 0.62498
  norm       = 5.30311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.122
  Prefactor  = 37.3225
  norm       = 4.57508
  Prefactor  = 40.7166
  norm       = 0.0001
  Prefactor  = 7.25589
  norm       = 0.000100001
  Prefactor  = 5.53592
  Prefactor  = 0.0001
  Prefactor  = 17.3605
  norm       = 0.0001
  norm       = 2.8984
  norm       = 1.90625
  norm       = 26.3403
  norm       = 5.90096
  Prefactor  = 0.000100002
  Normalizat = 0.948692
  Prefactor  = 0.933087
 **********
 **   18 **HESSE 
 **********

 FCN=   8248.486     FROM HESSE     STATUS=OK           427 CALLS     3365 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.907        15.762        .11608E-03   -1.5018    
   3  Prefactor     40.018        42.232        .63357E-04   -1.4442    
   4  norm          .62498        7.2498        .22881E-02   -1.5550    
   5  norm          5.3031        2.4127        .90231E-04   -1.5247    
   6  Prefactor     .10000E-03    142.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.122        17.809        .12596E-03   -1.5072    
   9  Prefactor     37.323        32.766        .65607E-04   -1.4485    
  10  norm          4.5751        2.4155        .96945E-04   -1.5280    
  11  Prefactor     40.717        32.940        .62823E-04   -1.4431    
  12  norm          .10000E-03    5.3630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2559        4.9798        .74454E-03   -1.5169    
  14  norm          .10000E-03    8.5839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5359        13.802        .17064E-03   -1.5237    
  16  Prefactor     .10000E-03    4.1922        .18121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.361        33.503        .95976E-04   -1.4874    
  18  norm          .10000E-03    16.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8984        2.6279        .13412E-03   -1.5367    
  20  norm          1.9062        1.7340        .10937E-03   -1.5432    
  21  norm          26.340        29.162        .77990E-04   -1.4681    
  22  norm          5.9010        5.2360        .16536E-03   -1.5222    
  23  Prefactor     .10000E-03    238.52        .41422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94869        .23615        .43066E-03   -.94770    
  25  Prefactor     .93309        .74027E-01    .15087E-03   -.94994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23156e-08
Minuit parameter uncertainties:
  1  3.51215e-05
  2  15.7674
  3  42.2635
  4  4.25752
  5  2.41273
  6  0.000501857
  7  1.46558e-05
  8  17.8182
  9  32.782
  10  2.41551
  11  32.9547
  12  6.339e-06
  13  4.98013
  14  0.000148392
  15  13.8102
  16  8.05673e-06
  17  33.539
  18  7.49643e-05
  19  2.62803
  20  1.73408
  21  29.1777
  22  5.23636
  23  0.0012496
  24  0.236414
  25  0.0740348
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.575e+00  2.416e+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.331e-01  7.403e-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.487e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.73
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.98e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.93e-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) = 8248.22615638
delta logL = 0.259566669316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8248.21914696
delta logL = 0.266576091866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8260       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9647       1.0000          .0000       5.0000    
     3 'Normalizat'    .96447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92989       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=   8248.219     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8257        3.0978        .45781E-02    .30543E-03
   2  alpha         1.9646        .45924        .36483       -.25370E-04
   3  Normalizat    .96443        .19217        .96487E-01    .27322E-04
   4  Prefactor     .92990        .66720E-01    .34184E-01   -.65928E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8257
  alpha      = 1.96464
  Normalizat = 0.964435
  Prefactor  = 0.929896
 **********
 **   18 **HESSE 
 **********

 FCN=   8248.219     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8257        2.5056        .98610E-04   -1.5269    
   2  alpha         1.9646        .44839        .13363E-01   -.21581    
   3  Normalizat    .96443        .20084        .42748E-03   -.94232    
   4  Prefactor     .92990        .69506E-01    .15106E-03   -.95104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65224e-13
Minuit parameter uncertainties:
  1  2.50569
  2  0.450944
  3  0.201
  4  0.0695123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589135': 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) = 8248.21914693
delta logL = 0.266576117308

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.826e+00  2.506e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.965e+00  4.509e-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.299e-01  6.951e-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.644e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.96 +/- 0.45
Photon Flux (Free Index): 9.44e-08 +/- 5.70e-08
Energy Flux (Free Index): 4.74e-05 +/- 3.05e-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/589135/cmap_HighResolution_416620801_416880001_4FGL_J0739.2+0137_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='4.74e-05', photon_flux_error='5.98e-08', dlogl='2.67e-01', energy_flux='3.66e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-08-27 20:30:31.080360', photon_index_error2='0.45', photon_index2='1.96', ts='5.73', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='0.95', time_epoch_completed='1630121431.08', return_code='0', job_id='589135', GAL2='0.93', EG2='0.96', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='5.70e-08', ts2='6.23', photon_index='2.31' WHERE bin_id='684' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 589135: <4FGL_J0739.2+0137_daily_bin684> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin684 114.82 1.6216 416620801 416880001 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 :                                   752.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

