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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1018
RA = 114.82, Dec = 1.6216
tmin = 503193601, tmax = 503452801
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='592059', job_status='RUN', time_executed='2021-08-27 20:28:36.645153', time_epoch_executed='1630121316.65' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592059/ft1_4FGL_J0739.2+0137_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592059/ft1_4FGL_J0739.2+0137_daily_bin1018.fits outfile=/scratch/kocevski/592059/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1018.fits ra=114.82 dec=1.6216 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.80
user 4.82
sys 0.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592059/ft1_filtered_4FGL_J0739.2+0137_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/592059/ltcube_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.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/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits
.....................!
real 12.44
user 11.22
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592059/ft1_filtered_4FGL_J0739.2+0137_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/592059/ltcube_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.fits outfile=/scratch/kocevski/592059/expmap_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.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/592059/ltcube_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.fits
.....................!
real 190.78
user 184.77
sys 5.63

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/592059/ft1_filtered_4FGL_J0739.2+0137_daily_bin1018.fits scfile=/scratch/kocevski/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits outfile=/scratch/kocevski/592059/cmap_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.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 1.22
user 0.36
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592059/ft1_filtered_4FGL_J0739.2+0137_daily_bin1018.fits scfile=/scratch/kocevski/592059/ft2_4FGL_J0739.2+0137_daily_bin1018.fits outfile=/scratch/kocevski/592059/cmap_HighResolution_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.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 1.23
user 0.37
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3035       1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.721       1.0000         .10000E-03   10000.    
    10 'norm      '    10.495       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.649       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2244       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.472       1.0000         .10000E-03   10000.    
    18 'norm      '    .11680E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9939       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0424       1.0000         .10000E-03   10000.    
    21 'norm      '    .11984E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .30317       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87135       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0599       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=   8815.029     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2895 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3212       -.16773E-08** at limit **
   2  norm          .10000E-03    49.347       -.87945E-05** at limit **
   3  Prefactor     .10000E-03    45.758        .10925E-04** at limit **
   4  norm          3.3034        5.3741       -.61175E-06   -.50024E-03
   5  norm          .10000E-03    .62184       -.17672E-07** at limit **
   6  Prefactor     .10000E-03    12.683        .18160E-05** at limit **
   7  Prefactor     .10000E-03    9.3669       -.11625E-05** at limit **
   8  Prefactor     .10000E-03    6.7422        .37470E-06** at limit **
   9  Prefactor     38.717        31.189       -.38066E-05    .14419E-04
  10  norm          10.495        2.6706        .23026E-07    .11373E-03
  11  Prefactor     14.640        21.314       -.43501E-05    .16809E-05
  12  norm          .10000E-03    4.5329        .57675E-06** at limit **
  13  Prefactor     .10000E-03    1.9233       -.50201E-06** at limit **
  14  norm          .10000E-03    5.4222       -.18596E-06** at limit **
  15  Prefactor     6.2239        7.2255       -.13070E-06    .38382E-04
  16  Prefactor     .10000E-03    4.1166       -.14511E-07** at limit **
  17  Prefactor     24.462        36.183       -.11351E-04    .11789E-03
  18  norm          .10000E-03    27.165       -.11492E-04** at limit **
  19  norm          1.9940        1.7914       -.14046E-07    .13794E-03
  20  norm          3.0424        1.8912       -.10558E-06   -.19573E-03
  21  norm          .10001E-03    51.457       -.17233E-04** at limit **
  22  norm          .30471        2.3352       -.32442E-06   -.75108E-03
  23  Prefactor     .10000E-03    38.317        .25406E-04** at limit **
  24  Normalizat    .87149        .19871        .42597E-05    .13341E-03
  25  Prefactor     1.0599        .70059E-01   -.20017E-06    .53361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30341
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7165
  norm       = 10.4953
  Prefactor  = 14.6404
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.22394
  Prefactor  = 0.0001
  Prefactor  = 24.4622
  norm       = 0.0001
  norm       = 1.994
  norm       = 3.04238
  norm       = 0.000100006
  norm       = 0.304706
  Prefactor  = 0.0001
  Normalizat = 0.871488
  Prefactor  = 1.05987
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.029     FROM HESSE     STATUS=OK           421 CALLS     3316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3224        .13969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    50.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3034        5.3979        .22274E-03   -1.5344    
   5  norm          .10000E-03    .63549        .72251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.717        31.231        .64412E-04   -1.4463    
  10  norm          10.495        2.6704        .73469E-04   -1.5060    
  11  Prefactor     14.640        21.326        .10465E-03   -1.4943    
  12  norm          .10000E-03    4.5339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5308        .24992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.4266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2239        7.2183        .16090E-03   -1.5209    
  16  Prefactor     .10000E-03    4.1489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.462        35.852        .80974E-04   -1.4718    
  18  norm          .10000E-03    28.009        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9940        1.7909        .11528E-03   -1.5426    
  20  norm          3.0424        1.8866        .97976E-04   -1.5359    
  21  norm          .10001E-03    51.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .30471        5.4158        .27371E-02   -1.5598    
  23  Prefactor     .10000E-03    38.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87149        .20558        .43798E-03   -.97469    
  25  Prefactor     1.0599        .73712E-01    .15090E-03   -.90760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23903e-09
