/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 224 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0729.1+5703_daily_bin1229
RA = 112.286, Dec = 57.0558
tmin = 557884801, tmax = 558144001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='359459', job_status='RUN', time_executed='2021-08-27 07:49:41.149962', time_epoch_executed='1630075781.15' WHERE source_name='4FGL J0729.1+5703' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359459/ft1_4FGL_J0729.1+5703_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359459/ft1_4FGL_J0729.1+5703_daily_bin1229.fits outfile=/scratch/kocevski/359459/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1229.fits ra=112.286 dec=57.0558 rad=12.0 tmin=557884801.0 tmax=558144001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.03
user 3.78
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/359459/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/359459/ltcube_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits
.....................!
real 12.03
user 11.56
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/359459/ltcube_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits outfile=/scratch/kocevski/359459/expmap_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/359459/ltcube_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits
.....................!
real 191.42
user 185.64
sys 5.21

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/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits outfile=/scratch/kocevski/359459/cmap_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits outfile=/scratch/kocevski/359459/cmap_HighResolution_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359459/Model_4FGL_J0729.1+5703_daily_bin1229.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits....................!
real 16.06
user 14.49
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits', '/scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits', expMap='/scratch/kocevski/359459/expmap_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits', expCube='/scratch/kocevski/359459/ltcube_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359459/Model_4FGL_J0729.1+5703_daily_bin1229.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/359459/ft1_filtered_4FGL_J0729.1+5703_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/359459/ft2_4FGL_J0729.1+5703_daily_bin1229.fits
Exposure map: /scratch/kocevski/359459/expmap_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits
Exposure cube: /scratch/kocevski/359459/ltcube_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359459/Model_4FGL_J0729.1+5703_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85027E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    38.541       1.0000         .10000E-03   10000.    
     6 'norm      '    28.680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50518E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92474E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    213.03       1.0000         .10000E-03   10000.    
    13 'Prefactor '    162.62       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86287       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70911E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.268       1.0000         .10000E-03   10000.    
    19 'norm      '    .14361E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0353       1.0000         .10000E-03   10000.    
    21 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27719E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .92826E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .30591       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .23093       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   195.4764     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2978 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6349.5        .95028E-04** at limit **
   2  Prefactor     .10000E-03    78.773        .11520E-05** at limit **
   3  Prefactor     .10000E-03    207.03        .50833E-05** at limit **
   4  Prefactor     .10000E-03    174.52       -.40548E-06** at limit **
   5  norm          39.341        43.830        .74975E-06    .24613E-04
   6  norm          31.119        42.941       -.19107E-05    .49267E-04
   7  Prefactor     .10000E-03    78.289       -.16278E-05** at limit **
   8  Prefactor     .10000E-03    23.900       -.28216E-05** at limit **
   9  Prefactor     .10000E-03    80.494       -.14391E-05** at limit **
  10  Prefactor     .10000E-03    69.984       -.56220E-06** at limit **
  11  norm          .10000E-03    43.027       -.25358E-06** at limit **
  12  Prefactor     120.78        178.07        .33060E-05   -.10242E-04
  13  Prefactor     162.68        226.83        .54488E-05   -.67515E-05
  14  Prefactor     .10000E-03    493.77        .28639E-05** at limit **
  15  norm          .10000E-03    4.1024        .24341E-07** at limit **
  16  Prefactor     .10000E-03    90.139       -.91310E-07** at limit **
  17  norm          .10000E-03    20.051        .49669E-07** at limit **
  18  Prefactor    10000.0        9044.9        .21044E-05** at limit **
  19  norm          .10000E-03    52.918       -.16393E-06** at limit **
  20  Prefactor     .10000E-03    325.24       -.48887E-06** at limit **
  21  norm          .10000E-03    33.440       -.16352E-07** at limit **
  22  norm          .10000E-03    17.059       -.65648E-07** at limit **
  23  Prefactor    10000.0        920.61        .16688E-06** at limit **
  24  Prefactor     .10000E-03    122.83       -.37660E-06** at limit **
  25  Prefactor     .10000E-03    78.285        .11771E-05** at limit **
  26  Prefactor     .10000E-03    325.50        .19885E-06** at limit **
  27  Prefactor     .10002E-03    6258.0       -.25736E-04** at limit **
  28  Normalizat    .10000E-01    .33036        .80025E-05** at limit **
  29  Prefactor     1.1147        .40331       -.15065E-04   -.34193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 39.3408
  norm       = 31.1195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 120.784
  Prefactor  = 162.682
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Normalizat = 0.01
  Prefactor  = 1.11469
 **********
 **   18 **HESSE 
 **********

 FCN=   195.4764     FROM HESSE     STATUS=OK           591 CALLS     3569 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6336.8        .10122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    75.953        .96475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    203.04        .12635E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    171.96        .94396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          39.341        43.786        .16140E-02   -1.4453    
   6  norm          31.119        42.907        .18702E-02   -1.4592    
   7  Prefactor     .10000E-03    78.144        .10576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    80.282        .10973E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    69.692        .94753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    43.037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     120.78        179.73        .69256E-03   -1.3505    
  13  Prefactor     162.68        227.37        .79063E-03   -1.3150    
  14  Prefactor     .10000E-03    494.26        .12672E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.1034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    87.178        .10486E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        9057.7        .13869E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    52.697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    325.22        .12391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    33.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        963.24        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    122.90        .91608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    78.274        .10405E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    325.17        .10451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    6252.8        .10118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .32135        .11161       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1147        .40360        .36764E-01   -.88998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48552e-11
