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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1020
RA = 114.82, Dec = 1.6216
tmin = 503712001, tmax = 503971201
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='592062', job_status='RUN', time_executed='2021-08-27 20:28:37.062963', time_epoch_executed='1630121317.06' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592062/ft1_4FGL_J0739.2+0137_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits


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

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

Done.
real 7.27
user 5.28
sys 1.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592062/ft1_filtered_4FGL_J0739.2+0137_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/592062/ltcube_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.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/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits
.....................!
real 14.08
user 11.61
sys 2.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592062/ft1_filtered_4FGL_J0739.2+0137_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/592062/ltcube_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.fits outfile=/scratch/kocevski/592062/expmap_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.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/592062/ltcube_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.fits
.....................!
real 192.74
user 185.61
sys 6.74

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/592062/ft1_filtered_4FGL_J0739.2+0137_daily_bin1020.fits scfile=/scratch/kocevski/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits outfile=/scratch/kocevski/592062/cmap_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.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 2.35
user 0.38
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592062/ft1_filtered_4FGL_J0739.2+0137_daily_bin1020.fits scfile=/scratch/kocevski/592062/ft2_4FGL_J0739.2+0137_daily_bin1020.fits outfile=/scratch/kocevski/592062/cmap_HighResolution_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.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 2.39
user 0.38
sys 1.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1213       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.150       1.0000         .10000E-03   10000.    
     4 'norm      '    .91641       1.0000         .10000E-03   10000.    
     5 'norm      '    .25818E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.350       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.955       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.602       1.0000         .10000E-03   10000.    
    19 'norm      '    .34989       1.0000         .10000E-03   10000.    
    20 'norm      '    .14949E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4796       1.0000         .10000E-03   10000.    
    23 'Prefactor '    68.835       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64404       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0621       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=   7652.287     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3070 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1418        28.723        .11172E-04   -.65209E-04
   2  norm          8.2745        29.613       -.52592E-04   -.12977E-04
   3  Prefactor     97.138        59.938       -.23218E-05   -.49683E-04
   4  norm          .92170        3.6279        .81077E-06   -.34912E-03
   5  norm          .10000E-03    1.1255        .11293E-05** at limit **
   6  Prefactor     15.285        63.004       -.12395E-03   -.68464E-04
   7  Prefactor     7.2800        9.0256        .34454E-05    .17926E-04
   8  Prefactor     23.293        17.273       -.11351E-04    .48174E-04
   9  Prefactor     34.313        38.205        .49619E-04   -.10835E-03
  10  norm          7.8024        2.9380       -.16513E-06   -.25812E-03
  11  Prefactor     18.949        37.600       -.36375E-05    .16355E-04
  12  norm          .10000E-03    18.624        .41573E-05** at limit **
  13  Prefactor     .10000E-03    2.3792       -.71293E-07** at limit **
  14  norm          24.818        27.179       -.53797E-05   -.14141E-04
  15  Prefactor     7.8012        17.957        .87964E-05   -.47781E-04
  16  Prefactor     .10000E-03    5.1164       -.28622E-06** at limit **
  17  Prefactor     .10000E-03    10.394        .40331E-06** at limit **
  18  norm          15.596        14.986        .16387E-05    .67134E-05
  19  norm          .35419        2.0324       -.56500E-06   -.10775E-03
  20  norm          .10000E-03    1.1140        .21203E-06** at limit **
  21  norm          .10000E-03    17.955       -.28174E-05** at limit **
  22  norm          4.4795        4.0659        .18458E-06   -.15582E-05
  23  Prefactor     68.825        44.216       -.33970E-05   -.14511E-04
  24  Normalizat    .64434        .24149       -.12132E-04   -.40452E-04
  25  Prefactor     1.0619        .84958E-01    .53726E-05   -.16830E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14175
  norm       = 8.27447
  Prefactor  = 97.1379
  norm       = 0.921696
  norm       = 0.000100002
  Prefactor  = 15.2847
  Prefactor  = 7.27995
  Prefactor  = 23.2933
  Prefactor  = 34.3134
  norm       = 7.80239
  Prefactor  = 18.9493
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.818
  Prefactor  = 7.80121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5965
  norm       = 0.354195
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 4.47946
  Prefactor  = 68.8254
  Normalizat = 0.644343
  Prefactor  = 1.06189
 **********
 **   18 **HESSE 
 **********

 FCN=   7652.287     FROM HESSE     STATUS=OK           443 CALLS     3513 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1418        28.678        .28316E-03   -1.5415    
   2  norm          8.2745        29.646        .13948E-03   -1.5133    
   3  Prefactor     97.138        59.837        .40782E-04   -1.3734    
   4  norm          .92170        11.561        .30132E-02   -1.5516    
   5  norm          .10000E-03    4.4098        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.285        61.600        .10177E-03   -1.4926    
   7  Prefactor     7.2800        9.0171        .14871E-03   -1.5168    
   8  Prefactor     23.293        17.278        .83010E-04   -1.4742    
   9  Prefactor     34.313        37.780        .68374E-04   -1.4536    
  10  norm          7.8024        2.9334        .85818E-04   -1.5149    
  11  Prefactor     18.949        37.563        .91994E-04   -1.4837    
  12  norm          .10000E-03    18.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4438        .26307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.818        27.094        .80413E-04   -1.4711    
  15  Prefactor     7.8012        17.886        .14354E-03   -1.5149    
  16  Prefactor     .10000E-03    5.1272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.596        14.976        .10140E-03   -1.4918    
  19  norm          .35419        8.6382        .21891E-02   -1.5589    
  20  norm          .10000E-03    3.4596        .28999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    18.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4795        4.0643        .16102E-03   -1.5285    
  23  Prefactor     68.825        44.324        .48380E-04   -1.4047    
  24  Normalizat    .64434        .24635        .50943E-03   -1.0613    
  25  Prefactor     1.0619        .89435E-01    .15057E-03   -.90694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86997e-08
