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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin235
RA = 114.82, Dec = 1.6216
tmin = 300240001, tmax = 300499201
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='586090', job_status='RUN', time_executed='2021-08-27 20:06:36.000285', time_epoch_executed='1630119996.0' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586090/ft1_4FGL_J0739.2+0137_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586090/ft1_4FGL_J0739.2+0137_daily_bin235.fits outfile=/scratch/kocevski/586090/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin235.fits ra=114.82 dec=1.6216 rad=12.0 tmin=300240001.0 tmax=300499201.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 3.67
user 3.17
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586090/ft1_filtered_4FGL_J0739.2+0137_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/586090/ltcube_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.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/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits
.....................!
real 11.91
user 11.32
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586090/ft1_filtered_4FGL_J0739.2+0137_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/586090/ltcube_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.fits outfile=/scratch/kocevski/586090/expmap_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.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/586090/ltcube_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.fits
.....................!
real 191.06
user 185.49
sys 5.14

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/586090/ft1_filtered_4FGL_J0739.2+0137_daily_bin235.fits scfile=/scratch/kocevski/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits outfile=/scratch/kocevski/586090/cmap_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.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 0.75
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586090/ft1_filtered_4FGL_J0739.2+0137_daily_bin235.fits scfile=/scratch/kocevski/586090/ft2_4FGL_J0739.2+0137_daily_bin235.fits outfile=/scratch/kocevski/586090/cmap_HighResolution_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.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 0.75
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.264       1.0000         .10000E-03   10000.    
     2 'norm      '    16.951       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.322       1.0000         .10000E-03   10000.    
     5 'norm      '    .90763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.065       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.149       1.0000         .10000E-03   10000.    
    12 'norm      '    30.751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7074       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1276       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.375       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0540       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4466       1.0000         .10000E-03   10000.    
    21 'norm      '    44.030       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0626       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88338       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=   8984.784     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2961 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.265        13.042        .56052E-07   -.11689E-04
   2  norm          16.952        17.902        .33995E-07    .31194E-05
   3  Prefactor     .10000E-03    21.336        .85553E-07** at limit **
   4  norm          19.322        7.8860        .29116E-06   -.20338E-03
   5  norm          .90681        1.7205       -.87285E-06   -.14681E-03
   6  Prefactor     27.594        69.009        .22901E-05    .15694E-04
   7  Prefactor     13.532        12.215       -.36897E-09    .26247E-04
   8  Prefactor     2.9283        15.307        .52396E-06   -.26367E-04
   9  Prefactor     10.040        53.660        .14641E-05   -.56548E-05
  10  norm          5.0105        2.4683       -.36098E-07    .19215E-03
  11  Prefactor     23.143        39.554       -.39274E-06   -.78501E-05
  12  norm          30.750        22.212       -.51929E-07   -.36482E-05
  13  Prefactor     3.7066        4.2983        .89291E-07   -.41902E-04
  14  norm          .10000E-03    7.6696        .25313E-07** at limit **
  15  Prefactor     8.1268        7.9256       -.12172E-06    .26432E-04
  16  Prefactor     5.5059        5.6450       -.92111E-07    .27394E-04
  17  Prefactor     51.367        44.057       -.42110E-06   -.89700E-05
  18  norm          .10000E-03    3.2001        .17917E-07** at limit **
  19  norm          4.0538        3.1820        .34311E-07   -.28068E-04
  20  norm          4.4464        2.3381       -.18165E-07   -.28192E-04
  21  norm          44.025        29.923       -.18820E-06   -.15457E-04
  22  norm          3.0622        3.4345        .27444E-08   -.15247E-04
  23  Prefactor     .10000E-03    15.322       -.87546E-07** at limit **
  24  Normalizat    1.2194        .22973        .14815E-05    .98106E-05
  25  Prefactor     .88335        .73037E-01   -.34407E-06    .25908E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2647
  norm       = 16.9522
  Prefactor  = 0.0001
  norm       = 19.3223
  norm       = 0.906809
  Prefactor  = 27.5942
  Prefactor  = 13.5316
  Prefactor  = 2.92832
  Prefactor  = 10.0404
  norm       = 5.01054
  Prefactor  = 23.1425
  norm       = 30.7499
  Prefactor  = 3.70658
  norm       = 0.0001
  Prefactor  = 8.12682
  Prefactor  = 5.50588
  Prefactor  = 51.3673
  norm       = 0.0001
  norm       = 4.05384
  norm       = 4.44639
  norm       = 44.0247
  norm       = 3.06221
  Prefactor  = 0.0001
  Normalizat = 1.2194
  Prefactor  = 0.883353
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.784     FROM HESSE     STATUS=OK           443 CALLS     3404 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.265        13.128        .10998E-03   -1.4979    
   2  norm          16.952        17.928        .97278E-04   -1.4884    
   3  Prefactor     .10000E-03    21.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.322        7.8248        .45558E-03   -1.4829    
   5  norm          .90681        1.7458        .16973E-02   -1.5518    
   6  Prefactor     27.594        69.268        .76253E-04   -1.4657    
   7  Prefactor     13.532        12.209        .10889E-03   -1.4972    
   8  Prefactor     2.9283        15.210        .23735E-03   -1.5366    
   9  Prefactor     10.040        53.669        .12630E-03   -1.5074    
  10  norm          5.0105        2.4646        .97749E-04   -1.5260    
  11  Prefactor     23.143        39.575        .83253E-04   -1.4745    
  12  norm          30.750        22.225        .72254E-04   -1.4598    
  13  Prefactor     3.7066        4.3160        .19714E-03   -1.5323    
  14  norm          .10000E-03    7.6865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1268        7.9258        .14063E-03   -1.5138    
  16  Prefactor     5.5059        5.6456        .17123E-03   -1.5239    
  17  Prefactor     51.367        44.123        .55953E-04   -1.4273    
  18  norm          .10000E-03    3.2022        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0538        3.1751        .13915E-03   -1.5305    
  20  norm          4.4464        2.3367        .97682E-04   -1.5286    
  21  norm          44.025        29.928        .60419E-04   -1.4380    
  22  norm          3.0622        3.4298        .17966E-03   -1.5358    
  23  Prefactor     .10000E-03    15.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2194        .24227        .41837E-03   -.86005    
  25  Prefactor     .88335        .77599E-01    .16385E-03   -.96725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02871e-08
