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


Performing analysis on: 4FGL_J0729.1+5703_daily_bin1401
RA = 112.286, Dec = 57.0558
tmin = 602467201, tmax = 602726401
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='360822', job_status='RUN', time_executed='2021-08-27 07:52:06.407358', time_epoch_executed='1630075926.41' WHERE source_name='4FGL J0729.1+5703' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360822

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360822/ft1_4FGL_J0729.1+5703_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360822/ft1_4FGL_J0729.1+5703_daily_bin1401.fits outfile=/scratch/kocevski/360822/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1401.fits ra=112.286 dec=57.0558 rad=12.0 tmin=602467201.0 tmax=602726401.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.90
user 2.98
sys 1.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.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/360822/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.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 2.26
user 0.33
sys 1.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/360822/ltcube_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.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/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits
.....................!
real 14.47
user 12.08
sys 2.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/360822/ltcube_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits outfile=/scratch/kocevski/360822/expmap_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.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/360822/ltcube_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits
.....................!
real 196.91
user 189.28
sys 6.69

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/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits outfile=/scratch/kocevski/360822/cmap_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.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 2.29
user 0.39
sys 1.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits outfile=/scratch/kocevski/360822/cmap_HighResolution_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.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 2.21
user 0.38
sys 1.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360822/Model_4FGL_J0729.1+5703_daily_bin1401.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/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits.....................!
real 54.27
user 50.69
sys 3.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits', '/scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits', expMap='/scratch/kocevski/360822/expmap_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits', expCube='/scratch/kocevski/360822/ltcube_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360822/Model_4FGL_J0729.1+5703_daily_bin1401.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/360822/ft1_filtered_4FGL_J0729.1+5703_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/360822/ft2_4FGL_J0729.1+5703_daily_bin1401.fits
Exposure map: /scratch/kocevski/360822/expmap_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits
Exposure cube: /scratch/kocevski/360822/ltcube_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360822/Model_4FGL_J0729.1+5703_daily_bin1401.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) = 3915.57128669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.481       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.291       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.0131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15492E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.491       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6465       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2084       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .98403       1.0000         .10000E-03   10000.    
    22 'norm      '    5.2498       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8991       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.355       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70696       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0010       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=   3915.563     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     4263 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.105        42.013       -.35144E-05   -.27153E-06
   2  Prefactor     51.477        19.999        .12522E-05    .20214E-04
   3  Prefactor     7.1507        72.406        .57559E-07   -.25815E-05
   4  Prefactor     .10000E-03    63.652        .79495E-05** at limit **
   5  norm          .10000E-03    5.3663       -.22147E-06** at limit **
   6  norm          .10000E-03    2.3818        .10494E-06** at limit **
   7  Prefactor     16.289        22.693        .28904E-05    .13274E-05
   8  Prefactor     11.777        11.092       -.67021E-06    .52914E-04
   9  Prefactor     .10000E-03    22.499       -.15350E-04** at limit **
  10  Prefactor     .10000E-03    12.702       -.19054E-06** at limit **
  11  norm          9.0144        14.251        .12887E-06    .39847E-05
  12  Prefactor     52.364        50.462       -.12216E-05    .63233E-04
  13  Prefactor     49.980        70.115        .14729E-04    .74464E-04
  14  Prefactor     .10000E-03    471.02       -.28749E-04** at limit **
  15  norm          .10000E-03    .83400       -.16321E-07** at limit **
  16  Prefactor     30.482        34.303        .25334E-05    .10519E-03
  17  norm          2.6473        5.3359       -.97495E-06   -.17301E-03
  18  Prefactor     .10000E-03    24.969        .15293E-04** at limit **
  19  norm          7.2088        6.6668        .56869E-05   -.13316E-03
  20  Prefactor     .10000E-03    29.119        .19083E-04** at limit **
  21  norm          .99509        26.533       -.85959E-05    .16811E-03
  22  norm          5.2489        6.2259        .13681E-05    .12289E-02
  23  Prefactor     1.8993        2.3770       -.77682E-06   -.60798E-03
  24  Prefactor     .10000E-03    13.779       -.36520E-08** at limit **
  25  Prefactor     14.353        21.821        .56253E-05    .57169E-03
  26  Prefactor     .10000E-03    17.657        .21409E-05** at limit **
  27  Prefactor     .10000E-03    32.072       -.21848E-04** at limit **
  28  Normalizat    .70738        .32089       -.95722E-05    .25840E-03
  29  Prefactor     1.0008        .16364        .15839E-05    .21988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.105
  Prefactor  = 51.4769
  Prefactor  = 7.15074
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2888
  Prefactor  = 11.7766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01439
  Prefactor  = 52.3636
  Prefactor  = 49.9796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.4817
  norm       = 2.64729
  Prefactor  = 0.0001
  norm       = 7.20883
  Prefactor  = 0.0001
  norm       = 0.995088
  norm       = 5.24889
  Prefactor  = 1.89934
  Prefactor  = 0.0001
  Prefactor  = 14.3528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.707376
  Prefactor  = 1.00079
 **********
 **   18 **HESSE 
 **********

 FCN=   3915.563     FROM HESSE     STATUS=OK           549 CALLS     4812 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.105        42.112        .55569E-04   -1.4263    
   2  Prefactor     51.477        19.984        .55896E-04   -1.4272    
   3  Prefactor     7.1507        72.022        .14998E-03   -1.5173    
   4  Prefactor     .10000E-03    64.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.4412        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3836        .94305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.289        22.700        .99231E-04   -1.4901    
   8  Prefactor     11.777        11.085        .11673E-03   -1.5021    
   9  Prefactor     .10000E-03    22.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.0144        14.247        .13350E-03   -1.5107    
  12  Prefactor     52.364        50.469        .55417E-04   -1.4259    
  13  Prefactor     49.980        70.126        .56736E-04   -1.4293    
  14  Prefactor     .10000E-03    471.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .84824        .55667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.482        34.262        .72560E-04   -1.4603    
  17  norm          2.6473        5.3125        .19686E-03   -1.5383    
  18  Prefactor     .10000E-03    24.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2088        6.5981        .13972E-03   -1.5171    
  20  Prefactor     .10000E-03    28.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .99509        78.960        .45083E-02   -1.5508    
  22  norm          5.2489        6.3740        .13671E-03   -1.5250    
  23  Prefactor     1.8993        2.3573        .10296E-03   -1.5432    
  24  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.353        21.574        .10571E-03   -1.4950    
  26  Prefactor     .10000E-03    17.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    32.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70738        .35567        .39696E-03   -1.0360    
  29  Prefactor     1.0008        .18624        .18689E-03   -.92703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93494e-09
