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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin488
RA = 114.82, Dec = 1.6216
tmin = 365817601, tmax = 366076801
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='587786', job_status='RUN', time_executed='2021-08-27 20:13:09.609679', time_epoch_executed='1630120389.61' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587786/ft1_4FGL_J0739.2+0137_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587786/ft1_4FGL_J0739.2+0137_daily_bin488.fits outfile=/scratch/kocevski/587786/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin488.fits ra=114.82 dec=1.6216 rad=12.0 tmin=365817601.0 tmax=366076801.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.19
user 3.28
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.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/587786/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin488.fits evtable="EVENTS" outfile="/scratch/kocevski/587786/ft1_filtered_4FGL_J0739.2+0137_daily_bin488.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.19
user 0.35
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587786/ft1_filtered_4FGL_J0739.2+0137_daily_bin488.fits" evtable="EVENTS" scfile=/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits sctable="SC_DATA" outfile=/scratch/kocevski/587786/ltcube_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.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/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits
.....................!
real 12.89
user 11.78
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587786/ft1_filtered_4FGL_J0739.2+0137_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/587786/ltcube_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.fits outfile=/scratch/kocevski/587786/expmap_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.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/587786/ltcube_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.fits
.....................!
real 191.99
user 185.45
sys 6.13

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/587786/ft1_filtered_4FGL_J0739.2+0137_daily_bin488.fits scfile=/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits outfile=/scratch/kocevski/587786/cmap_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.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.21
user 0.36
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587786/ft1_filtered_4FGL_J0739.2+0137_daily_bin488.fits scfile=/scratch/kocevski/587786/ft2_4FGL_J0739.2+0137_daily_bin488.fits outfile=/scratch/kocevski/587786/cmap_HighResolution_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.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.35
user 0.38
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.607       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.037       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5060       1.0000         .10000E-03   10000.    
     5 'norm      '    .20075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.402       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0535       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51260       1.0000         .10000E-03   10000.    
    18 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.9042       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2366       1.0000         .10000E-03   10000.    
    21 'norm      '    .11009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.5542       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.043       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2185       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8434.458     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2443 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.607        1.1625        .41545E-07    .53421E-03
   2  norm          .10000E-03    6.6285       -.52650E-06** at limit **
   3  Prefactor     39.045        1.7875       -.85461E-07    .14302E-02
   4  norm          7.5050        2.4636        .30120E-06   -.33688E-02
   5  norm          .10000E-03    5.7995        .23397E-06** at limit **
   6  Prefactor     22.572        14.240       -.78482E-06   -.14625E-02
   7  Prefactor     33.399        1.1763        .23193E-07    .52250E-04
   8  Prefactor     4.1359        1.9520       -.11666E-07   -.49253E-03
   9  Prefactor     .10001E-03    47.421       -.10455E-04** at limit **
  10  norm          3.1137        2.2511        .10760E-06    .18146E-04
  11  Prefactor     .10000E-03    13.559        .52516E-05** at limit **
  12  norm          .10001E-03    31.274        .96160E-05** at limit **
  13  Prefactor     2.0521        3.0053        .34337E-08    .20975E-04
  14  norm          .10000E-03    15.041       -.75765E-05** at limit **
  15  Prefactor     21.995        1.0717        .17682E-07   -.13335E-03
  16  Prefactor     .10000E-03    4.0944       -.39225E-06** at limit **
  17  Prefactor     .28539        1004.4        .17001E-04    .28915E-03
  18  norm          .10000E-03    10.090       -.52644E-06** at limit **
  19  norm          6.9034        3.4716        .10142E-06   -.18511E-05
  20  norm          2.2361        1.7444       -.13731E-07    .33986E-05
  21  norm          .10003E-03    36.009       -.28343E-05** at limit **
  22  norm          7.5592        4.8785        .70279E-06    .15396E-02
  23  Prefactor     14.149        18.622       -.15844E-05    .44893E-02
  24  Normalizat    1.2190        .21578       -.16354E-05   -.98678E-05
  25  Prefactor     .86078        .69941E-01   -.13042E-06   -.14281E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6072
  norm       = 0.0001
  Prefactor  = 39.0452
  norm       = 7.50501
  norm       = 0.0001
  Prefactor  = 22.5716
  Prefactor  = 33.3987
  Prefactor  = 4.13592
  Prefactor  = 0.00010001
  norm       = 3.11371
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 2.05214
  norm       = 0.0001
  Prefactor  = 21.9951
  Prefactor  = 0.0001
  Prefactor  = 0.285393
  norm       = 0.0001
  norm       = 6.90336
  norm       = 2.23614
  norm       = 0.000100025
  norm       = 7.55925
  Prefactor  = 14.1487
  Normalizat = 1.219
  Prefactor  = 0.860784
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.458     FROM HESSE     STATUS=OK           495 CALLS     2938 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.607        10.181        .28204E-02   -1.4998    
   2  norm          .10000E-03    6.6267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.045        43.290        .16038E-02   -1.4457    
   4  norm          7.5050        5.1996        .36596E-02   -1.5160    
   5  norm          .10000E-03    .86074        .50102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.572        64.626        .21114E-02   -1.4757    
   7  Prefactor     33.399        12.968        .17334E-02   -1.4551    
   8  Prefactor     4.1359        17.542        .49498E-02   -1.5301    
   9  Prefactor     .10001E-03    47.403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1137        2.2705        .57445E-02   -1.5355    
  11  Prefactor     .10000E-03    13.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    30.910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0521        3.0326        .72111E-02   -1.5421    
  14  norm          .10000E-03    15.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.995        13.681        .21350E-02   -1.4770    
  16  Prefactor     .10000E-03    4.0853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28539        36.834        .14677       -1.5601    
  18  norm          .10000E-03    9.9654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.9034        3.4809        .38172E-02   -1.5182    
  20  norm          2.2361        1.7529        .68712E-02   -1.5409    
  21  norm          .10003E-03    36.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.5592        5.3736        .36478E-02   -1.5158    
  23  Prefactor     14.149        37.705        .26721E-02   -1.4955    
  24  Normalizat    1.2190        .22094        .88664E-01   -.86018    
  25  Prefactor     .86078        .69076E-01    .44504E-01   -.97525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54763e-07
