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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin149
RA = 114.82, Dec = 1.6216
tmin = 277948801, tmax = 278208001
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='585961', job_status='RUN', time_executed='2021-08-27 20:07:36.951444', time_epoch_executed='1630120056.95' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585961/ft1_4FGL_J0739.2+0137_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585961/ft1_4FGL_J0739.2+0137_daily_bin149.fits outfile=/scratch/kocevski/585961/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin149.fits ra=114.82 dec=1.6216 rad=12.0 tmin=277948801.0 tmax=278208001.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.66
user 3.93
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585961/ft1_filtered_4FGL_J0739.2+0137_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/585961/ltcube_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.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/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits
.....................!
real 12.51
user 11.63
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585961/ft1_filtered_4FGL_J0739.2+0137_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/585961/ltcube_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.fits outfile=/scratch/kocevski/585961/expmap_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.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/585961/ltcube_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.fits
.....................!
real 191.63
user 186.34
sys 4.96

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/585961/ft1_filtered_4FGL_J0739.2+0137_daily_bin149.fits scfile=/scratch/kocevski/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits outfile=/scratch/kocevski/585961/cmap_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.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.98
user 0.36
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585961/ft1_filtered_4FGL_J0739.2+0137_daily_bin149.fits scfile=/scratch/kocevski/585961/ft2_4FGL_J0739.2+0137_daily_bin149.fits outfile=/scratch/kocevski/585961/cmap_HighResolution_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.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.98
user 0.38
sys 0.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9235       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11135E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2698       1.0000         .10000E-03   10000.    
     5 'norm      '    .63717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.708       1.0000         .10000E-03   10000.    
    12 'norm      '    9.4651       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65556       1.0000         .10000E-03   10000.    
    14 'norm      '    20.440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9324       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.997       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4201       1.0000         .10000E-03   10000.    
    20 'norm      '    6.6539       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5409       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1338       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2214       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98138       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=   8076.927     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3007 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9235        9.0712        .85567E-06    .20528E-03
   2  norm          .10000E-03    10.526       -.65833E-07** at limit **
   3  Prefactor     .10004E-03    250.85       -.17189E-04** at limit **
   4  norm          7.2709        5.9329        .20430E-06    .31850E-03
   5  norm          .63591        1.6511       -.27907E-06   -.89345E-04
   6  Prefactor     .10000E-03    19.169        .18346E-06** at limit **
   7  Prefactor     7.6472        9.8752        .35723E-06    .57595E-04
   8  Prefactor     .15072        26.472       -.29889E-05    .27971E-03
   9  Prefactor     .10000E-03    30.704       -.36491E-06** at limit **
  10  norm          1.0445        1.2794        .32000E-07    .29810E-05
  11  Prefactor     13.713        23.440        .34773E-06    .15148E-04
  12  norm          9.4705        19.973        .14012E-06   -.37652E-05
  13  Prefactor     .65482        3.5398       -.30303E-08    .14608E-03
  14  norm          20.365        19.458        .34022E-06    .56722E-04
  15  Prefactor     .47793        24.399       -.31599E-05    .26271E-03
  16  Prefactor     1.9343        5.5176        .52291E-06    .84096E-03
  17  Prefactor     34.012        41.514        .14211E-06    .24649E-05
  18  norm          .10000E-03    3.5214        .52875E-08** at limit **
  19  norm          3.4205        3.1002        .54986E-07    .50698E-04
  20  norm          6.6546        2.6343        .46399E-07    .67256E-04
  21  norm          5.5445        27.257        .69524E-06    .12681E-04
  22  norm          8.1348        4.6912        .32439E-07   -.41011E-05
  23  Prefactor     .10000E-03    47.323        .23095E-05** at limit **
  24  Normalizat    1.2210        .22486       -.47538E-06   -.67981E-04
  25  Prefactor     .98143        .75426E-01   -.60909E-06   -.20652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92348
  norm       = 0.0001
  Prefactor  = 0.000100038
  norm       = 7.27093
  norm       = 0.635906
  Prefactor  = 0.0001
  Prefactor  = 7.64716
  Prefactor  = 0.150715
  Prefactor  = 0.0001
  norm       = 1.04446
  Prefactor  = 13.713
  norm       = 9.47051
  Prefactor  = 0.65482
  norm       = 20.365
  Prefactor  = 0.477932
  Prefactor  = 1.93426
  Prefactor  = 34.0119
  norm       = 0.0001
  norm       = 3.42053
  norm       = 6.65456
  norm       = 5.54446
  norm       = 8.1348
  Prefactor  = 0.000100001
  Normalizat = 1.221
  Prefactor  = 0.981433
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.927     FROM HESSE     STATUS=OK           447 CALLS     3454 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9235        9.1238        .13418E-03   -1.5110    
   2  norm          .10000E-03    10.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    250.42        .20690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2709        5.9722        .74381E-03   -1.5169    
   5  norm          .63591        1.5999        .17613E-03   -1.5548    
   6  Prefactor     .10000E-03    19.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6472        9.8749        .14505E-03   -1.5155    
   8  Prefactor     .15072        20.865        .91062E-01   -1.5630    
   9  Prefactor     .10000E-03    30.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0445        1.2804        .48807E-04   -1.5504    
  11  Prefactor     13.713        23.438        .10819E-03   -1.4967    
  12  norm          9.4705        19.980        .13026E-03   -1.5092    
  13  Prefactor     .65482        3.4915        .31567E-03   -1.5546    
  14  norm          20.365        20.437        .88591E-04   -1.4805    
  15  Prefactor     .47793        85.710        .48329E-02   -1.5570    
  16  Prefactor     1.9343        5.9735        .14938E-02   -1.5430    
  17  Prefactor     34.012        41.389        .68727E-04   -1.4541    
  18  norm          .10000E-03    3.5261        .16470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4205        3.0922        .14323E-03   -1.5338    
  20  norm          6.6546        2.6330        .87210E-04   -1.5192    
  21  norm          5.5445        26.856        .17068E-03   -1.5237    
  22  norm          8.1348        4.6947        .14058E-03   -1.5137    
  23  Prefactor     .10000E-03    47.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2210        .24373        .40367E-03   -.85956    
  25  Prefactor     .98143        .81540E-01    .15805E-03   -.93351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.098e-09