Minuit parameter uncertainties:
  1  0.00617912
  2  0.000138539
  3  0.0011027
  4  5.40126e-05
  5  43.822
  6  42.9492
  7  0.000238465
  8  0.000145435
  9  0.000130177
  10  6.61827e-05
  11  2.30898e-05
  12  180.554
  13  228.612
  14  0.000887936
  15  1.01866e-06
  16  0.000108386
  17  1.72004e-06
  18  0.0101607
  19  1.85177e-05
  20  0.000161885
  21  4.20999e-06
  22  4.59018e-06
  23  0.000229783
  24  6.3469e-05
  25  0.000177537
  26  0.000224222
  27  0.0162157
  28  7.66158e-07
  29  0.404712
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  1.208e+02  1.806e+02  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.115e+00  4.047e-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:  1.000e-02  7.662e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 112.286 57.056
Photon Flux Upper Limit: 1.24e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359459/likelihoodResults_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 195.354623294
delta logL = 0.121753708028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 195.35186911
delta logL = 0.124507891967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    233.42       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9292       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1118       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=   195.3519     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      266 TOTAL
                     EDM=   .57E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     233.54        358.13        .13246E-03    .21618E-06
   2  Index         1.9288        .99411        .30584E-03   -.10803E-06
   3  Normalizat    .10000E-01    .32182        .24571E-02** at limit **
   4  Prefactor     1.1118        .39404        .17153E-03   -.15348E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 233.543
  Index      = 1.92882
  Normalizat = 0.01
  Prefactor  = 1.11182
 **********
 **   18 **HESSE 
 **********

 FCN=   195.3519     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .57E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     233.54        357.89        .26492E-04   -1.2640    
   2  Index         1.9288        .99346        .12233E-04   -.66142    
   3  Normalizat    .10000E-01    .32182        .49142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1118        .39404        .68611E-05   -.89090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72842e-14
Minuit parameter uncertainties:
  1  361.331
  2  1.00427
  3  7.8965e-08
  4  0.395082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359459': 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) = 195.351869009
delta logL = 0.124507993006

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  2.335e+02  3.613e+02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.929e+00  1.004e+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.112e+00  3.951e-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:  1.000e-02  7.897e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 112.286 57.056
Photon Index (Free Index): 1.93 +/- 1.00
Photon Flux (Free Index): 1.66e-07 +/- 2.39e-07
Energy Flux (Free Index): 1.38e-04 +/- 3.65e-04

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/359459/cmap_HighResolution_557884801_558144001_4FGL_J0729.1+5703_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-02', comment='SUCCESS', energy_flux2='1.38e-04', dlogl='1.25e-01', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-08-27 07:58:28.654108', photon_index_error2='1.00', photon_index2='1.93', ts='0.88', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.24e-06', energy_flux_error2='3.65e-04', EG='0.01', time_epoch_completed='1630076308.65', return_code='0', job_id='359459', GAL2='1.11', EG2='0.01', return_code2='0', photon_flux_error2='2.39e-07', ts2='1.13', photon_index='2.51' WHERE bin_id='1229' AND source_name='4FGL J0729.1+5703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 07:58:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 359459: <4FGL_J0729.1+5703_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0729.1+5703_daily_bin1229> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 27 07:45:47 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 07:45:48 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:45:48 2021
Terminated at Fri Aug 27 07:58:33 2021
Results reported at Fri Aug 27 07:58:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_daily_bin1229 112.286 57.0558 557884801 558144001 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 :                                   353.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             191.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            766 sec.

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