Minuit parameter uncertainties:
  1  1.66471e-07
  2  7.29111e-05
  3  5.96374e-05
  4  5.39871
  5  9.45963e-07
  6  1.43182e-06
  7  1.50587e-05
  8  7.52176e-06
  9  31.2437
  10  2.67048
  11  21.3367
  12  1.53064e-06
  13  2.1456e-05
  14  1.16728e-06
  15  7.21933
  16  1.07165e-08
  17  35.8835
  18  0.000177824
  19  1.7909
  20  1.88662
  21  0.00113922
  22  2.56906
  23  4.79682e-05
  24  0.205762
  25  0.0737195
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.050e+01  2.670e+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.060e+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:  8.715e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.89
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 6.61e-08
Energy Flux (Fixed Index): 8.41e-05 +/- 2.14e-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) = 8814.48492084
delta logL = 0.543941474778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8814.48343748
delta logL = 0.54542483238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.683       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0404       1.0000          .0000       5.0000    
     3 'Normalizat'    .90343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0551       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=   8814.483     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.683        2.9643        .30646E-02    .28842E-02
   2  alpha         2.0404        .25669        .21278       -.15761E-04
   3  Normalizat    .90340        .18334        .97405E-01    .53046E-04
   4  Prefactor     1.0551        .68020E-01    .39619E-01   -.41568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6827
  alpha      = 2.04041
  Normalizat = 0.903401
  Prefactor  = 1.05513
 **********
 **   18 **HESSE 
 **********

 FCN=   8814.483     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.683        2.8415        .77604E-04   -1.5054    
   2  alpha         2.0404        .25755        .89719E-02   -.18489    
   3  Normalizat    .90340        .19311        .43162E-03   -.96341    
   4  Prefactor     1.0551        .71438E-01    .15123E-03   -.90914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95896e-10
Minuit parameter uncertainties:
  1  2.84157
  2  0.258028
  3  0.193257
  4  0.0714441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592059': 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) = 8814.48343746
delta logL = 0.545424849432

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  1.068e+01  2.842e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.040e+00  2.580e-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.055e+00  7.144e-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:  9.034e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.80
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.04 +/- 0.26
Photon Flux (Free Index): 2.19e-07 +/- 7.11e-08
Energy Flux (Free Index): 9.81e-05 +/- 3.11e-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/592059/cmap_HighResolution_503193601_503452801_4FGL_J0739.2+0137_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='9.81e-05', photon_flux_error='6.61e-08', dlogl='5.45e-01', energy_flux='8.41e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-08-27 20:41:33.912675', photon_index_error2='0.26', photon_index2='2.04', ts='44.89', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.11e-05', EG='0.87', time_epoch_completed='1630122093.91', return_code='0', job_id='592059', GAL2='1.06', EG2='0.90', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.11e-08', ts2='45.80', photon_index='2.31' WHERE bin_id='1018' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 592059: <4FGL_J0739.2+0137_daily_bin1018> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1018> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 20:25:32 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:25:34 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:25:34 2021
Terminated at Fri Aug 27 20:41:34 2021
Results reported at Fri Aug 27 20:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1018 114.82 1.6216 503193601 503452801 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 :                                   781.49 sec.
    Max Memory :                                 1182 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

