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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin731
RA = 114.82, Dec = 1.6216
tmin = 428803201, tmax = 429062401
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='589203', job_status='RUN', time_executed='2021-08-27 20:16:38.539088', time_epoch_executed='1630120598.54' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589203/ft1_4FGL_J0739.2+0137_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589203/ft1_4FGL_J0739.2+0137_daily_bin731.fits outfile=/scratch/kocevski/589203/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin731.fits ra=114.82 dec=1.6216 rad=12.0 tmin=428803201.0 tmax=429062401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.95
user 6.24
sys 1.65

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589203/ft1_filtered_4FGL_J0739.2+0137_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/589203/ltcube_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.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/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits
.....................!
real 13.48
user 11.47
sys 1.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589203/ft1_filtered_4FGL_J0739.2+0137_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/589203/ltcube_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.fits outfile=/scratch/kocevski/589203/expmap_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.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/589203/ltcube_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.fits
.....................!
real 193.65
user 185.81
sys 7.21

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/589203/ft1_filtered_4FGL_J0739.2+0137_daily_bin731.fits scfile=/scratch/kocevski/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits outfile=/scratch/kocevski/589203/cmap_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.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.91
user 0.37
sys 1.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589203/ft1_filtered_4FGL_J0739.2+0137_daily_bin731.fits scfile=/scratch/kocevski/589203/ft2_4FGL_J0739.2+0137_daily_bin731.fits outfile=/scratch/kocevski/589203/cmap_HighResolution_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.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.93
user 0.38
sys 1.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9771       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.116       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.771       1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4041       1.0000         .10000E-03   10000.    
    14 'norm      '    10.832       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .79087E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9740       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.194       1.0000         .10000E-03   10000.    
    22 'norm      '    11.784       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54143       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0852       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=   9027.689     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2952 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9764        10.295        .33443E-02   -.64514E-04
   2  norm          .10000E-03    8.9180        .90712E-02** at limit **
   3  Prefactor     .10000E-03    15.498        .90712E-02** at limit **
   4  norm          .10000E-03    3.9966        .90712E-02** at limit **
   5  norm          1.2823        2.6575        .97902E-02    .15718E-02
   6  Prefactor     .10000E-03    25.773        .90712E-02** at limit **
   7  Prefactor     6.3163        10.395        .39928E-02    .11564E-02
   8  Prefactor     16.918        17.471        .24341E-02   -.12479E-02
   9  Prefactor     11.120        75.466        .30041E-02    .14332E-03
  10  norm          8.5121        2.9042        .34349E-02    .38014E-02
  11  Prefactor     32.769        28.231        .17499E-02   -.29043E-03
  12  norm          .10000E-03    17.555        .90712E-02** at limit **
  13  Prefactor     4.4034        3.1539        .47976E-02    .23333E-02
  14  norm          10.819        22.331        .30433E-02   -.16084E-03
  15  Prefactor     .10001E-03    10.213        .94111E-01** at limit **
  16  Prefactor     8.5561        10.618        .34264E-02    .18625E-02
  17  Prefactor     .10000E-03    12.396        .90712E-02** at limit **
  18  norm          4.9717        8.5617        .45080E-02   -.89574E-03
  19  norm          .10000E-03    1.2645        .90712E-02** at limit **
  20  norm          .10000E-03    1.0871        .32265E-01** at limit **
  21  norm          15.192        15.821        .25688E-02   -.39701E-03
  22  norm          11.784        5.6802        .29174E-02    .26540E-03
  23  Prefactor     .10000E-03    25.774        .90712E-02** at limit **
  24  Normalizat    .54146        .23602        .12861        .20883E-04
  25  Prefactor     1.0852        .72226E-01    .38178E-01   -.17504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.97637
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.28227
  Prefactor  = 0.000100003
  Prefactor  = 6.31626
  Prefactor  = 16.9181
  Prefactor  = 11.1202
  norm       = 8.51209
  Prefactor  = 32.7691
  norm       = 0.000100001
  Prefactor  = 4.4034
  norm       = 10.8193
  Prefactor  = 0.000100011
  Prefactor  = 8.5561
  Prefactor  = 0.0001
  norm       = 4.97174
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.1924
  norm       = 11.7837
  Prefactor  = 0.000100002
  Normalizat = 0.541462
  Prefactor  = 1.08521
 **********
 **   18 **HESSE 
 **********

 FCN=   9027.689     FROM HESSE     STATUS=OK           433 CALLS     3385 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9764        10.342        .13377E-03   -1.5109    
   2  norm          .10000E-03    8.9381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2823        2.5609        .18797E-03   -1.5481    
   6  Prefactor     .10000E-03    25.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3163        10.372        .15971E-03   -1.5205    
   8  Prefactor     16.918        17.477        .97364E-04   -1.4885    
   9  Prefactor     11.120        71.559        .12016E-03   -1.5041    
  10  norm          8.5121        2.8931        .43342E-03   -1.5124    
  11  Prefactor     32.769        28.211        .69997E-04   -1.4562    
  12  norm          .10000E-03    17.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4034        3.1489        .68426E-03   -1.5288    
  14  norm          10.819        22.354        .12173E-03   -1.5050    
  15  Prefactor     .10001E-03    11.491        .86140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5561        10.554        .13705E-03   -1.5123    
  17  Prefactor     .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9717        8.5301        .18032E-03   -1.5262    
  19  norm          .10000E-03    1.2800        .10417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.4997        .19043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.192        15.808        .10275E-03   -1.4928    
  22  norm          11.784        5.6672        .11670E-03   -1.5021    
  23  Prefactor     .10000E-03    25.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54146        .23080        .57100E-03   -1.1053    
  25  Prefactor     1.0852        .73803E-01    .14541E-03   -.89941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29506e-08