Minuit parameter uncertainties:
  1  13.1308
  2  17.9338
  3  2.80857e-06
  4  7.82521
  5  1.74593
  6  69.4704
  7  12.2113
  8  13.3527
  9  46.4913
  10  2.46466
  11  39.6197
  12  22.2309
  13  4.31631
  14  4.45716e-06
  15  7.9268
  16  5.64613
  17  44.1507
  18  2.02861e-06
  19  3.17522
  20  2.33677
  21  29.9384
  22  3.43005
  23  3.67807e-06
  24  0.242495
  25  0.0776085
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  5.011e+00  2.465e+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.834e-01  7.761e-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.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.94
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 1.97e-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) = 8983.3998473
delta logL = 1.3845100378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8983.16343909
delta logL = 1.62091825014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1189       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87732       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=   8983.163     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1177        1.7383        .57396E-02   -.97735E-04
   2  alpha         1.4873        .29925        .27614       -.62878E-04
   3  Normalizat    1.2790        .19461        .92578E-01    .25658E-04
   4  Prefactor     .87735        .66090E-01    .44715E-01    .57997E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11766
  alpha      = 1.48733
  Normalizat = 1.27899
  Prefactor  = 0.877355
 **********
 **   18 **HESSE 
 **********

 FCN=   8983.163     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1177        2.3631        .84775E-04   -1.5355    
   2  alpha         1.4873        .43624        .11354E-01   -.41706    
   3  Normalizat    1.2790        .20592        .41005E-03   -.84196    
   4  Prefactor     .87735        .69814E-01    .16434E-03   -.96937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38683e-12
Minuit parameter uncertainties:
  1  2.36313
  2  0.43893
  3  0.206054
  4  0.069821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586090': 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) = 8983.16343882
delta logL = 1.6209185186

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  3.118e+00  2.363e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.487e+00  4.389e-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.774e-01  6.982e-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.279e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.09
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.49 +/- 0.44
Photon Flux (Free Index): 5.21e-08 +/- 4.03e-08
Energy Flux (Free Index): 6.75e-05 +/- 4.77e-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/586090/cmap_HighResolution_300240001_300499201_4FGL_J0739.2+0137_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='6.75e-05', photon_flux_error='6.10e-08', dlogl='1.62e+00', energy_flux='4.01e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-08-27 20:19:31.042868', photon_index_error2='0.44', photon_index2='1.49', ts='10.94', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.77e-05', EG='1.22', time_epoch_completed='1630120771.04', return_code='0', job_id='586090', GAL2='0.88', EG2='1.28', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='4.03e-08', ts2='14.09', photon_index='2.31' WHERE bin_id='235' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:19:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 586090: <4FGL_J0739.2+0137_daily_bin235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin235 114.82 1.6216 300240001 300499201 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 :                                   775.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

