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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1229
RA = 114.82, Dec = 1.6216
tmin = 557884801, tmax = 558144001
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='593387', job_status='RUN', time_executed='2021-08-27 20:36:15.569991', time_epoch_executed='1630121775.57' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593387/ft1_4FGL_J0739.2+0137_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593387/ft1_4FGL_J0739.2+0137_daily_bin1229.fits outfile=/scratch/kocevski/593387/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1229.fits ra=114.82 dec=1.6216 rad=12.0 tmin=557884801.0 tmax=558144001.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 12.83
user 3.82
sys 8.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.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/593387/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/593387/ft1_filtered_4FGL_J0739.2+0137_daily_bin1229.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 9.58
user 0.34
sys 9.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593387/ft1_filtered_4FGL_J0739.2+0137_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/593387/ltcube_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.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/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits
.....................!
real 22.46
user 11.89
sys 10.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593387/ft1_filtered_4FGL_J0739.2+0137_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/593387/ltcube_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.fits outfile=/scratch/kocevski/593387/expmap_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.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/593387/ltcube_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.fits
.....................!
real 200.85
user 184.93
sys 15.54

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/593387/ft1_filtered_4FGL_J0739.2+0137_daily_bin1229.fits scfile=/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits outfile=/scratch/kocevski/593387/cmap_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.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 9.21
user 0.38
sys 8.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593387/ft1_filtered_4FGL_J0739.2+0137_daily_bin1229.fits scfile=/scratch/kocevski/593387/ft2_4FGL_J0739.2+0137_daily_bin1229.fits outfile=/scratch/kocevski/593387/cmap_HighResolution_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.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 9.10
user 0.39
sys 8.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    52.434       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.642       1.0000         .10000E-03   10000.    
    12 'norm      '    43.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    146.73       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16227E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.582       1.0000         .10000E-03   10000.    
    18 'norm      '    8.6699       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3653       1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    49.235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .51179       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .53563       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=   660.2877     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     3341 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          52.420        59.963        .40305E-06   -.53519E-06
   2  norm          .10000E-03    49.515       -.93396E-07** at limit **
   3  Prefactor     .10000E-03    264.25        .10594E-04** at limit **
   4  norm          .10000E-03    15.982       -.11803E-06** at limit **
   5  norm          .10000E-03    11.180        .28053E-07** at limit **
   6  Prefactor     .10000E-03    177.82        .21693E-05** at limit **
   7  Prefactor     .10000E-03    20.668       -.26483E-07** at limit **
   8  Prefactor     72.295        65.392        .44197E-06    .53746E-05
   9  Prefactor     .10000E-03    478.90       -.73442E-05** at limit **
  10  norm          .10000E-03    6.0212       -.26509E-06** at limit **
  11  Prefactor     82.633        118.67       -.24035E-06    .25937E-05
  12  norm          43.474        58.289       -.68928E-07    .96453E-05
  13  Prefactor     .10000E-03    76.643        .12211E-05** at limit **
  14  norm          146.78        262.33        .31934E-05    .39080E-05
  15  Prefactor     .10000E-03    155.44       -.34688E-05** at limit **
  16  Prefactor     .10010E-03    569.49        .10638E-04** at limit **
  17  Prefactor     31.350        735.91       -.16259E-04   -.57612E-05
  18  norm          8.7230        182.99       -.18513E-04    .25564E-04
  19  norm          .10000E-03    8.4190        .75341E-06** at limit **
  20  norm          5.3637        5.0389       -.73231E-06    .98408E-04
  21  norm          .10000E-03    160.37       -.29986E-05** at limit **
  22  norm          49.225        49.338        .14396E-05    .12498E-04
  23  Prefactor     .10000E-03    348.99        .46335E-05** at limit **
  24  Normalizat    .51182        .80335       -.97230E-05    .90406E-05
  25  Prefactor     .53565        .19213        .31588E-06    .67886E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 52.4197
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.295
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.6329
  norm       = 43.4745
  Prefactor  = 0.0001
  norm       = 146.775
  Prefactor  = 0.0001
  Prefactor  = 0.000100101
  Prefactor  = 31.3497
  norm       = 8.72298
  norm       = 0.0001
  norm       = 5.36369
  norm       = 0.0001
  norm       = 49.2251
  Prefactor  = 0.000100002
  Normalizat = 0.511822
  Prefactor  = 0.535654
 **********
 **   18 **HESSE 
 **********

 FCN=   660.2877     FROM HESSE     STATUS=OK           419 CALLS     3760 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          52.420        61.031        .55388E-04   -1.4259    
   2  norm          .10000E-03    49.516        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    265.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.024        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.214        .83922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    177.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.673        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.295        65.539        .47213E-04   -1.4005    
   9  Prefactor     .10000E-03    478.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.0186        .61582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.633        118.52        .22092E-03   -1.3887    
  12  norm          43.474        58.238        .60798E-04   -1.4388    
  13  Prefactor     .10000E-03    76.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          146.78        261.75        .16633E-03   -1.3279    
  15  Prefactor     .10000E-03    155.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    621.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.350        757.48        .35650E-03   -1.4588    
  18  norm          8.7230        182.25        .13613E-03   -1.5117    
  19  norm          .10000E-03    8.5489        .73063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3637        5.0198        .51681E-04   -1.5245    
  21  norm          .10000E-03    160.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          49.225        49.301        .57150E-04   -1.4304    
  23  Prefactor     .10000E-03    350.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .51182        .81226        .55881E-03   -1.1187    
  25  Prefactor     .53565        .20215        .13844E-03   -1.1037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72328e-10
