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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1319
RA = 114.82, Dec = 1.6216
tmin = 581212801, tmax = 581472001
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='593516', job_status='RUN', time_executed='2021-08-27 20:31:36.508896', time_epoch_executed='1630121496.51' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593516

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593516/ft1_4FGL_J0739.2+0137_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593516/ft2_4FGL_J0739.2+0137_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593516/ft1_4FGL_J0739.2+0137_daily_bin1319.fits outfile=/scratch/kocevski/593516/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1319.fits ra=114.82 dec=1.6216 rad=12.0 tmin=581212801.0 tmax=581472001.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 4.40
user 2.75
sys 1.62

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593516/ft1_filtered_4FGL_J0739.2+0137_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/593516/ft2_4FGL_J0739.2+0137_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/593516/ltcube_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.fits outfile=/scratch/kocevski/593516/expmap_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.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/593516/ltcube_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.fits
.....................!
real 193.50
user 185.64
sys 7.34

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/593516/ft1_filtered_4FGL_J0739.2+0137_daily_bin1319.fits scfile=/scratch/kocevski/593516/ft2_4FGL_J0739.2+0137_daily_bin1319.fits outfile=/scratch/kocevski/593516/cmap_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.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.93
user 0.38
sys 1.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593516/ft1_filtered_4FGL_J0739.2+0137_daily_bin1319.fits scfile=/scratch/kocevski/593516/ft2_4FGL_J0739.2+0137_daily_bin1319.fits outfile=/scratch/kocevski/593516/cmap_HighResolution_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.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.96
user 0.36
sys 1.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98108       1.0000         .10000E-03   10000.    
     2 'norm      '    12.722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.099       1.0000         .10000E-03   10000.    
    10 'norm      '    17.326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.599       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5915       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.432       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7417       1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4262       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84515       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0512       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=   11114.51     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2896 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98123        6.2801        .53818E-06   -.19318E-03
   2  norm          12.722        27.123        .16018E-05    .47999E-05
   3  Prefactor     .10000E-03    11.437       -.20111E-05** at limit **
   4  norm          .10000E-03    2.3375        .24508E-07** at limit **
   5  norm          .10000E-03    .72095        .15100E-06** at limit **
   6  Prefactor     .10000E-03    17.746       -.38447E-05** at limit **
   7  Prefactor     .10000E-03    2.7978       -.27112E-05** at limit **
   8  Prefactor     2.1785        9.0256        .12751E-05    .46654E-04
   9  Prefactor     49.099        40.414        .28477E-06   -.41603E-04
  10  norm          17.326        2.9628       -.72351E-08   -.47746E-03
  11  Prefactor     .10000E-03    19.418        .23467E-05** at limit **
  12  norm          12.599        11.663       -.30008E-07   -.28279E-04
  13  Prefactor     2.5920        2.6509        .35109E-06    .17515E-03
  14  norm          .10000E-03    8.3391       -.94859E-06** at limit **
  15  Prefactor     .10000E-03    8.3384       -.59825E-06** at limit **
  16  Prefactor     6.0102        5.8245       -.12581E-06   -.23722E-03
  17  Prefactor     31.414        30.035        .19780E-05    .61240E-03
  18  norm          .10000E-03    18.654        .10578E-05** at limit **
  19  norm          1.7414        1.9584        .22847E-06   -.46720E-04
  20  norm          .10000E-03    .39359        .14923E-06** at limit **
  21  norm          1.4294        50.180        .30656E-04   -.64644E-04
  22  norm          2.9317        3.9415        .39382E-07   -.97121E-04
  23  Prefactor     .10000E-03    9.4742        .15678E-05** at limit **
  24  Normalizat    .84508        .18671       -.25679E-05   -.86811E-05
  25  Prefactor     1.0512        .66788E-01   -.36592E-06   -.90109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.981233
  norm       = 12.7218
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 2.17851
  Prefactor  = 49.0992
  norm       = 17.3261
  Prefactor  = 0.000100001
  norm       = 12.599
  Prefactor  = 2.59195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01016
  Prefactor  = 31.414
  norm       = 0.0001
  norm       = 1.74142
  norm       = 0.0001
  norm       = 1.42936
  norm       = 2.93175
  Prefactor  = 0.0001
  Normalizat = 0.845079
  Prefactor  = 1.05124
 **********
 **   18 **HESSE 
 **********

 FCN=   11114.51     FROM HESSE     STATUS=OK           431 CALLS     3327 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98123        20.796        .49243E-02   -1.5510    
   2  norm          12.722        27.255        .56153E-03   -1.4994    
   3  Prefactor     .10000E-03    11.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3560        .15732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .74029        .17470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3600        .32070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1785        9.0066        .27903E-03   -1.5413    
   9  Prefactor     49.099        40.414        .57229E-04   -1.4305    
  10  norm          17.326        2.9621        .70306E-04   -1.4875    
  11  Prefactor     .10000E-03    19.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.599        11.664        .56427E-03   -1.4998    
  13  Prefactor     2.5920        2.6451        .16614E-03   -1.5386    
  14  norm          .10000E-03    8.3641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0102        5.8226        .16376E-03   -1.5218    
  17  Prefactor     31.414        30.668        .71469E-04   -1.4586    
  18  norm          .10000E-03    19.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7414        1.9204        .14902E-03   -1.5444    
  20  norm          .10000E-03    .58202        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4294        53.231        .18098E-02   -1.5469    
  22  norm          2.9317        3.9237        .22829E-03   -1.5366    
  23  Prefactor     .10000E-03    9.4686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84508        .19632        .45211E-03   -.98418    
  25  Prefactor     1.0512        .70853E-01    .15416E-03   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4466e-08
