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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1238
RA = 114.82, Dec = 1.6216
tmin = 560217601, tmax = 560476801
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='593399', job_status='RUN', time_executed='2021-08-27 20:36:44.631055', time_epoch_executed='1630121804.63' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593399/ft1_4FGL_J0739.2+0137_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593399/ft1_4FGL_J0739.2+0137_daily_bin1238.fits outfile=/scratch/kocevski/593399/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1238.fits ra=114.82 dec=1.6216 rad=12.0 tmin=560217601.0 tmax=560476801.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 10.93
user 3.35
sys 7.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/593399/ltcube_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.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/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits
.....................!
real 20.06
user 11.46
sys 8.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/593399/ltcube_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits outfile=/scratch/kocevski/593399/expmap_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.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/593399/ltcube_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits
.....................!
real 199.97
user 184.76
sys 14.66

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/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits scfile=/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits outfile=/scratch/kocevski/593399/cmap_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.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 8.50
user 0.39
sys 8.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits scfile=/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits outfile=/scratch/kocevski/593399/cmap_HighResolution_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.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 8.46
user 0.38
sys 8.05

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits', '/scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits', expMap='/scratch/kocevski/593399/expmap_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits', expCube='/scratch/kocevski/593399/ltcube_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/593399/Model_4FGL_J0739.2+0137_daily_bin1238.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/593399/ft1_filtered_4FGL_J0739.2+0137_daily_bin1238.fits
Spacecraft file(s): /scratch/kocevski/593399/ft2_4FGL_J0739.2+0137_daily_bin1238.fits
Exposure map: /scratch/kocevski/593399/expmap_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits
Exposure cube: /scratch/kocevski/593399/ltcube_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/593399/Model_4FGL_J0739.2+0137_daily_bin1238.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1109.6901468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1107.97418992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12607       1.0000         .10000E-03   10000.    
     2 'norm      '    .50718E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3947       1.0000         .10000E-03   10000.    
     4 'norm      '    .26110E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15651E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12900       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1118       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17145E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39237E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34119       1.0000         .10000E-03   10000.    
    18 'norm      '    .93128E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .43961E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2681       1.0000         .10000E-03   10000.    
    21 'norm      '    .48748E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.086       1.0000         .10000E-03   10000.    
    23 'Prefactor '    116.64       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .26704       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2829       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1107.912     FROM MIGRAD    STATUS=CONVERGED    337 CALLS      574 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    92.567        .96348E-02** at limit **
   2  norm          .10000E-03    79.396        .95913E-02** at limit **
   3  Prefactor     5.4999        1102.1        .43254E-02    .42038E-03
   4  norm          .10000E-03    58.479        .99871E-02** at limit **
   5  norm          .10000E-03    11.278        .63186E-01** at limit **
   6  Prefactor     107.33        255.70        .27350E-02    .19268E-03
   7  Prefactor     .10000E-03    59.371        .10514E-01** at limit **
   8  Prefactor     4.4570        1.0064         .0000         .0000    
   9  Prefactor     .10000E-03    .20707       -.87710E-06** at limit **
  10  norm          1.8205        .95505        .24615E-06    .43580E-05
  11  Prefactor     .10000E-03    .23274        .69415E-06** at limit **
  12  norm          3.1118        1.0135         .0000         .0000    
  13  Prefactor     .10000E-03    .20571        .37207E-06** at limit **
  14  norm          5.2169        .91144        .25686E-05    .15376E-05
  15  Prefactor     .10000E-03    .28282        .41058E-06** at limit **
  16  Prefactor     .10000E-03    .20571        .31972E-06** at limit **
  17  Prefactor     .10000E-03    .28112        .62590E-06** at limit **
  18  norm          .10000E-03    .20716        .46194E-06** at limit **
  19  norm          .10000E-03    .28142        .45976E-05** at limit **
  20  norm          2.2681        1.0266         .0000         .0000    
  21  norm          .10000E-03    .28010        .24825E-06** at limit **
  22  norm          16.134        1.0020       -.78936E-07    .45755E-05
  23  Prefactor     113.51        .98666        .52644E-05    .10917E-04
  24  Normalizat    .29044        .58384       -.56762E-05    .98469E-06
  25  Prefactor     1.2710        1.0766        .89560E-06    .67306E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.49992
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 107.333
  Prefactor  = 0.0001
  Prefactor  = 4.45702
  Prefactor  = 0.0001
  norm       = 1.82047
  Prefactor  = 0.0001
  norm       = 3.11181
  Prefactor  = 0.0001
  norm       = 5.21685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.26809
  norm       = 0.0001
  norm       = 16.134
  Prefactor  = 113.51
  Normalizat = 0.290438
  Prefactor  = 1.27101
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1107.912     FROM HESSE     STATUS=FAILED        25 CALLS      599 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    92.567        .96348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    79.396        .95913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4999        1102.1        .43254E-02   -1.5239    
   4  norm          .10000E-03    58.479        .99871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.278        .63186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     107.33        255.70        .27350E-02   -1.3632    
   7  Prefactor     .10000E-03    59.371        .10514E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     537.13        532.62         .0000       -1.5286    
   9  Prefactor     .10000E-03    .20707       -.87710E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8205        .95505        .24615E-06   -1.5438    
  11  Prefactor     .10000E-03    .23274        .69415E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1118        1.0135         .0000       -1.5355    
  13  Prefactor     .10000E-03    .20571        .37207E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2169        .91144        .25686E-05   -1.5251    
  15  Prefactor     .10000E-03    .28282        .41058E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .31972E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .28112        .62590E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20716        .46194E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .28142        .45976E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2681        1.0266         .0000       -1.5407    
  21  norm          .10000E-03    .28010        .24825E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.134        1.0020       -.78936E-07   -1.4904    
  23  Prefactor     113.51        .98666        .52644E-05   -1.3573    
  24  Normalizat    .29044        .58384       -.56762E-05   -1.2341    
  25  Prefactor     1.2710        1.0766        .89560E-06   -.84173    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.92286e-12
