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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1162
RA = 114.82, Dec = 1.6216
tmin = 540518401, tmax = 540777601
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='593291', job_status='RUN', time_executed='2021-08-27 20:32:53.593533', time_epoch_executed='1630121573.59' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593291/ft1_4FGL_J0739.2+0137_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593291/ft2_4FGL_J0739.2+0137_daily_bin1162.fits


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

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

Done.
real 3.95
user 3.41
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593291/ft2_4FGL_J0739.2+0137_daily_bin1162.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/593291/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/593291/ft1_filtered_4FGL_J0739.2+0137_daily_bin1162.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.39

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593291/ft1_filtered_4FGL_J0739.2+0137_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/593291/ft2_4FGL_J0739.2+0137_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/593291/ltcube_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.fits outfile=/scratch/kocevski/593291/expmap_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.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/593291/ltcube_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.fits
.....................!
real 189.85
user 185.03
sys 4.51

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/593291/ft1_filtered_4FGL_J0739.2+0137_daily_bin1162.fits scfile=/scratch/kocevski/593291/ft2_4FGL_J0739.2+0137_daily_bin1162.fits outfile=/scratch/kocevski/593291/cmap_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.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.84
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593291/ft1_filtered_4FGL_J0739.2+0137_daily_bin1162.fits scfile=/scratch/kocevski/593291/ft2_4FGL_J0739.2+0137_daily_bin1162.fits outfile=/scratch/kocevski/593291/cmap_HighResolution_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.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.84
user 0.37
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27773       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.916       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24639E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.788       1.0000         .10000E-03   10000.    
    18 'norm      '    12.070       1.0000         .10000E-03   10000.    
    19 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .74955       1.0000         .10000E-03   10000.    
    21 'norm      '    .11881E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.330       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5121       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83975       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=   9062.183     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2945 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0761       -.30994E-06** at limit **
   2  norm          18.415        21.822       -.39269E-06   -.20169E-04
   3  Prefactor     .10000E-03    59.736        .51540E-06** at limit **
   4  norm          .26851        3.1411        .37050E-06   -.14268E-03
   5  norm          1.5670        2.0349        .30222E-06    .29783E-03
   6  Prefactor     .10000E-03    16.532       -.24253E-06** at limit **
   7  Prefactor     .10000E-03    6.3584        .96622E-07** at limit **
   8  Prefactor     .10000E-03    13.657        .24187E-06** at limit **
   9  Prefactor     74.905        46.694        .12275E-05    .99696E-05
  10  norm          4.3870        2.3035        .11647E-06    .71327E-04
  11  Prefactor     .10000E-03    10.870       -.36803E-06** at limit **
  12  norm          .10000E-03    4.6955        .13760E-07** at limit **
  13  Prefactor     .10000E-03    1.8105       -.82464E-07** at limit **
  14  norm          11.481        13.393       -.68741E-07    .20832E-03
  15  Prefactor     .10084E-03    14.190       -.44642E-05** at limit **
  16  Prefactor     .10000E-03    3.4896       -.70045E-07** at limit **
  17  Prefactor     26.822        40.765       -.38646E-06    .93482E-05
  18  norm          12.073        10.983        .48590E-06    .16069E-04
  19  norm          .10000E-03    1.1871       -.25527E-06** at limit **
  20  norm          .74971        1.2691        .70272E-06    .18707E-02
  21  norm          .10003E-03    54.248        .11351E-04** at limit **
  22  norm          .10000E-03    1.2850        .31679E-06** at limit **
  23  Prefactor     29.343        45.471        .90135E-06    .48132E-04
  24  Normalizat    1.5120        .22441       -.33140E-05   -.11206E-04
  25  Prefactor     .83981        .66713E-01    .76706E-06   -.48119E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 18.4153
  Prefactor  = 0.0001
  norm       = 0.268513
  norm       = 1.56701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.905
  norm       = 4.38701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4807
  Prefactor  = 0.000100845
  Prefactor  = 0.0001
  Prefactor  = 26.8216
  norm       = 12.0726
  norm       = 0.0001
  norm       = 0.749708
  norm       = 0.000100034
  norm       = 0.0001
  Prefactor  = 29.3427
  Normalizat = 1.51204
  Prefactor  = 0.839805
 **********
 **   18 **HESSE 
 **********

 FCN=   9062.183     FROM HESSE     STATUS=OK           433 CALLS     3378 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.415        21.879        .93335E-04   -1.4849    
   3  Prefactor     .10000E-03    59.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26851        11.249        .31896E-02   -1.5604    
   5  norm          1.5670        2.0119        .14605E-03   -1.5458    
   6  Prefactor     .10000E-03    16.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     74.905        46.600        .46389E-04   -1.3975    
  10  norm          4.3870        2.3021        .98900E-04   -1.5289    
  11  Prefactor     .10000E-03    10.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8404        .12499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.481        13.173        .11826E-03   -1.5030    
  15  Prefactor     .10084E-03    59.662        .57156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5084        .17363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.822        40.535        .77402E-04   -1.4672    
  18  norm          12.073        10.991        .11530E-03   -1.5013    
  19  norm          .10000E-03    2.3390        .19920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .74971        1.1661        .14436E-02   -1.5535    
  21  norm          .10003E-03    54.986        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2898        .10544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.343        45.628        .73979E-04   -1.4624    
  24  Normalizat    1.5120        .23643        .37559E-03   -.77441    
  25  Prefactor     .83981        .70929E-01    .15901E-03   -.98277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78927e-08
