/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 82 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 = 7370
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0739.2+0137_daily_bin258
RA = 114.82, Dec = 1.6216
tmin = 306201601, tmax = 306460801
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='586123', job_status='RUN', time_executed='2021-08-27 20:07:50.419262', time_epoch_executed='1630120070.42' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586123/ft1_4FGL_J0739.2+0137_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586123/ft1_4FGL_J0739.2+0137_daily_bin258.fits outfile=/scratch/kocevski/586123/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin258.fits ra=114.82 dec=1.6216 rad=12.0 tmin=306201601.0 tmax=306460801.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 6.56
user 3.25
sys 3.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586123/ft1_filtered_4FGL_J0739.2+0137_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/586123/ltcube_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.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/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits
.....................!
real 15.27
user 11.50
sys 3.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586123/ft1_filtered_4FGL_J0739.2+0137_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/586123/ltcube_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.fits outfile=/scratch/kocevski/586123/expmap_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.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/586123/ltcube_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.fits
.....................!
real 196.00
user 186.50
sys 9.02

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/586123/ft1_filtered_4FGL_J0739.2+0137_daily_bin258.fits scfile=/scratch/kocevski/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits outfile=/scratch/kocevski/586123/cmap_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.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 3.47
user 0.38
sys 3.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586123/ft1_filtered_4FGL_J0739.2+0137_daily_bin258.fits scfile=/scratch/kocevski/586123/ft2_4FGL_J0739.2+0137_daily_bin258.fits outfile=/scratch/kocevski/586123/cmap_HighResolution_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.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 3.50
user 0.39
sys 3.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    11.538       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0656       1.0000         .10000E-03   10000.    
     5 'norm      '    .11931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    100.47       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.898       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.274       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58717E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    10.678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.167       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2933       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6486       1.0000         .10000E-03   10000.    
    21 'norm      '    26.327       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0181       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=   8811.758     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2906 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8553        .11799E-07** at limit **
   2  norm          11.538        16.757        .40465E-07   -.13473E-05
   3  Prefactor     .10000E-03    21.453       -.21384E-06** at limit **
   4  norm          4.0656        7.6020        .38290E-06   -.74367E-04
   5  norm          .11857        .87367       -.23079E-07    .33467E-04
   6  Prefactor     100.47        56.856       -.11121E-06   -.81408E-05
   7  Prefactor     4.9636        4.5317       -.13243E-05    .81762E-03
   8  Prefactor     .10000E-03    14.441        .10581E-06** at limit **
   9  Prefactor     12.894        32.351       -.17294E-05   -.66690E-04
  10  norm          4.7289        2.2354        .35577E-07    .25056E-04
  11  Prefactor     27.272        34.566       -.68931E-06   -.56566E-04
  12  norm          .10000E-03    7.8528        .15824E-06** at limit **
  13  Prefactor     .49279E-01    1.4091        .49595E-07   -.19508E-03
  14  norm          10.679        16.201        .29626E-07    .75196E-05
  15  Prefactor     15.167        11.194       -.12678E-06   -.21866E-04
  16  Prefactor     .10000E-03    8.3904       -.50733E-06** at limit **
  17  Prefactor     .10000E-03    14.674       -.22898E-06** at limit **
  18  norm          .10000E-03    8.9111        .46665E-06** at limit **
  19  norm          2.2934        2.1772       -.21205E-07   -.97285E-05
  20  norm          2.6485        1.9637        .13586E-07   -.67137E-04
  21  norm          26.315        24.688       -.24252E-05   -.36160E-03
  22  norm          9.6610        5.0934        .10895E-06    .78975E-04
  23  Prefactor     .10000E-03    37.553       -.20587E-06** at limit **
  24  Normalizat    .88690        .20759        .13602E-05   -.24761E-05
  25  Prefactor     1.0181        .71122E-01   -.22537E-06    .11754E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.5382
  Prefactor  = 0.0001
  norm       = 4.06559
  norm       = 0.118573
  Prefactor  = 100.473
  Prefactor  = 4.96359
  Prefactor  = 0.0001
  Prefactor  = 12.8943
  norm       = 4.7289
  Prefactor  = 27.2719
  norm       = 0.0001
  Prefactor  = 0.0492787
  norm       = 10.6789
  Prefactor  = 15.1675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.29342
  norm       = 2.64851
  norm       = 26.3152
  norm       = 9.66104
  Prefactor  = 0.0001
  Normalizat = 0.886899
  Prefactor  = 1.01809
 **********
 **   18 **HESSE 
 **********

 FCN=   8811.758     FROM HESSE     STATUS=OK           433 CALLS     3339 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8605        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.538        16.780        .11794E-03   -1.5028    
   3  Prefactor     .10000E-03    21.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0656        7.6754        .19996E-03   -1.5305    
   5  norm          .11857        5.9552        .16232E-02   -1.5639    
   6  Prefactor     100.47        56.734        .40108E-04   -1.3700    
   7  Prefactor     4.9636        4.8187        .90256E-03   -1.5262    
   8  Prefactor     .10000E-03    14.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.894        32.572        .11153E-03   -1.4990    
  10  norm          4.7289        2.2344        .91260E-04   -1.5273    
  11  Prefactor     27.272        34.720        .76710E-04   -1.4663    
  12  norm          .10000E-03    7.8635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49279E-01    27.889        .21353E-02   -1.5664    
  14  norm          10.679        16.191        .12261E-03   -1.5054    
  15  Prefactor     15.167        11.199        .10284E-03   -1.4929    
  16  Prefactor     .10000E-03    8.5687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.0004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2934        2.1714        .12918E-03   -1.5405    
  20  norm          2.6485        1.9561        .10773E-03   -1.5382    
  21  norm          26.315        26.598        .78074E-04   -1.4682    
  22  norm          9.6610        5.1085        .12892E-03   -1.5086    
  23  Prefactor     .10000E-03    37.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88690        .22032        .44817E-03   -.96922    
  25  Prefactor     1.0181        .75869E-01    .15127E-03   -.92129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01267e-09