Minuit parameter uncertainties:
  1  9.42556e-06
  2  0.000149884
  3  158.769
  4  1.7925e-05
  5  7.12415e-05
  6  258.399
  7  4.73616e-07
  8  1.00643
  9  2.59303e-06
  10  0.955053
  11  1.84587e-06
  12  1.01353
  13  9.66521e-07
  14  0.911445
  15  5.91766e-07
  16  2.46815e-06
  17  1.44738e-06
  18  1.76665e-06
  19  1.03787e-06
  20  1.02664
  21  9.08605e-07
  22  1.00198
  23  0.986659
  24  0.59676
  25  1.09632
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1107.91228176

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.820e+00  9.551e-01  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.271e+00  1.096e+00  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:  2.904e-01  5.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 6.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593399/likelihoodResults_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.txt

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) = 1107.17540104
delta logL = 0.736880716139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1107.1329162
delta logL = 0.77936556033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0587       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0265       1.0000          .0000       5.0000    
     3 'Normalizat'    .33433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2351       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=   1107.133     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0609        3.9254        .57990E-02    .16997E-03
   2  alpha         1.0269        .56055        .19257       -.28701E-04
   3  Normalizat    .33467        .56770        .13936       -.20110E-04
   4  Prefactor     1.2348        .29087        .33849E-01   -.10753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06094
  alpha      = 1.02693
  Normalizat = 0.334667
  Prefactor  = 1.23482
 **********
 **   18 **HESSE 
 **********

 FCN=   1107.133     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0609        5.0117        .66195E-04   -1.5358    
   2  alpha         1.0269        .72841        .83118E-02   -.63010    
   3  Normalizat    .33467        .54030        .61747E-03   -1.2083    
   4  Prefactor     1.2348        .27736        .16727E-03   -.85266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85721e-11
Minuit parameter uncertainties:
  1  5.0124
  2  0.745195
  3  0.549051
  4  0.277688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593399': 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) = 1107.13291539
delta logL = 0.779366372055

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.061e+00  5.012e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.027e+00  7.452e-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.235e+00  2.777e-01  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:  3.347e-01  5.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.03 +/- 0.75
Photon Flux (Free Index): 6.02e-08 +/- 7.70e-08
Energy Flux (Free Index): 2.56e-04 +/- 4.71e-04

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/593399/cmap_HighResolution_560217601_560476801_4FGL_J0739.2+0137_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-04', comment='SUCCESS', energy_flux2='2.56e-04', dlogl='7.79e-01', photon_flux2='6.02e-08', job_status='DONE', time_completed='2021-08-27 20:44:17.543236', photon_index_error2='0.75', photon_index2='1.03', ts='0.06', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='6.88e-07', energy_flux_error2='4.71e-04', EG='0.29', time_epoch_completed='1630122257.54', return_code='101', job_id='593399', GAL2='1.23', EG2='0.33', return_code2='0', photon_flux_error2='7.70e-08', ts2='1.63', photon_index='2.31' WHERE bin_id='1238' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:44:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 593399: <4FGL_J0739.2+0137_daily_bin1238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1238 114.82 1.6216 560217601 560476801 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 :                                   576.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             235.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            820 sec.

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