Minuit parameter uncertainties:
  1  2.7959e-06
  2  21.8886
  3  4.91336e-05
  4  3.47592
  5  2.01194
  6  1.43711e-05
  7  1.6718e-05
  8  1.84353e-05
  9  46.6226
  10  2.30213
  11  1.40655e-06
  12  1.03031e-06
  13  5.61767e-06
  14  13.1758
  15  0.0142115
  16  2.65048e-06
  17  40.5767
  18  10.993
  19  3.70724e-06
  20  1.16612
  21  0.00272043
  22  1.11418e-05
  23  45.6823
  24  0.236599
  25  0.0709369
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.387e+00  2.302e+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.398e-01  7.094e-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.512e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.86
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.70e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.84e-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) = 9061.76924933
delta logL = 0.413411211233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9061.76661863
delta logL = 0.416041908877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3611       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8113       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84577       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=   9061.767     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3611        33.599        .48219E-02    .49699E-03
   2  alpha         2.8113        3.7983        .40398        .40815E-04
   3  Normalizat    1.4655        .12490        .85849E-01    .49813E-04
   4  Prefactor     .84577        .37181E-01    .44310E-01    .12234E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.36106
  alpha      = 2.81127
  Normalizat = 1.4655
  Prefactor  = 0.845771
 **********
 **   18 **HESSE 
 **********

 FCN=   9061.767     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3611        2.2027        .85039E-04   -1.5290    
   2  alpha         2.8113        .55095        .15429E-01    .12483    
   3  Normalizat    1.4655        .21172        .38006E-03   -.78752    
   4  Prefactor     .84577        .66959E-01    .15848E-03   -.98063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01164e-12
Minuit parameter uncertainties:
  1  2.20269
  2  0.555587
  3  0.211849
  4  0.0669659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593291': 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) = 9061.76661863
delta logL = 0.416041909171

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.361e+00  2.203e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.811e+00  5.556e-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.458e-01  6.697e-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.465e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.85
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.81 +/- 0.56
Photon Flux (Free Index): 1.68e-07 +/- 9.36e-08
Energy Flux (Free Index): 3.74e-05 +/- 1.70e-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/593291/cmap_HighResolution_540518401_540777601_4FGL_J0739.2+0137_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.74e-05', photon_flux_error='5.70e-08', dlogl='4.16e-01', energy_flux='3.51e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-08-27 20:45:54.427452', photon_index_error2='0.56', photon_index2='2.81', ts='7.86', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.51', time_epoch_completed='1630122354.43', return_code='0', job_id='593291', GAL2='0.85', EG2='1.47', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='9.36e-08', ts2='8.85', photon_index='2.31' WHERE bin_id='1162' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 593291: <4FGL_J0739.2+0137_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1162 114.82 1.6216 540518401 540777601 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 :                                   767.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

