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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin968
RA = 114.82, Dec = 1.6216
tmin = 490233601, tmax = 490492801
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='591986', job_status='RUN', time_executed='2021-08-27 20:27:09.932722', time_epoch_executed='1630121229.93' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591986/ft1_4FGL_J0739.2+0137_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591986/ft1_4FGL_J0739.2+0137_daily_bin968.fits outfile=/scratch/kocevski/591986/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin968.fits ra=114.82 dec=1.6216 rad=12.0 tmin=490233601.0 tmax=490492801.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.47
user 3.45
sys 0.74

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591986/ft1_filtered_4FGL_J0739.2+0137_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/591986/ltcube_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.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/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits
.....................!
real 12.45
user 11.51
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591986/ft1_filtered_4FGL_J0739.2+0137_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/591986/ltcube_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.fits outfile=/scratch/kocevski/591986/expmap_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.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/591986/ltcube_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.fits
.....................!
real 195.92
user 187.38
sys 7.26

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/591986/ft1_filtered_4FGL_J0739.2+0137_daily_bin968.fits scfile=/scratch/kocevski/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits outfile=/scratch/kocevski/591986/cmap_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.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.07
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591986/ft1_filtered_4FGL_J0739.2+0137_daily_bin968.fits scfile=/scratch/kocevski/591986/ft2_4FGL_J0739.2+0137_daily_bin968.fits outfile=/scratch/kocevski/591986/cmap_HighResolution_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.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.11
user 0.38
sys 0.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.209       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5474       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26628E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5797       1.0000         .10000E-03   10000.    
    14 'norm      '    27.414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44933E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.642       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.194       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7728       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .64332       1.0000         .10000E-03   10000.    
    21 'norm      '    .16785E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2313       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.584       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79167       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1349       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=   9759.498     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     2558 TOTAL
                     EDM=   .98E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3900       -.10869E-07** at limit **
   2  norm          .10000E-03    8.9033        .17136E-06** at limit **
   3  Prefactor     21.204        1.3860        .34809E-08    .69991E-03
   4  norm          .10000E-03    4.0858        .23788E-06** at limit **
   5  norm          1.5468        1.5953       -.27784E-07    .10918E-05
   6  Prefactor     .10000E-03    25.986       -.41436E-05** at limit **
   7  Prefactor     .10002E-03    .76853        .49334E-06** at limit **
   8  Prefactor     .10000E-03    9.8788       -.11300E-05** at limit **
   9  Prefactor     .10000E-03    20.225        .27071E-05** at limit **
  10  norm          4.9835        2.3501        .62963E-07    .97318E-05
  11  Prefactor     .10000E-03    11.271        .15875E-05** at limit **
  12  norm          5.9984        1.5342        .82398E-07   -.12964E-03
  13  Prefactor     1.5778        3.2613        .72359E-06    .50728E-05
  14  norm          27.380        22.007        .49872E-06   -.78128E-04
  15  Prefactor     .10000E-03    380.30        .86422E-05** at limit **
  16  Prefactor     15.652        1.1072       -.16220E-07   -.52349E-05
  17  Prefactor     44.195        1.0604       -.83761E-08   -.92669E-04
  18  norm          2.7525        2.2285        .50696E-07    .47885E-03
  19  norm          .10000E-03    1.0425       -.57575E-07** at limit **
  20  norm          .64271        1.2095        .35448E-07    .40259E-06
  21  norm          .10000E-03    36.206       -.17190E-05** at limit **
  22  norm          6.2354        5.0913        .43063E-07   -.36701E-04
  23  Prefactor     26.567        1.9056        .64361E-07   -.18908E-03
  24  Normalizat    .79134        .21285        .10544E-05   -.28598E-05
  25  Prefactor     1.1350        .71605E-01   -.16876E-06   -.41852E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2043
  norm       = 0.0001
  norm       = 1.54683
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9835
  Prefactor  = 0.0001
  norm       = 5.99841
  Prefactor  = 1.57781
  norm       = 27.3796
  Prefactor  = 0.0001
  Prefactor  = 15.6517
  Prefactor  = 44.1954
  norm       = 2.75245
  norm       = 0.0001
  norm       = 0.642714
  norm       = 0.0001
  norm       = 6.23542
  Prefactor  = 26.5675
  Normalizat = 0.791335
  Prefactor  = 1.13502
 **********
 **   18 **HESSE 
 **********

 FCN=   9759.498     FROM HESSE     STATUS=OK           491 CALLS     3049 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.204        66.752        .21743E-02   -1.4787    
   4  norm          .10000E-03    4.0209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5468        1.6272        .85630E-02   -1.5459    
   6  Prefactor     .10000E-03    25.923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    3.7847        .10720       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9835        2.3629        .45040E-02   -1.5261    
  11  Prefactor     .10000E-03    11.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9984        19.798        .40975E-02   -1.5218    
  13  Prefactor     1.5778        3.3235        .84485E-02   -1.5457    
  14  norm          27.380        24.135        .19129E-02   -1.4661    
  15  Prefactor     .10000E-03    13.027        .10904       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.652        10.236        .25317E-02   -1.4917    
  17  Prefactor     44.195        39.956        .15077E-02   -1.4377    
  18  norm          2.7525        16.335        .61100E-02   -1.5376    
  19  norm          .10000E-03    1.0331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .64271        1.2908        .33858E-01   -1.5548    
  21  norm          .10000E-03    36.314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2354        5.1930        .40203E-02   -1.5208    
  23  Prefactor     26.567        40.242        .19424E-02   -1.4677    
  24  Normalizat    .79134        .23296        .11358       -1.0039    
  25  Prefactor     1.1350        .70911E-01    .36390E-01   -.88355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57854e-08