Minuit parameter uncertainties:
  1  9.12518
  2  9.93162e-07
  3  0.006182
  4  5.97271
  5  1.59996
  6  2.95142e-05
  7  9.87704
  8  3.54671
  9  1.78656e-05
  10  1.28039
  11  23.4537
  12  19.9942
  13  3.02415
  14  20.4437
  15  12.8179
  16  5.97529
  17  41.424
  18  1.63282e-06
  19  3.0923
  20  2.63301
  21  24.4225
  22  4.69487
  23  0.000443064
  24  0.243958
  25  0.0815506
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.044e+00  1.280e+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:  9.814e-01  8.155e-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.221e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 8.37e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/585961/likelihoodResults_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8076.87276302
delta logL = 0.054694697129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8076.86749073
delta logL = 0.0599669870835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91333       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8656       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98023       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=   8076.867     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91327        2.7145        .24255E-01   -.24855E-03
   2  alpha         1.8661        1.7935        .42965E-01   -.64769E-04
   3  Normalizat    1.2297        .20804        .90860E-01    .79740E-03
   4  Prefactor     .98024        .71475E-01    .46020E-01    .14774E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.913274
  alpha      = 1.86606
  Normalizat = 1.22965
  Prefactor  = 0.980243
 **********
 **   18 **HESSE 
 **********

 FCN=   8076.867     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91327        1.3247        .12817E-02   -1.5517    
   2  alpha         1.8661        1.1772        .17186E-02   -.25637    
   3  Normalizat    1.2297        .21377        .40242E-03   -.85691    
   4  Prefactor     .98024        .76107E-01    .15813E-03   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40749e-09
Minuit parameter uncertainties:
  1  1.32476
  2  1.22948
  3  0.213918
  4  0.0761149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585961': 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) = 8076.86749049
delta logL = 0.0599672273074

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  9.133e-01  1.325e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  1.866e+00  1.229e+00  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:  9.802e-01  7.611e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.230e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 114.820 1.622
Photon Index (Free Index): 1.87 +/- 1.23
Photon Flux (Free Index): 1.70e-08 +/- 3.10e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.47e-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/585961/cmap_HighResolution_277948801_278208001_4FGL_J0739.2+0137_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='1.00e-05', photon_flux_error='3.17e-08', dlogl='6.00e-02', energy_flux='8.37e-06', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-08-27 20:21:27.942327', photon_index_error2='1.23', photon_index2='1.87', ts='1.35', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.47e-05', EG='1.22', time_epoch_completed='1630120887.94', return_code='0', job_id='585961', GAL2='0.98', EG2='1.23', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.10e-08', ts2='1.46', photon_index='2.31' WHERE bin_id='149' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:21:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 585961: <4FGL_J0739.2+0137_daily_bin149> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin149 114.82 1.6216 277948801 278208001 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 :                                   835.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