Minuit parameter uncertainties:
  1  9.03767
  2  27.2816
  3  0.000185337
  4  5.11222e-06
  5  8.81718e-06
  6  0.000437476
  7  0.000363678
  8  8.86119
  9  40.437
  10  2.9621
  11  0.000302338
  12  11.6666
  13  2.64525
  14  6.72454e-05
  15  3.31786e-05
  16  5.82311
  17  30.6837
  18  1.78507e-05
  19  1.92052
  20  5.85309e-06
  21  17.4617
  22  3.92402
  23  8.93712e-05
  24  0.196488
  25  0.0708595
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.733e+01  2.962e+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.051e+00  7.086e-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:  8.451e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 110.52
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.29e-07 +/- 7.34e-08
Energy Flux (Fixed Index): 1.39e-04 +/- 2.37e-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) = 11112.9547043
delta logL = 1.55743365942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11112.9439347
delta logL = 1.5682032882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.766       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0036       1.0000          .0000       5.0000    
     3 'Normalizat'    .90059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   11112.94     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.766        3.1561        .23756E-02   -.16363E-02
   2  alpha         2.0036        .16788        .15808       -.26750E-04
   3  Normalizat    .90059        .16800        .99358E-01    .38367E-04
   4  Prefactor     1.0425        .61961E-01    .40371E-01   -.14169E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7659
  alpha      = 2.00359
  Normalizat = 0.900589
  Prefactor  = 1.04249
 **********
 **   18 **HESSE 
 **********

 FCN=   11112.94     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.766        3.1354        .74273E-04   -1.4865    
   2  alpha         2.0036        .17071        .68189E-02   -.19989    
   3  Normalizat    .90059        .17666        .44032E-03   -.96439    
   4  Prefactor     1.0425        .65040E-01    .15476E-03   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54254e-10
Minuit parameter uncertainties:
  1  3.13539
  2  0.17085
  3  0.176776
  4  0.0650447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593516': 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) = 11112.9439347
delta logL = 1.56820328857

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.777e+01  3.135e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.004e+00  1.709e-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.042e+00  6.504e-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.006e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 113.12
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.00 +/- 0.17
Photon Flux (Free Index): 3.56e-07 +/- 7.59e-08
Energy Flux (Free Index): 1.68e-04 +/- 3.68e-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/593516/cmap_HighResolution_581212801_581472001_4FGL_J0739.2+0137_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-07', energy_flux2='1.68e-04', photon_flux_error='7.34e-08', dlogl='1.57e+00', energy_flux='1.39e-04', photon_flux2='3.56e-07', job_status='DONE', time_completed='2021-08-27 20:46:40.024001', photon_index_error2='0.17', photon_index2='2.00', ts='110.52', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='0.85', time_epoch_completed='1630122400.02', return_code='0', job_id='593516', GAL2='1.04', EG2='0.90', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='7.59e-08', ts2='113.12', photon_index='2.31' WHERE bin_id='1319' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:46:40 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1319 114.82 1.6216 581212801 581472001 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 :                                   918.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            953 sec.

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

