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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1157
RA = 114.82, Dec = 1.6216
tmin = 539222401, tmax = 539481601
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='593284', job_status='RUN', time_executed='2021-08-27 20:34:42.064282', time_epoch_executed='1630121682.06' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593284/ft1_4FGL_J0739.2+0137_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593284/ft1_4FGL_J0739.2+0137_daily_bin1157.fits outfile=/scratch/kocevski/593284/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1157.fits ra=114.82 dec=1.6216 rad=12.0 tmin=539222401.0 tmax=539481601.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.39
user 4.05
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.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/593284/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/593284/ft1_filtered_4FGL_J0739.2+0137_daily_bin1157.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.52
user 0.26
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593284/ft1_filtered_4FGL_J0739.2+0137_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/593284/ltcube_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.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/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits
.....................!
real 9.08
user 8.68
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593284/ft1_filtered_4FGL_J0739.2+0137_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/593284/ltcube_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.fits outfile=/scratch/kocevski/593284/expmap_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.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/593284/ltcube_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.fits
.....................!
real 143.69
user 140.40
sys 3.02

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/593284/ft1_filtered_4FGL_J0739.2+0137_daily_bin1157.fits scfile=/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits outfile=/scratch/kocevski/593284/cmap_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.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.60
user 0.28
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593284/ft1_filtered_4FGL_J0739.2+0137_daily_bin1157.fits scfile=/scratch/kocevski/593284/ft2_4FGL_J0739.2+0137_daily_bin1157.fits outfile=/scratch/kocevski/593284/cmap_HighResolution_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.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.56
user 0.30
sys 0.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8464       1.0000         .10000E-03   10000.    
    14 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24253E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.791       1.0000         .10000E-03   10000.    
    18 'norm      '    .11214E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8052       1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0545       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=   5663.596     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2904 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.164       -.14001E-05** at limit **
   2  norm          27.383        33.386        .29248E-06    .19248E-04
   3  Prefactor     .10000E-03    28.850       -.83268E-06** at limit **
   4  norm          .10000E-03    2.4676       -.65200E-08** at limit **
   5  norm          10.533        3.6174        .51457E-07    .56740E-04
   6  Prefactor     .10000E-03    30.218        .84128E-06** at limit **
   7  Prefactor     20.288        14.468        .35812E-07    .58572E-05
   8  Prefactor     .10000E-03    8.0164        .14943E-07** at limit **
   9  Prefactor     .10000E-03    63.064       -.13002E-05** at limit **
  10  norm          4.0593        2.5412        .29746E-07    .10999E-04
  11  Prefactor     .10000E-03    30.698        .15442E-05** at limit **
  12  norm          2.3695        32.137        .72070E-05    .17535E-04
  13  Prefactor     1.8435        5.2342        .42525E-06    .56423E-04
  14  norm          .10000E-03    21.858       -.24763E-05** at limit **
  15  Prefactor     .10016E-03    13.267       -.91123E-06** at limit **
  16  Prefactor     18.577        13.681       -.21449E-06   -.53227E-04
  17  Prefactor     40.782        38.608        .53012E-06   -.35990E-05
  18  norm          .10000E-03    17.559        .11133E-05** at limit **
  19  norm          2.8036        4.9384        .17619E-06   -.18873E-04
  20  norm          .10000E-03    1.3542        .35031E-07** at limit **
  21  norm          .10000E-03    12.153        .10847E-06** at limit **
  22  norm          .10000E-03    2.9197       -.41238E-07** at limit **
  23  Prefactor     .10000E-03    16.679        .12862E-05** at limit **
  24  Normalizat    .61198        .26341       -.10337E-05    .20337E-04
  25  Prefactor     1.0544        .85965E-01    .43923E-08    .81819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 27.3833
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.5332
  Prefactor  = 0.0001
  Prefactor  = 20.2885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05934
  Prefactor  = 0.0001
  norm       = 2.36951
  Prefactor  = 1.84347
  norm       = 0.0001
  Prefactor  = 0.000100164
  Prefactor  = 18.5768
  Prefactor  = 40.7817
  norm       = 0.0001
  norm       = 2.80363
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.611981
  Prefactor  = 1.05442
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.596     FROM HESSE     STATUS=OK           433 CALLS     3337 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.383        33.610        .76554E-04   -1.4661    
   3  Prefactor     .10000E-03    28.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4816        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.533        3.6105        .78795E-04   -1.5059    
   6  Prefactor     .10000E-03    30.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.288        14.453        .88924E-04   -1.4807    
   8  Prefactor     .10000E-03    8.0386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0593        2.5347        .90523E-04   -1.5305    
  11  Prefactor     .10000E-03    30.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3695        32.192        .13312E-02   -1.5400    
  13  Prefactor     1.8435        5.2113        .25985E-03   -1.5436    
  14  norm          .10000E-03    21.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    13.331        .87094E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.577        13.652        .92939E-04   -1.4846    
  17  Prefactor     40.782        38.665        .62762E-04   -1.4430    
  18  norm          .10000E-03    18.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8036        4.8866        .20356E-03   -1.5373    
  20  norm          .10000E-03    1.3659        .85150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9419        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61198        .26834        .50848E-03   -1.0748    
  25  Prefactor     1.0544        .89421E-01    .14424E-03   -.90937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31438e-11
