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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin198
RA = 114.82, Dec = 1.6216
tmin = 290649601, tmax = 290908801
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='586037', job_status='RUN', time_executed='2021-08-27 20:05:46.231333', time_epoch_executed='1630119946.23' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/586037

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/586037/ft1_4FGL_J0739.2+0137_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/586037/ft1_4FGL_J0739.2+0137_daily_bin198.fits outfile=/scratch/kocevski/586037/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin198.fits ra=114.82 dec=1.6216 rad=12.0 tmin=290649601.0 tmax=290908801.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.65
user 3.12
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/586037/ft1_filtered_4FGL_J0739.2+0137_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/586037/ltcube_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.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/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits
.....................!
real 12.74
user 12.01
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/586037/ft1_filtered_4FGL_J0739.2+0137_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/586037/ltcube_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.fits outfile=/scratch/kocevski/586037/expmap_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.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/586037/ltcube_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.fits
.....................!
real 191.63
user 186.26
sys 4.80

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/586037/ft1_filtered_4FGL_J0739.2+0137_daily_bin198.fits scfile=/scratch/kocevski/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits outfile=/scratch/kocevski/586037/cmap_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.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.81
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/586037/ft1_filtered_4FGL_J0739.2+0137_daily_bin198.fits scfile=/scratch/kocevski/586037/ft2_4FGL_J0739.2+0137_daily_bin198.fits outfile=/scratch/kocevski/586037/cmap_HighResolution_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.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.81
user 0.39
sys 0.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27745E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8241       1.0000         .10000E-03   10000.    
     5 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5404       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.2042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3980       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.326       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5853       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9386       1.0000         .10000E-03   10000.    
    19 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4209       1.0000         .10000E-03   10000.    
    21 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.775       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0502       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1110       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=   10858.38     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2976 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    121.07       -.48403E-04** at limit **
   2  norm          .10000E-03    5.1186       -.69850E-07** at limit **
   3  Prefactor     .10000E-03    59.807       -.11782E-04** at limit **
   4  norm          8.8239        5.4904        .70250E-07    .25475E-03
   5  norm          .10000E-03    1.1170       -.12893E-06** at limit **
   6  Prefactor     .10000E-03    22.713       -.35443E-05** at limit **
   7  Prefactor     3.6162        6.6907       -.17709E-05    .10486E-03
   8  Prefactor     .10000E-03    33.345        .43579E-05** at limit **
   9  Prefactor     5.5347        83.228        .14210E-05    .27979E-04
  10  norm          2.5764        1.7271       -.57136E-07    .28852E-03
  11  Prefactor     .10000E-03    16.996        .11153E-05** at limit **
  12  norm          8.2041        11.730       -.74923E-07   -.35262E-05
  13  Prefactor     3.3980        3.1980       -.63420E-06    .25926E-03
  14  norm          .10000E-03    25.771        .41030E-06** at limit **
  15  Prefactor     21.332        13.085        .27102E-06   -.79552E-04
  16  Prefactor     8.5857        7.2447        .46893E-06   -.14790E-03
  17  Prefactor     .10000E-03    14.521       -.30033E-06** at limit **
  18  norm          2.9387        6.7136       -.93494E-06    .14767E-03
  19  norm          .10000E-03    1.3432        .67745E-06** at limit **
  20  norm          2.4212        1.8765       -.71405E-06   -.86694E-03
  21  norm          .10000E-03    37.623        .71961E-06** at limit **
  22  norm          .10000E-03    1.8215       -.66546E-07** at limit **
  23  Prefactor     10.772        20.097        .74620E-07   -.56787E-05
  24  Normalizat    1.0502        .20601       -.15116E-07   -.26889E-04
  25  Prefactor     1.1110        .68943E-01   -.50806E-08   -.35289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82387
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61615
  Prefactor  = 0.0001
  Prefactor  = 5.53472
  norm       = 2.57641
  Prefactor  = 0.0001
  norm       = 8.20405
  Prefactor  = 3.39801
  norm       = 0.0001
  Prefactor  = 21.3321
  Prefactor  = 8.58567
  Prefactor  = 0.0001
  norm       = 2.9387
  norm       = 0.0001
  norm       = 2.42115
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7721
  Normalizat = 1.05024
  Prefactor  = 1.11103
 **********
 **   18 **HESSE 
 **********

 FCN=   10858.38     FROM HESSE     STATUS=OK           439 CALLS     3415 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4332        .75595E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    60.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8239        5.5114        .13493E-03   -1.5114    
   5  norm          .10000E-03    2.6562        .20799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6162        6.6808        .21246E-03   -1.5328    
   8  Prefactor     .10000E-03    34.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5347        82.112        .17069E-03   -1.5237    
  10  norm          2.5764        1.7220        .10675E-03   -1.5387    
  11  Prefactor     .10000E-03    17.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.2041        11.728        .13997E-03   -1.5135    
  13  Prefactor     3.3980        3.2038        .17436E-03   -1.5339    
  14  norm          .10000E-03    25.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.332        13.066        .86734E-04   -1.4784    
  16  Prefactor     8.5857        7.2063        .13681E-03   -1.5122    
  17  Prefactor     .10000E-03    14.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9387        6.7634        .23694E-03   -1.5365    
  19  norm          .10000E-03    2.5631        .22897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4212        1.8577        .12013E-03   -1.5397    
  21  norm          .10000E-03    38.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8357        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.772        20.120        .12206E-03   -1.5051    
  24  Normalizat    1.0502        .21803        .45276E-03   -.91366    
  25  Prefactor     1.1110        .73717E-01    .15481E-03   -.89115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26089e-10