Minuit parameter uncertainties:
  1  4.25341e-07
  2  16.7869
  3  4.7292e-05
  4  7.67722
  5  1.6801
  6  56.7646
  7  4.81906
  8  2.42566e-06
  9  32.617
  10  2.23445
  11  34.7454
  12  1.5945e-05
  13  2.34337
  14  16.1975
  15  11.2007
  16  7.23939e-05
  17  1.64955e-05
  18  4.27326e-05
  19  2.17144
  20  1.95614
  21  26.61
  22  5.10871
  23  0.000123567
  24  0.220542
  25  0.0758767
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.729e+00  2.234e+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.018e+00  7.588e-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.869e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 5.53e-08
Energy Flux (Fixed Index): 3.79e-05 +/- 1.79e-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) = 8811.56160842
delta logL = 0.196385233352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8811.56070061
delta logL = 0.197293044244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5207       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6027       1.0000          .0000       5.0000    
     3 'Normalizat'    .86713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0208       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8811.561     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5206        2.1789        .83952E-04    .12510E-02
   2  alpha         2.6027        .47399        .14196E-01    .67333E-04
   3  Normalizat    .86714        .19872        .45246E-03   -.95179E-04
   4  Prefactor     1.0208        .70404E-01    .15107E-03    .36423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5206
  alpha      = 2.60271
  Normalizat = 0.867144
  Prefactor  = 1.02083
 **********
 **   18 **HESSE 
 **********

 FCN=   8811.561     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5206        2.1472        .33581E-05   -1.5283    
   2  alpha         2.6027        .46699        .56785E-03    .41097E-01
   3  Normalizat    .86714        .19881        .18098E-04   -.97624    
   4  Prefactor     1.0208        .70414E-01    .60429E-05   -.92038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87047e-10
Minuit parameter uncertainties:
  1  2.14724
  2  0.469755
  3  0.198978
  4  0.0704199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586123': 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) = 8811.5607006
delta logL = 0.197293055475

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.521e+00  2.147e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.603e+00  4.698e-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.021e+00  7.042e-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.671e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.41
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.60 +/- 0.47
Photon Flux (Free Index): 1.43e-07 +/- 7.27e-08
Energy Flux (Free Index): 3.62e-05 +/- 1.63e-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/586123/cmap_HighResolution_306201601_306460801_4FGL_J0739.2+0137_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='3.62e-05', photon_flux_error='5.53e-08', dlogl='1.97e-01', energy_flux='3.79e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-27 20:21:28.285009', photon_index_error2='0.47', photon_index2='2.60', ts='8.94', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.89', time_epoch_completed='1630120888.29', return_code='0', job_id='586123', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='7.27e-08', ts2='9.41', photon_index='2.31' WHERE bin_id='258' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:21:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 586123: <4FGL_J0739.2+0137_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin258 114.82 1.6216 306201601 306460801 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 :                                   861.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