Minuit parameter uncertainties:
  1  9.16655e-06
  2  33.6334
  3  1.08025e-06
  4  5.09293e-07
  5  3.61054
  6  3.75116e-06
  7  14.4558
  8  1.10398e-06
  9  6.29673e-05
  10  2.53472
  11  8.6157e-06
  12  17.4787
  13  5.21261
  14  1.58846e-05
  15  0.00296039
  16  13.654
  17  38.6892
  18  6.52977e-05
  19  4.88733
  20  3.96836e-07
  21  4.73251e-06
  22  2.12011e-06
  23  2.32808e-06
  24  0.268912
  25  0.0894336
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.059e+00  2.535e+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.054e+00  8.943e-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:  6.120e-01  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 2.03e-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) = 5663.5801878
delta logL = 0.0157683624411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5663.57946387
delta logL = 0.0164922961594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1310       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2088       1.0000          .0000       5.0000    
     3 'Normalizat'    .61668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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=   5663.579     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1310        89.887        .49582E-02   -.47385E-03
   2  alpha         2.2088        2.6391        .37486       -.22308E-04
   3  Normalizat    .61667        .24354        .11419        .33048E-04
   4  Prefactor     1.0537        .10567        .39700E-01   -.78918E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13097
  alpha      = 2.20877
  Normalizat = 0.61667
  Prefactor  = 1.05367
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.579     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1310        2.5987        .92036E-04   -1.5301    
   2  alpha         2.2088        .56423        .14638E-01   -.11676    
   3  Normalizat    .61667        .23177        .50672E-03   -1.0728    
   4  Prefactor     1.0537        .84334E-01    .14429E-03   -.90961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3993e-11
Minuit parameter uncertainties:
  1  2.59878
  2  0.569206
  3  0.232135
  4  0.0843443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593284': 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) = 5663.57946387
delta logL = 0.0164922977856

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.131e+00  2.599e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.209e+00  5.692e-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.054e+00  8.434e-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:  6.167e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.21 +/- 0.57
Photon Flux (Free Index): 9.46e-08 +/- 6.75e-08
Energy Flux (Free Index): 3.42e-05 +/- 2.39e-05

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/593284/cmap_HighResolution_539222401_539481601_4FGL_J0739.2+0137_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.42e-05', photon_flux_error='6.28e-08', dlogl='1.65e-02', energy_flux='3.25e-05', photon_flux2='9.46e-08', job_status='DONE', time_completed='2021-08-27 20:42:53.253926', photon_index_error2='0.57', photon_index2='2.21', ts='4.67', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='0.61', time_epoch_completed='1630122173.25', return_code='0', job_id='593284', GAL2='1.05', EG2='0.62', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='6.75e-08', ts2='4.70', photon_index='2.31' WHERE bin_id='1157' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:42:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 593284: <4FGL_J0739.2+0137_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1157 114.82 1.6216 539222401 539481601 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 :                                   465.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

