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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1391
RA = 114.82, Dec = 1.6216
tmin = 599875201, tmax = 600134401
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='594703', job_status='RUN', time_executed='2021-08-27 20:37:59.602389', time_epoch_executed='1630121879.6' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594703/ft1_4FGL_J0739.2+0137_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594703/ft1_4FGL_J0739.2+0137_daily_bin1391.fits outfile=/scratch/kocevski/594703/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1391.fits ra=114.82 dec=1.6216 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.63
user 2.19
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594703/ft1_filtered_4FGL_J0739.2+0137_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/594703/ltcube_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.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/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits
.....................!
real 13.19
user 12.57
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594703/ft1_filtered_4FGL_J0739.2+0137_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/594703/ltcube_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.fits outfile=/scratch/kocevski/594703/expmap_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.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/594703/ltcube_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.fits
.....................!
real 190.91
user 185.45
sys 5.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/594703/ft1_filtered_4FGL_J0739.2+0137_daily_bin1391.fits scfile=/scratch/kocevski/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits outfile=/scratch/kocevski/594703/cmap_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.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.71
user 0.37
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594703/ft1_filtered_4FGL_J0739.2+0137_daily_bin1391.fits scfile=/scratch/kocevski/594703/ft2_4FGL_J0739.2+0137_daily_bin1391.fits outfile=/scratch/kocevski/594703/cmap_HighResolution_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.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.72
user 0.38
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8098       1.0000         .10000E-03   10000.    
     2 'norm      '    15.455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.961       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .41008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    137.75       1.0000         .10000E-03   10000.    
    10 'norm      '    22.944       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6268       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2289       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6840       1.0000         .10000E-03   10000.    
    21 'norm      '    9.6126       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.527       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0811       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86136       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=   6180.139     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3309 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7943        19.036       -.40298E-05    .20758E-04
   2  norm          15.417        45.406       -.57314E-05   -.31737E-04
   3  Prefactor     11.848        1208.0        .66102E-05    .41349E-05
   4  norm          .10000E-03    2.5814       -.28056E-06** at limit **
   5  norm          .40853        2.9609        .26339E-06   -.47303E-03
   6  Prefactor     .10000E-03    35.376        .43242E-07** at limit **
   7  Prefactor     .10000E-03    14.295       -.33363E-06** at limit **
   8  Prefactor     40.056        24.223       -.65126E-06    .32547E-04
   9  Prefactor     137.78        91.338        .37231E-05    .96688E-04
  10  norm          22.946        5.2970        .36419E-06    .20654E-03
  11  Prefactor     .10000E-03    32.417       -.21987E-06** at limit **
  12  norm          .10000E-03    10.563       -.96266E-07** at limit **
  13  Prefactor     8.6290        10.716        .65922E-06    .12277E-05
  14  norm          .10000E-03    32.403        .69657E-06** at limit **
  15  Prefactor     .10000E-03    23.368        .69979E-06** at limit **
  16  Prefactor     .30983        7.6413        .18746E-05   -.31798E-03
  17  Prefactor     .10000E-03    24.118        .18715E-05** at limit **
  18  norm          .10000E-03    5.5123       -.18945E-06** at limit **
  19  norm          3.2290        2.1390        .72702E-07   -.19546E-03
  20  norm          3.6842        1.7067        .12618E-06   -.10846E-03
  21  norm          9.6549        51.629        .25970E-05    .99007E-04
  22  norm          7.0907        4.8585        .37802E-06    .54652E-05
  23  Prefactor     44.601        103.38        .86543E-05    .92563E-04
  24  Normalizat    1.0806        .33015       -.14368E-04    .53449E-04
  25  Prefactor     .86154        .98920E-01    .54714E-05   -.28475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.79428
  norm       = 15.4171
  Prefactor  = 11.8484
  norm       = 0.0001
  norm       = 0.408527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0562
  Prefactor  = 137.781
  norm       = 22.9459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.629
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.309828
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.22899
  norm       = 3.68423
  norm       = 9.65495
  norm       = 7.09073
  Prefactor  = 44.6008
  Normalizat = 1.08061
  Prefactor  = 0.86154
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.139     FROM HESSE     STATUS=OK           429 CALLS     3738 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7943        19.025        .16662E-03   -1.5226    
   2  norm          15.417        45.501        .10188E-03   -1.4922    
   3  Prefactor     11.848        1240.8        .11583E-03   -1.5019    
   4  norm          .10000E-03    2.5920        .12338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .40853        15.167        .22324E-02   -1.5580    
   6  Prefactor     .10000E-03    35.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.056        24.289        .63329E-04   -1.4441    
   9  Prefactor     137.78        91.662        .17159E-03   -1.3355    
  10  norm          22.946        5.3034        .79600E-04   -1.4750    
  11  Prefactor     .10000E-03    32.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6290        10.711        .13648E-03   -1.5120    
  14  norm          .10000E-03    32.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .30983        48.618        .39653E-02   -1.5597    
  17  Prefactor     .10000E-03    24.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5223        .18018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2290        2.1356        .89355E-04   -1.5349    
  20  norm          3.6842        1.7051        .66262E-04   -1.5324    
  21  norm          9.6549        50.533        .12925E-03   -1.5086    
  22  norm          7.0907        4.8579        .13725E-03   -1.5175    
  23  Prefactor     44.601        102.54        .60082E-04   -1.4371    
  24  Normalizat    1.0806        .32690        .46420E-03   -.90377    
  25  Prefactor     .86154        .99194E-01    .16378E-03   -.97498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75782e-09