Minuit parameter uncertainties:
  1  10.1821
  2  3.14429e-06
  3  43.3244
  4  5.19988
  5  2.28254e-06
  6  64.8271
  7  12.9695
  8  17.0438
  9  0.00141121
  10  2.2706
  11  3.60928e-05
  12  0.000925592
  13  3.03285
  14  5.86324e-05
  15  13.6832
  16  6.22516e-07
  17  6.48748
  18  2.83747e-06
  19  3.48102
  20  1.75297
  21  0.0019194
  22  5.3739
  23  37.7686
  24  0.221106
  25  0.0690832
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.114e+00  2.271e+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.608e-01  6.908e-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.219e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.71e-08 +/- 5.62e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 1.82e-05

TS (Fixed Index): 2.92
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587786/likelihoodResults_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.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) = 8434.42049453
delta logL = 0.0375371165428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8434.41918557
delta logL = 0.0388460758913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1068       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85889       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=   8434.419     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0883        3.8251        .57514E-02    .46758E-03
   2  alpha         2.1052        .90527        .41813       -.38961E-04
   3  Normalizat    1.2304        .19304        .88306E-01    .16560E-04
   4  Prefactor     .85885        .65682E-01    .44479E-01   -.36476E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.08828
  alpha      = 2.10515
  Normalizat = 1.23041
  Prefactor  = 0.858845
 **********
 **   18 **HESSE 
 **********

 FCN=   8434.419     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0883        2.2729        .11197E-03   -1.5356    
   2  alpha         2.1052        .69732        .19312E-01   -.15860    
   3  Normalizat    1.2304        .20649        .39105E-03   -.85668    
   4  Prefactor     .85885        .69212E-01    .15659E-03   -.97594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08006e-12
Minuit parameter uncertainties:
  1  2.27298
  2  0.706944
  3  0.206628
  4  0.0692195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587786': 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) = 8434.4191522
delta logL = 0.0388794437531

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.088e+00  2.273e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.105e+00  7.069e-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.588e-01  6.922e-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.230e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.11 +/- 0.71
Photon Flux (Free Index): 6.59e-08 +/- 6.17e-08
Energy Flux (Free Index): 2.71e-05 +/- 2.15e-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/587786/cmap_HighResolution_365817601_366076801_4FGL_J0739.2+0137_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-05', comment='SUCCESS', photon_flux='7.71e-08', energy_flux2='2.71e-05', photon_flux_error='5.62e-08', dlogl='3.89e-02', energy_flux='2.49e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-08-27 20:26:47.455825', photon_index_error2='0.71', photon_index2='2.11', ts='2.92', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='2.15e-05', EG='1.22', time_epoch_completed='1630121207.46', return_code='0', job_id='587786', GAL2='0.86', EG2='1.23', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='6.17e-08', ts2='2.98', photon_index='2.31' WHERE bin_id='488' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:26:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 587786: <4FGL_J0739.2+0137_daily_bin488> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin488> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 20:10:45 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:10:52 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:10:52 2021
Terminated at Fri Aug 27 20:26:47 2021
Results reported at Fri Aug 27 20:26:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin488 114.82 1.6216 365817601 366076801 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 :                                   824.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            962 sec.

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

