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


Performing analysis on: 4FGL_J0729.1+5703_daily_bin1390
RA = 112.286, Dec = 57.0558
tmin = 599616001, tmax = 599875201
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='360804', job_status='RUN', time_executed='2021-08-27 07:51:08.665784', time_epoch_executed='1630075868.67' WHERE source_name='4FGL J0729.1+5703' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360804

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360804/ft1_4FGL_J0729.1+5703_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits


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

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

Done.
real 5.61
user 2.32
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360804/ft1_filtered_4FGL_J0729.1+5703_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/360804/ltcube_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.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/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits
.....................!
real 14.65
user 12.20
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360804/ft1_filtered_4FGL_J0729.1+5703_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/360804/ltcube_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.fits outfile=/scratch/kocevski/360804/expmap_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.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/360804/ltcube_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.fits
.....................!
real 193.52
user 185.69
sys 5.19

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/360804/ft1_filtered_4FGL_J0729.1+5703_daily_bin1390.fits scfile=/scratch/kocevski/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits outfile=/scratch/kocevski/360804/cmap_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.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.80
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360804/ft1_filtered_4FGL_J0729.1+5703_daily_bin1390.fits scfile=/scratch/kocevski/360804/ft2_4FGL_J0729.1+5703_daily_bin1390.fits outfile=/scratch/kocevski/360804/cmap_HighResolution_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.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.77
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32401E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7527       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    207.72       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42423E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    114.50       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6060       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87667E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .84731       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4301       1.0000         .10000E-03   10000.    
    22 'norm      '    6.1144       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15523E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.009       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8562       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.831       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68851       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3611       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=   2469.990     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4298 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1042.1       -.27193E-04** at limit **
   2  Prefactor     .10000E-03    119.31        .21033E-05** at limit **
   3  Prefactor     10.933        897.42        .13496E-03    .11174E-05
   4  Prefactor     .10000E-03    50.381        .26351E-05** at limit **
   5  norm          9.7603        82.189        .17225E-04   -.88786E-05
   6  norm          .10000E-03    28.628        .13746E-04** at limit **
   7  Prefactor     .10000E-03    16.398       -.99053E-06** at limit **
   8  Prefactor     .10000E-03    29.122       -.14533E-04** at limit **
   9  Prefactor     207.64        166.92       -.42905E-04   -.54128E-04
  10  Prefactor     .10000E-03    56.473       -.10587E-04** at limit **
  11  norm          .10000E-03    53.512        .45592E-05** at limit **
  12  Prefactor     52.342        100.97        .38065E-04   -.25408E-04
  13  Prefactor     .10000E-03    149.60       -.19482E-04** at limit **
  14  Prefactor     114.73        130.46        .14332E-03   -.72985E-05
  15  norm          2.6062        2.6957       -.87537E-06   -.79212E-03
  16  Prefactor     .10347E-03    74.451        .14081E-04** at limit **
  17  norm          .10000E-03    12.382        .27422E-06** at limit **
  18  Prefactor     .10000E-03    11.761       -.46164E-07** at limit **
  19  norm          .84574        5.4443        .54269E-06   -.55509E-03
  20  Prefactor     .10000E-03    54.057        .27632E-05** at limit **
  21  norm          3.4306        8.6561        .58553E-05   -.24616E-03
  22  norm          6.1150        4.6052       -.64227E-06   -.33183E-03
  23  Prefactor     .32760E-01    1.4163        .45168E-06   -.19062E-03
  24  Prefactor     .10000E-03    15.278        .51880E-06** at limit **
  25  Prefactor     14.015        15.709        .20332E-05   -.17233E-03
  26  Prefactor     2.8566        11.610       -.16307E-05   -.14923E-03
  27  Prefactor     21.829        29.833        .47418E-05   -.33369E-04
  28  Normalizat    .68797        .42966       -.22865E-04   -.25728E-03
  29  Prefactor     1.3611        .26293       -.10392E-05   -.43431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 10.9326
  Prefactor  = 0.0001
  norm       = 9.76025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 207.64
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 52.3417
  Prefactor  = 0.000100001
  Prefactor  = 114.726
  norm       = 2.60619
  Prefactor  = 0.000103474
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.845738
  Prefactor  = 0.0001
  norm       = 3.4306
  norm       = 6.11505
  Prefactor  = 0.0327604
  Prefactor  = 0.0001
  Prefactor  = 14.0154
  Prefactor  = 2.85657
  Prefactor  = 21.8294
  Normalizat = 0.68797
  Prefactor  = 1.36105
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.990     FROM HESSE     STATUS=OK           555 CALLS     4853 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1061.5        .19743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    119.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.933        892.97        .12147E-03   -1.5047    
   4  Prefactor     .10000E-03    50.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7603        82.263        .12832E-03   -1.5083    
   6  norm          .10000E-03    28.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     207.64        166.87        .14023E-03   -1.2816    
  10  Prefactor     .10000E-03    56.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    53.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.342        100.70        .55467E-04   -1.4260    
  13  Prefactor     .10000E-03    149.66        .21236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     114.73        130.38        .18799E-03   -1.3562    
  15  norm          2.6062        2.6735        .75691E-04   -1.5385    
  16  Prefactor     .10347E-03    82.063        .11293       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.476        .17042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.763        .16648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .84574        5.2179        .20328E-03   -1.5524    
  20  Prefactor     .10000E-03    54.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4306        8.6072        .21252E-03   -1.5338    
  22  norm          6.1150        4.6008        .86123E-04   -1.5213    
  23  Prefactor     .32760E-01    20.155        .10974E-02   -1.5672    
  24  Prefactor     .10000E-03    15.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.015        15.666        .10701E-03   -1.4959    
  26  Prefactor     2.8566        11.522        .24056E-03   -1.5370    
  27  Prefactor     21.829        29.827        .85725E-04   -1.4773    
  28  Normalizat    .68797        .46573        .41753E-03   -1.0437    
  29  Prefactor     1.3611        .29633        .20908E-03   -.81509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34209e-09