Minuit parameter uncertainties:
  1  42.1365
  2  19.9868
  3  45.4585
  4  0.000189894
  5  2.44704e-05
  6  2.05815e-06
  7  22.7122
  8  11.0872
  9  7.61624e-06
  10  4.37487e-06
  11  14.2526
  12  50.5101
  13  70.2419
  14  8.41518e-05
  15  1.5788e-06
  16  34.2842
  17  5.31345
  18  6.38776e-05
  19  6.59879
  20  0.000135968
  21  17.7516
  22  6.37485
  23  2.35743
  24  6.07966e-05
  25  21.5862
  26  5.9927e-06
  27  2.62672e-05
  28  0.35684
  29  0.186362
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  5.236e+01  5.051e+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:  1.001e+00  1.864e-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.074e-01  3.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 112.286 57.056
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.11e-08 +/- 7.81e-08
Energy Flux (Fixed Index): 2.33e-05 +/- 2.24e-05

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

Saving results to:
/scratch/kocevski/360822/likelihoodResults_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.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) = 3915.55524391
delta logL = 0.00726012070072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3915.55082371
delta logL = 0.0116803272886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.746       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3869       1.0000          .0000       10.000    
     3 'Normalizat'    .71701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99684       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3915.551     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      257 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.749        65.156        .52793E-04   -.12434E-03
   2  Index         2.3870        .80818        .80316E-02   -.88837E-04
   3  Normalizat    .71656        .33125        .39456E-03    .32243E-04
   4  Prefactor     .99708        .18115        .18719E-03    .12738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.7485
  Index      = 2.38702
  Normalizat = 0.716559
  Prefactor  = 0.997076
 **********
 **   18 **HESSE 
 **********

 FCN=   3915.551     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.749        63.235        .10559E-04   -1.4187    
   2  Index         2.3870        .78336        .32126E-03   -.54989    
   3  Normalizat    .71656        .33107        .15782E-04   -1.0324    
   4  Prefactor     .99708        .18107        .37438E-04   -.92827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66176e-10
Minuit parameter uncertainties:
  1  63.309
  2  0.787834
  3  0.331999
  4  0.181181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360822': 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) = 3915.55082275
delta logL = 0.0116812849001

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  5.775e+01  6.331e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.387e+00  7.878e-01  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:  9.971e-01  1.812e-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.166e-01  3.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 112.286 57.056
Photon Index (Free Index): 2.39 +/- 0.79
Photon Flux (Free Index): 7.44e-08 +/- 8.49e-08
Energy Flux (Free Index): 2.48e-05 +/- 2.63e-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/360822/cmap_HighResolution_602467201_602726401_4FGL_J0729.1+5703_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-02', comment='SUCCESS', photon_flux='8.11e-08', energy_flux2='2.48e-05', photon_flux_error='7.81e-08', dlogl='1.17e-02', energy_flux='2.33e-05', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-08-27 08:04:41.956009', photon_index_error2='0.79', photon_index2='2.39', ts='1.54', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.51e-07', energy_flux_error2='2.63e-05', EG='0.71', time_epoch_completed='1630076681.96', return_code='0', job_id='360822', GAL2='1.00', EG2='0.72', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='8.49e-08', ts2='1.54', photon_index='2.51' WHERE bin_id='1401' AND source_name='4FGL J0729.1+5703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 08:04:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 360822: <4FGL_J0729.1+5703_daily_bin1401> in cluster <slac> Done

Job <4FGL_J0729.1+5703_daily_bin1401> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 07:50:47 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 07:50:49 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:50:49 2021
Terminated at Fri Aug 27 08:04:42 2021
Results reported at Fri Aug 27 08:04:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_daily_bin1401 112.286 57.0558 602467201 602726401 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