Minuit parameter uncertainties:
  1  0.000181759
  2  3.66974e-06
  3  0.000329545
  4  5.51174
  5  2.63658e-05
  6  5.50766e-05
  7  6.68222
  8  0.000152497
  9  42.7065
  10  1.72206
  11  2.59464e-05
  12  11.7309
  13  3.20394
  14  0.000109649
  15  13.0677
  16  7.20701
  17  7.6696e-06
  18  6.76519
  19  6.61603e-05
  20  1.85779
  21  5.48077e-05
  22  4.97884e-06
  23  20.1328
  24  0.218211
  25  0.0737236
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.576e+00  1.722e+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.111e+00  7.372e-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.050e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.38e-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) = 10858.0451056
delta logL = 0.331117161024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10858.0391469
delta logL = 0.337075778636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3857       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8452       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1078       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=   10858.04     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3841        1.6755        .66296E-02    .26922E-03
   2  alpha         1.8442        .41641        .43095       -.52227E-04
   3  Normalizat    1.0700        .18633        .10130        .32441E-04
   4  Prefactor     1.1079        .65295E-01    .37297E-01   -.10316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38412
  alpha      = 1.84424
  Normalizat = 1.07004
  Prefactor  = 1.10787
 **********
 **   18 **HESSE 
 **********

 FCN=   10858.04     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3841        1.7621        .10554E-03   -1.5399    
   2  alpha         1.8442        .53085        .16942E-01   -.26541    
   3  Normalizat    1.0700        .19655        .44893E-03   -.90720    
   4  Prefactor     1.1079        .68862E-01    .15499E-03   -.89215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55845e-12
Minuit parameter uncertainties:
  1  1.76217
  2  0.535226
  3  0.196684
  4  0.0688679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/586037': 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) = 10858.0391445
delta logL = 0.337078258701

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  2.384e+00  1.762e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.844e+00  5.352e-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.108e+00  6.887e-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.070e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.84 +/- 0.54
Photon Flux (Free Index): 4.39e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.13e-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/586037/cmap_HighResolution_290649601_290908801_4FGL_J0739.2+0137_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='2.69e-05', photon_flux_error='4.26e-08', dlogl='3.37e-01', energy_flux='2.06e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-08-27 20:20:36.170285', photon_index_error2='0.54', photon_index2='1.84', ts='5.53', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='1.05', time_epoch_completed='1630120836.17', return_code='0', job_id='586037', GAL2='1.11', EG2='1.07', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.80e-08', ts2='6.18', photon_index='2.31' WHERE bin_id='198' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:20:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 586037: <4FGL_J0739.2+0137_daily_bin198> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin198 114.82 1.6216 290649601 290908801 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 :                                   891.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             345.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