Minuit parameter uncertainties:
  1  10.3439
  2  1.16975e-05
  3  0.000232351
  4  3.64916e-06
  5  2.56114
  6  0.000518708
  7  10.3746
  8  17.4821
  9  56.5169
  10  2.89317
  11  28.2226
  12  0.000211145
  13  3.14901
  14  22.3713
  15  0.000702863
  16  10.5562
  17  0.00011355
  18  8.53222
  19  4.08086e-06
  20  1.43879e-05
  21  15.8125
  22  5.66745
  23  0.00042747
  24  0.23121
  25  0.0738104
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  8.512e+00  2.893e+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.085e+00  7.381e-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:  5.415e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.13
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.11e-07 +/- 7.16e-08
Energy Flux (Fixed Index): 6.82e-05 +/- 2.32e-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) = 9027.67084651
delta logL = 0.0181425932187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9027.66897755
delta logL = 0.0200115483967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3878       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3840       1.0000          .0000       5.0000    
     3 'Normalizat'    .53376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0866       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=   9027.669     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3875        44.850        .34605E-02    .18155E-03
   2  alpha         2.3840        3.6372        .27935        .18191E-04
   3  Normalizat    .53377        .26150        .12947        .64097E-04
   4  Prefactor     1.0866        .10236        .38121E-01   -.61639E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.3875
  alpha      = 2.38399
  Normalizat = 0.533774
  Prefactor  = 1.08655
 **********
 **   18 **HESSE 
 **********

 FCN=   9027.669     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3875        2.8909        .85393E-04   -1.5129    
   2  alpha         2.3840        .35852        .11502E-01   -.46419E-01
   3  Normalizat    .53377        .20454        .57483E-03   -1.1087    
   4  Prefactor     1.0866        .70325E-01    .14534E-03   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89883e-13
Minuit parameter uncertainties:
  1  2.89092
  2  0.359762
  3  0.204827
  4  0.0703306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589203': 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) = 9027.66897754
delta logL = 0.0200115583939

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  8.388e+00  2.891e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.384e+00  3.598e-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.087e+00  7.033e-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:  5.338e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.22
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.38 +/- 0.36
Photon Flux (Free Index): 2.20e-07 +/- 8.39e-08
Energy Flux (Free Index): 6.64e-05 +/- 2.38e-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/589203/cmap_HighResolution_428803201_429062401_4FGL_J0739.2+0137_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-07', energy_flux2='6.64e-05', photon_flux_error='7.16e-08', dlogl='2.00e-02', energy_flux='6.82e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-08-27 20:30:12.151353', photon_index_error2='0.36', photon_index2='2.38', ts='18.13', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.54', time_epoch_completed='1630121412.15', return_code='0', job_id='589203', GAL2='1.09', EG2='0.53', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='8.39e-08', ts2='18.22', photon_index='2.31' WHERE bin_id='731' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 589203: <4FGL_J0739.2+0137_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin731 114.82 1.6216 428803201 429062401 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