Minuit parameter uncertainties:
  1  0.00414278
  2  0.000747011
  3  200.792
  4  6.41441e-05
  5  56.7769
  6  6.25309e-05
  7  3.71306e-05
  8  2.4207e-05
  9  167.258
  10  0.000596712
  11  2.78037e-05
  12  101.025
  13  0.000748872
  14  130.713
  15  2.67366
  16  0.0338156
  17  5.10504e-05
  18  9.10615e-06
  19  4.20171
  20  0.000116765
  21  8.61035
  22  4.60105
  23  1.62323
  24  1.58029e-05
  25  15.6705
  26  11.4777
  27  29.8477
  28  0.468439
  29  0.296699
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  5.234e+01  1.010e+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.361e+00  2.967e-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.880e-01  4.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/360804/likelihoodResults_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.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) = 2469.38714085
delta logL = 0.602754465115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2469.34549563
delta logL = 0.644399686662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5984       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1459       1.0000          .0000       10.000    
     3 'Normalizat'    .57815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4091       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2469.345     FROM MIGRAD    STATUS=FAILED        93 CALLS      365 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5985        342.64        .62821E-03   -.13770E-03
   2  Index         4.1460        7.0719        .41212E-02    .23941E-03
   3  Normalizat    .57741        .39346        .45213E-03   -.20619E-04
   4  Prefactor     1.4096        .27231        .20578E-03   -.26988E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2469.345     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      451 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5985        342.64        .49311E-03   -.13770E-03
   2  Index         4.1460        7.0719        .16702E-02    .23941E-03
   3  Normalizat    .57741        .39346        .35316E-03   -.20619E-04
   4  Prefactor     1.4096        .27231        .20764E-03   -.26988E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2469.345     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      480 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5988        40.030        .25128E-04   -.85825E-04
   2  Index         4.1460        2.2113        .82423E-03   -.22924E-04
   3  Normalizat    .57741        .43303        .18085E-04   -.17979E-04
   4  Prefactor     1.4096        .29222        .82312E-05   -.22513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.59877
  Index      = 4.14595
  Normalizat = 0.577405
  Prefactor  = 1.40961
 **********
 **   18 **HESSE 
 **********

 FCN=   2469.345     FROM HESSE     STATUS=OK            23 CALLS      503 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5988        31.514        .50257E-05   -1.5121    
   2  Index         4.1460        1.8986        .32969E-04   -.17165    
   3  Normalizat    .57741        .43341        .36170E-05   -1.0895    
   4  Prefactor     1.4096        .29210        .16462E-05   -.80104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.701e-12
Minuit parameter uncertainties:
  1  31.5752
  2  1.94906
  3  0.435986
  4  0.292446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360804': 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) = 2469.3454941
delta logL = 0.644401215954

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  8.599e+00  3.158e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  4.146e+00  1.949e+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.410e+00  2.924e-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:  5.774e-01  4.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 112.286 57.056
Photon Index (Free Index): 4.15 +/- 1.95
Photon Flux (Free Index): 2.24e-07 +/- 2.08e-07
Energy Flux (Free Index): 3.27e-05 +/- 3.13e-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/360804/cmap_HighResolution_599616001_599875201_4FGL_J0729.1+5703_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-02', comment='SUCCESS', energy_flux2='3.27e-05', dlogl='6.44e-01', photon_flux2='2.24e-07', job_status='DONE', time_completed='2021-08-27 08:00:52.148310', photon_index_error2='1.95', photon_index2='4.15', ts='0.35', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='4.08e-07', energy_flux_error2='3.13e-05', EG='0.69', time_epoch_completed='1630076452.15', return_code='0', job_id='360804', GAL2='1.41', EG2='0.58', return_code2='0', photon_flux_error2='2.08e-07', ts2='1.75', photon_index='2.51' WHERE bin_id='1390' AND source_name='4FGL J0729.1+5703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 08:00:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 360804: <4FGL_J0729.1+5703_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_daily_bin1390 112.286 57.0558 599616001 599875201 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 :                                   574.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            607 sec.

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

