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


Performing analysis on: 4FGL_J0729.1+5703_daily_bin1580
RA = 112.286, Dec = 57.0558
tmin = 648864001, tmax = 649123201
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='362329', job_status='RUN', time_executed='2021-08-27 07:57:08.047705', time_epoch_executed='1630076228.05' WHERE source_name='4FGL J0729.1+5703' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362329/ft1_4FGL_J0729.1+5703_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362329/ft1_4FGL_J0729.1+5703_daily_bin1580.fits outfile=/scratch/kocevski/362329/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1580.fits ra=112.286 dec=57.0558 rad=12.0 tmin=648864001.0 tmax=649123201.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 7.29
user 2.80
sys 4.04

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.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/362329/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.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 5.15
user 0.35
sys 4.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/362329/ltcube_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.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/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits
.....................!
real 17.42
user 11.97
sys 5.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/362329/ltcube_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits outfile=/scratch/kocevski/362329/expmap_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.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/362329/ltcube_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits
.....................!
real 199.61
user 186.52
sys 9.91

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
Added 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J0729.1+5703 @ 112.286 57.0558

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits outfile=/scratch/kocevski/362329/cmap_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.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=112.286 yref=57.0558 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 4.87
user 0.36
sys 4.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits outfile=/scratch/kocevski/362329/cmap_HighResolution_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.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=112.286 yref=57.0558 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 4.79
user 0.39
sys 4.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362329/Model_4FGL_J0729.1+5703_daily_bin1580.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
Working on...
/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits.....................!
real 73.93
user 63.79
sys 6.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits', '/scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits', expMap='/scratch/kocevski/362329/expmap_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits', expCube='/scratch/kocevski/362329/ltcube_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362329/Model_4FGL_J0729.1+5703_daily_bin1580.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0729.1+5703'

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  3.521e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/362329/ft1_filtered_4FGL_J0729.1+5703_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/362329/ft2_4FGL_J0729.1+5703_daily_bin1580.fits
Exposure map: /scratch/kocevski/362329/expmap_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits
Exposure cube: /scratch/kocevski/362329/ltcube_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362329/Model_4FGL_J0729.1+5703_daily_bin1580.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) = 5133.19673129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3667       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.186       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1523       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7019       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1559.7       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11738E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77302       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5133.150     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3788 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.872       -.39315E-05** at limit **
   2  Prefactor     5.9711        6.6481       -.20322E-06   -.84135E-04
   3  Prefactor     .10000E-03    18.587        .22963E-06** at limit **
   4  Prefactor     .10000E-03    13.339        .87198E-05** at limit **
   5  norm          .10000E-03    1.6966        .39655E-06** at limit **
   6  norm          .10000E-03    2.3416        .17912E-06** at limit **
   7  Prefactor     .10000E-03    9.6040        .32554E-06** at limit **
   8  Prefactor     16.213        11.537       -.16244E-06   -.46604E-04
   9  Prefactor     17.458        23.134        .29776E-06   -.85683E-05
  10  Prefactor     .10000E-03    11.977       -.15409E-05** at limit **
  11  norm          .10000E-03    7.2681       -.14775E-06** at limit **
  12  Prefactor     65.770        44.924       -.28812E-05    .15621E-04
  13  Prefactor     64.616        70.881       -.51034E-05   -.47263E-05
  14  Prefactor     .10000E-03    110.16       -.14347E-06** at limit **
  15  norm          .10000E-03    .76574       -.73264E-07** at limit **
  16  Prefactor     6.3675        39.866        .41612E-05   -.60327E-05
  17  norm          .10000E-03    2.9574       -.16593E-06** at limit **
  18  Prefactor     .10000E-03    7.3486       -.36734E-06** at limit **
  19  norm          3.8389        3.3089       -.30023E-10   -.14221E-03
  20  Prefactor     .10000E-03    13.939       -.31338E-05** at limit **
  21  norm          .10000E-03    3.5056       -.37493E-06** at limit **
  22  norm          12.186        7.8060        .28762E-06    .33500E-04
  23  Prefactor     1.1524        .97783        .35481E-07   -.29720E-04
  24  Prefactor     8.7155        27.608       -.40003E-06   -.72163E-05
  25  Prefactor     .10000E-03    32.956        .10712E-06** at limit **
  26  Prefactor     1559.7        957.02       -.18711E-04    .29838E-05
  27  Prefactor     .10000E-03    285.40       -.28908E-05** at limit **
  28  Normalizat    .77320        .23518        .38669E-05   -.71999E-04
  29  Prefactor     .96726        .12525       -.95215E-06    .14809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.97108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2126
  Prefactor  = 17.4579
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.7696
  Prefactor  = 64.6161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.3675
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.83891
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.1856
  Prefactor  = 1.15239
  Prefactor  = 8.7155
  Prefactor  = 0.000100001
  Prefactor  = 1559.68
  Prefactor  = 0.0001
  Normalizat = 0.773205
  Prefactor  = 0.967264
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.150     FROM HESSE     STATUS=OK           543 CALLS     4331 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9711        6.6538        .16434E-03   -1.5219    
   3  Prefactor     .10000E-03    18.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7075        .91112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3452        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.213        11.532        .99470E-04   -1.4902    
   9  Prefactor     17.458        23.115        .95858E-04   -1.4872    
  10  Prefactor     .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     65.770        44.962        .49481E-04   -1.4084    
  13  Prefactor     64.616        70.430        .49921E-04   -1.4099    
  14  Prefactor     .10000E-03    110.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .78759        .12209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3675        39.267        .15907E-03   -1.5203    
  17  norm          .10000E-03    2.9612        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.3557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8389        3.3079        .11367E-03   -1.5316    
  20  Prefactor     .10000E-03    13.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5047        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.186        7.8081        .11475E-03   -1.5010    
  23  Prefactor     1.1524        .96515        .62862E-04   -1.5493    
  24  Prefactor     8.7155        27.505        .13588E-03   -1.5117    
  25  Prefactor     .10000E-03    32.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1559.7        953.00        .55122E-04   -.75882    
  27  Prefactor     .10000E-03    285.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77320        .26820        .33670E-03   -1.0107    
  29  Prefactor     .96726        .14428        .17411E-03   -.93829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57269e-10