Minuit parameter uncertainties:
  1  61.1042
  2  1.50537e-07
  3  0.00167668
  4  1.30139e-05
  5  2.8686e-05
  6  0.000312476
  7  9.68916e-06
  8  65.6045
  9  0.000719764
  10  1.51186e-05
  11  118.863
  12  58.3148
  13  3.96374e-06
  14  263.864
  15  0.000393166
  16  0.016039
  17  312.747
  18  80.0228
  19  0.000102573
  20  5.02014
  21  8.93062e-05
  22  49.3416
  23  0.00151238
  24  0.832295
  25  0.202425
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.000e-04  1.512e-05  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:  5.357e-01  2.024e-01  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:  5.118e-01  8.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 114.820 1.622
Photon Flux Upper Limit: 8.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593387/likelihoodResults_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.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) = 660.288107741
delta logL = -0.000441029389322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 660.287667143
delta logL = -4.32239403381e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3117       1.0000          .0000       5.0000    
     3 'Normalizat'    .51124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53576       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=   660.2877     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0672        .61594E-03** at limit **
   2  alpha         2.1659        3.6741        .16520E-01    .98925E-08
   3  Normalizat    .51182        .67620        .55877E-03    .56027E-05
   4  Prefactor     .53566        .17650        .13844E-03    .73914E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.16586
  Normalizat = 0.511819
  Prefactor  = 0.535655
 **********
 **   18 **HESSE 
 **********

 FCN=   660.2877     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0591        .12319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1659        3.8325        .66080E-03   -.13406    
   3  Normalizat    .51182        .67617        .22351E-04   -1.1187    
   4  Prefactor     .53566        .17649        .27688E-04   -1.1037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52435e-11
Minuit parameter uncertainties:
  1  3.27239e-06
  2  432.57
  3  0.687491
  4  0.176671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593387': 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) = 660.287666656
delta logL = 5.54751977688e-08

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.000e-04  3.272e-06  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.166e+00  4.326e+02  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:  5.357e-01  1.767e-01  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:  5.118e-01  6.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 114.820 1.622

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/593387/cmap_HighResolution_557884801_558144001_4FGL_J0739.2+0137_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-04', job_status='DONE', photon_flux_upper_limit='8.49e-07', time_completed='2021-08-27 20:44:25.291256', job_id='593387', GAL2='0.54', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630122265.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='5.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1229' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:44:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 593387: <4FGL_J0739.2+0137_daily_bin1229> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1229 114.82 1.6216 557884801 558144001 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 :                                   624.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             202.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            830 sec.

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