Minuit parameter uncertainties:
  1  19.0447
  2  45.6034
  3  247.979
  4  1.15046e-05
  5  4.9792
  6  1.1213e-05
  7  3.62176e-05
  8  24.2946
  9  91.7572
  10  5.30355
  11  5.81031e-05
  12  2.57479e-05
  13  10.7134
  14  0.000130574
  15  3.96466e-06
  16  7.76745
  17  9.09532e-05
  18  4.57016e-06
  19  2.13566
  20  1.7051
  21  44.2351
  22  4.85819
  23  102.952
  24  0.327515
  25  0.0992142
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.295e+01  5.304e+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:  8.615e-01  9.921e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.081e+00  3.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.41
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.69e-07 +/- 1.31e-07
Energy Flux (Fixed Index): 1.84e-04 +/- 4.25e-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) = 6179.89820531
delta logL = 0.240921414113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6179.85895481
delta logL = 0.280171913847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.418       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5021       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0296       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86873       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=   6179.859     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.417        6.5532        .21149E-02    .82953E-03
   2  alpha         2.5022        .32027        .16194        .13111E-04
   3  Normalizat    1.0295        .26307        .10675        .10409E-04
   4  Prefactor     .86871        .81122E-01    .44605E-01   -.23948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.4173
  alpha      = 2.50215
  Normalizat = 1.02951
  Prefactor  = 0.86871
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.859     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.417        5.1228        .38043E-03   -1.4761    
   2  alpha         2.5022        .25481        .70145E-03    .86177E-03
   3  Normalizat    1.0295        .27888        .47323E-03   -.92048    
   4  Prefactor     .86871        .85413E-01    .16316E-03   -.97243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92543e-13
Minuit parameter uncertainties:
  1  5.12289
  2  0.255257
  3  0.279276
  4  0.0854262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594703': 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) = 6179.85895456
delta logL = 0.280172161889

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.242e+01  5.123e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.502e+00  2.553e-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:  8.687e-01  8.543e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.030e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.37
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.50 +/- 0.26
Photon Flux (Free Index): 6.49e-07 +/- 1.76e-07
Energy Flux (Free Index): 1.77e-04 +/- 3.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/594703/cmap_HighResolution_599875201_600134401_4FGL_J0739.2+0137_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-07', energy_flux2='1.77e-04', photon_flux_error='1.31e-07', dlogl='2.80e-01', energy_flux='1.84e-04', photon_flux2='6.49e-07', job_status='DONE', time_completed='2021-08-27 20:49:14.110466', photon_index_error2='0.26', photon_index2='2.50', ts='54.41', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.97e-05', EG='1.08', time_epoch_completed='1630122554.11', return_code='0', job_id='594703', GAL2='0.87', EG2='1.03', return_code2='0', energy_flux_error='4.25e-05', photon_flux_error2='1.76e-07', ts2='55.37', photon_index='2.31' WHERE bin_id='1391' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:49:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 594703: <4FGL_J0739.2+0137_daily_bin1391> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1391 114.82 1.6216 599875201 600134401 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 :                                   638.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