Minuit parameter uncertainties:
  1  1.5202e-05
  2  6.65466
  3  1.8592e-05
  4  1.17523e-05
  5  1.36773e-06
  6  6.02601e-07
  7  4.37769e-06
  8  11.5335
  9  23.1273
  10  2.37009e-05
  11  1.9092e-06
  12  44.9857
  13  70.521
  14  5.68055e-05
  15  8.01612e-06
  16  31.6553
  17  3.12619e-07
  18  2.87018e-06
  19  3.30808
  20  1.07717e-05
  21  4.86414e-06
  22  7.80878
  23  0.965168
  24  27.5445
  25  0.00030643
  26  964.309
  27  0.000371432
  28  0.268663
  29  0.144336
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  6.577e+01  4.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.673e-01  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  7.732e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 112.286 57.056
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 6.96e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.00e-05

TS (Fixed Index): 3.47
Ra Dec: 112.286 57.056
Photon Flux Upper Limit: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362329/likelihoodResults_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.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) = 5132.22322926
delta logL = 0.926813615146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5132.21008061
delta logL = 0.939962259486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.272       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5476       1.0000          .0000       10.000    
     3 'Normalizat'    .66201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5132.210     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      283 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.216        185.06        .21218E-02    .15771E-03
   2  Index         3.5496        2.8942        .92934E-01    .20354E-03
   3  Normalizat    .66098        .10645        .81679E-01    .26927E-03
   4  Prefactor     1.0094        .54480E-01    .43473E-01    .95507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2163
  Index      = 3.54961
  Normalizat = 0.660979
  Prefactor  = 1.00944
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.210     FROM HESSE     STATUS=OK            31 CALLS      314 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.216        52.698        .84873E-04   -1.4765    
   2  Index         3.5496        1.4123        .37177E-02   -.29431    
   3  Normalizat    .66098        .27090        .36169E-03   -1.0545    
   4  Prefactor     1.0094        .14917        .17082E-03   -.92416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92814e-10
Minuit parameter uncertainties:
  1  52.8086
  2  1.43364
  3  0.271445
  4  0.149229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362329': 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) = 5132.21007125
delta logL = 0.939971619297

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  2.222e+01  5.281e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.550e+00  1.434e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.009e+00  1.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  6.610e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.85
Ra Dec: 112.286 57.056
Photon Index (Free Index): 3.55 +/- 1.43
Photon Flux (Free Index): 1.95e-07 +/- 1.10e-07
Energy Flux (Free Index): 3.20e-05 +/- 1.71e-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/362329/cmap_HighResolution_648864001_649123201_4FGL_J0729.1+5703_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.20e-05', photon_flux_error='6.96e-08', dlogl='9.40e-01', energy_flux='2.92e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-08-27 08:12:10.941953', photon_index_error2='1.43', photon_index2='3.55', ts='3.47', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.41e-07', energy_flux_error2='1.71e-05', EG='0.77', time_epoch_completed='1630077130.94', return_code='0', job_id='362329', GAL2='1.01', EG2='0.66', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='1.10e-07', ts2='5.85', photon_index='2.51' WHERE bin_id='1580' AND source_name='4FGL J0729.1+5703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 08:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 362329: <4FGL_J0729.1+5703_daily_bin1580> in cluster <slac> Done

Job <4FGL_J0729.1+5703_daily_bin1580> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 07:55:45 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 07:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 07:55:47 2021
Terminated at Fri Aug 27 08:12:12 2021
Results reported at Fri Aug 27 08:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_daily_bin1580 112.286 57.0558 648864001 649123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0729.1+5703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   951.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