Minuit parameter uncertainties:
  1  1.15338e-07
  2  1.16325e-06
  3  66.9888
  4  7.6278e-07
  5  1.62729
  6  9.01649e-06
  7  0.000486099
  8  1.96807e-06
  9  0.000107758
  10  2.36291
  11  2.64462e-06
  12  19.8199
  13  3.32385
  14  24.1441
  15  5.49121e-05
  16  10.2367
  17  39.9803
  18  13.4159
  19  7.18756e-08
  20  1.29086
  21  0.000233921
  22  5.19336
  23  40.2829
  24  0.233258
  25  0.070917
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.983e+00  2.363e+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.135e+00  7.092e-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:  7.913e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.25
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 5.85e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 1.89e-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) = 9758.62386957
delta logL = 0.873851943799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9758.56513098
delta logL = 0.932590536879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0374       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6494       1.0000          .0000       5.0000    
     3 'Normalizat'    .83906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1285       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=   9758.565     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0374        2.0268        .50171E-02    .48021E-02
   2  alpha         1.6494        .30517        .31835       -.50334E-04
   3  Normalizat    .83902        .19309        .11059        .40077E-04
   4  Prefactor     1.1286        .68373E-01    .36591E-01   -.13609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03743
  alpha      = 1.64937
  Normalizat = 0.83902
  Prefactor  = 1.12855
 **********
 **   18 **HESSE 
 **********

 FCN=   9758.565     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0374        2.6204        .95369E-04   -1.5306    
   2  alpha         1.6494        .44681        .12407E-01   -.34718    
   3  Normalizat    .83902        .20148        .49050E-03   -.98637    
   4  Prefactor     1.1286        .71128E-01    .15237E-03   -.88559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88698e-09
Minuit parameter uncertainties:
  1  2.62052
  2  0.449549
  3  0.201657
  4  0.0711337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591986': 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) = 9758.56513095
delta logL = 0.932590561953

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.037e+00  2.621e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.649e+00  4.495e-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.129e+00  7.113e-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.390e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.00
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.65 +/- 0.45
Photon Flux (Free Index): 6.92e-08 +/- 5.05e-08
Energy Flux (Free Index): 6.21e-05 +/- 4.06e-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/591986/cmap_HighResolution_490233601_490492801_4FGL_J0739.2+0137_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='6.21e-05', photon_flux_error='5.85e-08', dlogl='9.33e-01', energy_flux='3.99e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-08-27 20:40:28.582879', photon_index_error2='0.45', photon_index2='1.65', ts='10.25', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='0.79', time_epoch_completed='1630122028.58', return_code='0', job_id='591986', GAL2='1.13', EG2='0.84', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.05e-08', ts2='12.00', photon_index='2.31' WHERE bin_id='968' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:40:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 591986: <4FGL_J0739.2+0137_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin968 114.82 1.6216 490233601 490492801 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