Minuit parameter uncertainties:
  1  15.6832
  2  29.6992
  3  59.8739
  4  6.52994
  5  0.000171027
  6  61.479
  7  9.01878
  8  17.2813
  9  37.806
  10  2.93342
  11  37.6097
  12  3.60086e-05
  13  6.68016e-06
  14  27.1076
  15  17.8985
  16  7.33441e-06
  17  7.95034e-06
  18  14.9798
  19  3.49841
  20  8.51115e-05
  21  6.47222e-05
  22  4.06456
  23  44.3454
  24  0.246769
  25  0.0894479
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  7.802e+00  2.933e+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.062e+00  8.945e-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:  6.443e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.99
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.93e-07 +/- 7.26e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 2.35e-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) = 7652.07019471
delta logL = 0.217107766708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7652.06151069
delta logL = 0.22579178704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7716       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0669       1.0000          .0000       5.0000    
     3 'Normalizat'    .66801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       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=   7652.062     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7716        3.3386        .35960E-02    .11203E-02
   2  alpha         2.0669        .36317        .27228       -.22979E-04
   3  Normalizat    .66798        .20399        .11300        .45206E-04
   4  Prefactor     1.0587        .74946E-01    .39426E-01   -.14496E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77164
  alpha      = 2.06693
  Normalizat = 0.667982
  Prefactor  = 1.0587
 **********
 **   18 **HESSE 
 **********

 FCN=   7652.062     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7716        3.0657        .89581E-04   -1.5150    
   2  alpha         2.0669        .35891        .11162E-01   -.17411    
   3  Normalizat    .66798        .21138        .50134E-03   -1.0517    
   4  Prefactor     1.0587        .77268E-01    .15080E-03   -.90798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47045e-10
Minuit parameter uncertainties:
  1  3.06575
  2  0.360191
  3  0.211634
  4  0.0772761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592062': 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) = 7652.06151068
delta logL = 0.225791799168

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  7.772e+00  3.066e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.067e+00  3.602e-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.059e+00  7.728e-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:  6.680e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.34
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.07 +/- 0.36
Photon Flux (Free Index): 1.62e-07 +/- 8.00e-08
Energy Flux (Free Index): 6.99e-05 +/- 2.99e-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/592062/cmap_HighResolution_503712001_503971201_4FGL_J0739.2+0137_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-07', energy_flux2='6.99e-05', photon_flux_error='7.26e-08', dlogl='2.26e-01', energy_flux='6.25e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-08-27 20:41:02.836412', photon_index_error2='0.36', photon_index2='2.07', ts='14.99', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.64', time_epoch_completed='1630122062.84', return_code='0', job_id='592062', GAL2='1.06', EG2='0.67', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='8.00e-08', ts2='15.34', photon_index='2.31' WHERE bin_id='1020' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 592062: <4FGL_J0739.2+0137_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1020 114.82 1.6216 503712001 503971201 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            932 sec.

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

