/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 101 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0729.1+5703_daily_bin75
RA = 112.286, Dec = 57.0558
tmin = 258768001, tmax = 259027201
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='350849', job_status='RUN', time_executed='2021-08-27 07:17:37.368507', time_epoch_executed='1630073857.37' WHERE source_name='4FGL J0729.1+5703' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350849

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350849/ft1_4FGL_J0729.1+5703_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350849/ft1_4FGL_J0729.1+5703_daily_bin75.fits outfile=/scratch/kocevski/350849/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin75.fits ra=112.286 dec=57.0558 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.89
user 0.94
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.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/350849/ft1_filteredMKT_4FGL_J0729.1+5703_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/350849/ft1_filtered_4FGL_J0729.1+5703_daily_bin75.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 1.23
user 0.31
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350849/ft1_filtered_4FGL_J0729.1+5703_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/350849/ltcube_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.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/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits
.....................!
real 9.72
user 8.42
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350849/ft1_filtered_4FGL_J0729.1+5703_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/350849/ltcube_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.fits outfile=/scratch/kocevski/350849/expmap_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.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/350849/ltcube_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.fits
.....................!
real 193.65
user 186.44
sys 6.41

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/350849/ft1_filtered_4FGL_J0729.1+5703_daily_bin75.fits scfile=/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits outfile=/scratch/kocevski/350849/cmap_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.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 1.25
user 0.36
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350849/ft1_filtered_4FGL_J0729.1+5703_daily_bin75.fits scfile=/scratch/kocevski/350849/ft2_4FGL_J0729.1+5703_daily_bin75.fits outfile=/scratch/kocevski/350849/cmap_HighResolution_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.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 1.33
user 0.36
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56530E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0139       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40203       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11102E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9208       1.0000         .10000E-03   10000.    
    22 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6732       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.871       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.5449       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.327       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.7087       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89275       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84828       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=   4398.967     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3235 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.838        31.216       -.70393E-05   -.83107E-04
   2  Prefactor     .10037E-03    9.1961        .76056E-05** at limit **
   3  Prefactor     9.1153        55.843       -.52256E-04   -.11752E-03
   4  Prefactor     .10000E-03    19.741        .66021E-06** at limit **
   5  norm          2.0163        4.6028       -.63908E-06   -.53305E-03
   6  norm          .10000E-03    1.9916        .63425E-07** at limit **
   7  Prefactor     .50653        15.317       -.78354E-06    .26409E-04
   8  Prefactor     .10000E-03    3.0561       -.15034E-07** at limit **
   9  Prefactor     19.890        19.531       -.28777E-05    .55804E-04
  10  Prefactor     .10000E-03    17.488       -.12391E-06** at limit **
  11  norm          .10000E-03    4.8020       -.81909E-07** at limit **
  12  Prefactor     .10000E-03    7.5445        .32709E-07** at limit **
  13  Prefactor     1.4758        250.23        .11262E-04   -.43760E-04
  14  Prefactor     .10000E-03    58.446       -.33459E-05** at limit **
  15  norm          .10000E-03    .31710       -.55639E-07** at limit **
  16  Prefactor     .10000E-03    6.6301       -.19855E-06** at limit **
  17  norm          4.8235        3.3884       -.23989E-06   -.23112E-04
  18  Prefactor     .10000E-03    29.435       -.10275E-05** at limit **
  19  norm          .10000E-03    2.0274       -.36560E-06** at limit **
  20  Prefactor     .10000E-03    11.397       -.10753E-06** at limit **
  21  norm          2.9185        4.1924       -.44096E-06   -.28028E-03
  22  norm          .10000E-03    1.1176        .53637E-08** at limit **
  23  Prefactor     2.6727        2.0092       -.19594E-06    .56921E-04
  24  Prefactor     15.877        16.361       -.12076E-05    .45991E-04
  25  Prefactor     7.5418        7.7243       -.72203E-06   -.14232E-05
  26  Prefactor     10.325        9.6812       -.15631E-06    .38953E-04
  27  Prefactor     3.7097        22.924       -.24457E-05   -.38449E-04
  28  Normalizat    .89290        .23137        .63041E-05   -.59630E-03
  29  Prefactor     .84811        .12730       -.70231E-07   -.66505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8383
  Prefactor  = 0.000100369
  Prefactor  = 9.11534
  Prefactor  = 0.0001
  norm       = 2.0163
  norm       = 0.0001
  Prefactor  = 0.506529
  Prefactor  = 0.0001
  Prefactor  = 19.8903
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47582
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.82355
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91848
  norm       = 0.0001
  Prefactor  = 2.67266
  Prefactor  = 15.877
  Prefactor  = 7.54177
  Prefactor  = 10.3252
  Prefactor  = 3.70973
  Normalizat = 0.892901
  Prefactor  = 0.84811
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.967     FROM HESSE     STATUS=OK           555 CALLS     3790 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.838        31.225        .11641E-03   -1.5020    
   2  Prefactor     .10037E-03    60.209        .36628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1153        56.935        .13231E-03   -1.5104    
   4  Prefactor     .10000E-03    19.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0163        4.5977        .20582E-03   -1.5424    
   6  norm          .10000E-03    2.0006        .91383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .50653        114.63        .50159E-02   -1.5566    
   8  Prefactor     .10000E-03    3.0809        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.890        19.409        .89781E-04   -1.4816    
  10  Prefactor     .10000E-03    17.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8149        .14194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5471        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4758        248.76        .32464E-03   -1.5465    
  14  Prefactor     .10000E-03    58.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .32207        .36442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6433        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8235        3.3866        .99097E-04   -1.5269    
  18  Prefactor     .10000E-03    29.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5575        .18183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9185        4.1410        .15596E-03   -1.5366    
  22  norm          .10000E-03    1.1278        .13562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6727        2.0059        .78423E-04   -1.5381    
  24  Prefactor     15.877        16.336        .10054E-03   -1.4911    
  25  Prefactor     7.5418        7.7109        .14600E-03   -1.5159    
  26  Prefactor     10.325        9.6781        .12468E-03   -1.5065    
  27  Prefactor     3.7097        22.922        .20970E-03   -1.5323    
  28  Normalizat    .89290        .26351        .28941E-03   -.96710    
  29  Prefactor     .84811        .14769        .17753E-03   -.97979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45259e-09
Minuit parameter uncertainties:
  1  31.2679
  2  0.00943951
  3  45.6265
  4  5.99773e-05
  5  4.59852
  6  1.54352e-06
  7  15.2679
  8  1.08767e-05
  9  19.4155
  10  8.16258e-05
  11  1.03108e-05
  12  1.0014e-06
  13  38.4832
  14  0.00015522
  15  2.13372e-06
  16  2.46664e-05
  17  3.38671
  18  1.92884e-05
  19  7.0064e-05
  20  2.72698e-06
  21  4.14141
  22  7.48467e-07
  23  2.0059
  24  16.3404
  25  7.71196
  26  9.67961
  27  18.4529
  28  0.263892
  29  0.14776
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.001e-06  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:  8.481e-01  1.478e-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:  8.929e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 112.286 57.056
Photon Flux Upper Limit: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350849/likelihoodResults_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.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): 102
logL (Free Index) = 4398.967992
delta logL = -0.000622297317932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4398.96736986
delta logL = -1.57142494572e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4860       1.0000          .0000       10.000    
     3 'Normalizat'    .89283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84815       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=   4398.967     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.353        .18142E-01** at limit **
   2  Index         1.7926        8.8552        .50000       -.26876E-06
   3  Normalizat    .89291        .97129E-02    .28941E-03   -.23389E-03
   4  Prefactor     .84811        .58604E-02    .17753E-03   -.37681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79264
  Normalizat = 0.892905
  Prefactor  = 0.848108
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.967     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.58        .22170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7926        5.0335        .50000       -.69642    
   3  Normalizat    .89291        .28124E-01    .11576E-04   -.96710    
   4  Prefactor     .84811        .16969E-01    .35506E-04   -.97979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.60334e-09
Minuit parameter uncertainties:
  1  0.000163678
  2  867.689
  3  0.028124
  4  0.016969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350849': 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): 102
logL (Free Index) = 4398.96736734
delta logL = 2.35826155404e-06

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.637e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.793e+00  8.677e+02  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:  8.481e-01  1.697e-02  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:  8.929e-01  2.812e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 112.286 57.056

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/350849/cmap_HighResolution_258768001_259027201_4FGL_J0729.1+5703_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-08-27 07:29:22.724825', job_id='350849', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630074562.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='75' AND source_name='4FGL J0729.1+5703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 07:29:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 350849: <4FGL_J0729.1+5703_daily_bin75> in cluster <slac> Done

Job <4FGL_J0729.1+5703_daily_bin75> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 07:15:30 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 07:15:33 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:15:33 2021
Terminated at Fri Aug 27 07:29:25 2021
Results reported at Fri Aug 27 07:29:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_daily_bin75 112.286 57.0558 258768001 259027201 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 :                                   715.30 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            835 sec.

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

