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


Performing analysis on: 4FGL_J0929.3+5014_daily_bin1158
RA = 142.327, Dec = 50.2352
tmin = 539481601, tmax = 539740801
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='244672', job_status='RUN', time_executed='2021-08-31 12:33:36.740752', time_epoch_executed='1630438416.74' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244672/ft1_4FGL_J0929.3+5014_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244672/ft1_4FGL_J0929.3+5014_daily_bin1158.fits outfile=/scratch/kocevski/244672/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1158.fits ra=142.327 dec=50.2352 rad=12.0 tmin=539481601.0 tmax=539740801.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.44
user 4.00
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.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/244672/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.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.69
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/244672/ltcube_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.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/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits
.....................!
real 9.84
user 9.45
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/244672/ltcube_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits outfile=/scratch/kocevski/244672/expmap_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.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/244672/ltcube_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits
.....................!
real 155.11
user 150.90
sys 3.72

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

Setting source of interest to:
4FGL J0929.3+5014 @ 142.327 50.2352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits outfile=/scratch/kocevski/244672/cmap_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.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=142.327 yref=50.2352 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.52
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits outfile=/scratch/kocevski/244672/cmap_HighResolution_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.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=142.327 yref=50.2352 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.47
user 0.32
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244672/Model_4FGL_J0929.3+5014_daily_bin1158.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/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits.....................!
real 26.80
user 25.69
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits', '/scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits', expMap='/scratch/kocevski/244672/expmap_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits', expCube='/scratch/kocevski/244672/ltcube_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244672/Model_4FGL_J0929.3+5014_daily_bin1158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0929.3+5014'

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  5.632e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/244672/ft1_filtered_4FGL_J0929.3+5014_daily_bin1158.fits
Spacecraft file(s): /scratch/kocevski/244672/ft2_4FGL_J0929.3+5014_daily_bin1158.fits
Exposure map: /scratch/kocevski/244672/expmap_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits
Exposure cube: /scratch/kocevski/244672/ltcube_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244672/Model_4FGL_J0929.3+5014_daily_bin1158.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) = 2669.55817274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7148       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47345E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34770E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.586       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11146E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.461       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.101       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    145.61       1.0000         .10000E-03   10000.    
    28 'norm      '    1.5753       1.0000         .10000E-03   10000.    
    29 'norm      '    8.7138       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.0443       1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.475       1.0000         .10000E-03   10000.    
    32 'norm      '    8.6663       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .48776       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1656       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2669.520     FROM MIGRAD    STATUS=CONVERGED    988 CALLS     5172 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.359        9.8451        .13823E-07   -.61087E-04
   2  Prefactor     2.7144        24.957       -.25584E-05   -.77426E-04
   3  Prefactor     .10070E-03    293.51       -.52034E-04** at limit **
   4  norm          .10000E-03    15.522       -.20913E-06** at limit **
   5  norm          .10000E-03    7.4368       -.13384E-06** at limit **
   6  Prefactor     .10000E-03    8.1151        .22185E-06** at limit **
   7  Prefactor     6.6411        6.1006        .12400E-05   -.57757E-03
   8  Prefactor     17.492        35.840       -.57595E-06   -.78537E-04
   9  Prefactor     .10000E-03    202.16        .10471E-04** at limit **
  10  Prefactor     .10000E-03    27.058        .16258E-05** at limit **
  11  Prefactor     .10000E-03    3.6506        .47627E-07** at limit **
  12  Prefactor     .10000E-03    20.102       -.21855E-05** at limit **
  13  norm          3.2355        1.1246        .49771E-06   -.42599E-02
  14  Prefactor     .10017E-03    5.5715       -.59859E-05** at limit **
  15  norm          15.590        15.367        .29977E-06   -.23644E-03
  16  Prefactor     .10000E-03    2.6517       -.21665E-06** at limit **
  17  Prefactor     25.221        21.245        .14492E-06   -.11053E-03
  18  Prefactor     2.1963        7.2522       -.45657E-06   -.53986E-04
  19  Prefactor     .10000E-03    23.862        .47659E-06** at limit **
  20  Prefactor     .10000E-03    15.632        .78203E-06** at limit **
  21  norm          .10000E-03    22.824       -.43246E-06** at limit **
  22  Prefactor     82.463        53.896       -.33006E-07   -.20341E-03
  23  Prefactor     .10000E-03    26.579        .22531E-05** at limit **
  24  Prefactor     22.105        20.695       -.16575E-06   -.10173E-03
  25  norm          .10000E-03    16.625       -.26988E-06** at limit **
  26  Prefactor     .10000E-03    56.351        .41550E-05** at limit **
  27  Prefactor     145.60        92.782       -.16828E-05   -.55063E-04
  28  norm          1.5754        .99740        .68215E-07    .88031E-04
  29  norm          8.7105        18.730       -.22712E-06   -.49935E-04
  30  Prefactor     5.0443        12.828        .83008E-07   -.42186E-04
  31  Prefactor     12.552        83.424        .20559E-04    .22983E-04
  32  norm          8.6668        4.8272        .15374E-07   -.23943E-04
  33  Prefactor     .10000E-03    42.507       -.53186E-05** at limit **
  34  Normalizat    .48751        .32162        .89761E-06   -.29225E-03
  35  Prefactor     1.1659        .29681       -.17705E-05   -.30124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3593
  Prefactor  = 2.71444
  Prefactor  = 0.000100705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.64108
  Prefactor  = 17.4922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23552
  Prefactor  = 0.000100168
  norm       = 15.5901
  Prefactor  = 0.000100001
  Prefactor  = 25.2208
  Prefactor  = 2.19633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.4625
  Prefactor  = 0.000100001
  Prefactor  = 22.1052
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 145.597
  norm       = 1.57536
  norm       = 8.71048
  Prefactor  = 5.04426
  Prefactor  = 12.5524
  norm       = 8.66676
  Prefactor  = 0.0001
  Normalizat = 0.487509
  Prefactor  = 1.16589
 **********
 **   18 **HESSE 
 **********

 FCN=   2669.520     FROM HESSE     STATUS=OK           780 CALLS     5952 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.359        9.8456        .10958E-03   -1.4977    
   2  Prefactor     2.7144        25.200        .12360E-02   -1.5378    
   3  Prefactor     .10070E-03    23.125        .57511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.4846        .13750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1238        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6411        6.0878        .10864E-03   -1.5193    
   8  Prefactor     17.492        35.807        .95710E-04   -1.4871    
   9  Prefactor     .10000E-03    202.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7529        .19252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2355        1.1381        .30518E-04   -1.5348    
  14  Prefactor     .10017E-03    15.155        .19054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.590        15.080        .10145E-03   -1.4918    
  16  Prefactor     .10000E-03    4.1705        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.221        21.205        .79771E-04   -1.4703    
  18  Prefactor     2.1963        7.1234        .21376E-03   -1.5412    
  19  Prefactor     .10000E-03    23.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    22.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.463        53.982        .44233E-04   -1.3889    
  23  Prefactor     .10000E-03    26.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.105        20.380        .85202E-04   -1.4767    
  25  norm          .10000E-03    16.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    56.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     145.60        92.904        .16696E-03   -1.3289    
  28  norm          1.5754        .99763        .39088E-04   -1.5457    
  29  norm          8.7105        18.713        .67895E-03   -1.5118    
  30  Prefactor     5.0443        12.710        .17904E-03   -1.5259    
  31  Prefactor     12.552        84.289        .11341E-03   -1.4999    
  32  norm          8.6668        4.8277        .82301E-04   -1.5119    
  33  Prefactor     .10000E-03    42.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .48751        .35326        .34011E-03   -1.1300    
  35  Prefactor     1.1659        .33529        .24953E-03   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22996e-08
Minuit parameter uncertainties:
  1  9.84682
  2  16.5502
  3  0.00807573
  4  5.3566e-05
  5  1.09623e-05
  6  1.44962e-05
  7  6.08834
  8  35.8506
  9  1.7395e-05
  10  3.73767e-05
  11  1.04049e-05
  12  5.16785e-05
  13  1.13807
  14  0.00318933
  15  15.0839
  16  0.000145621
  17  21.2112
  18  7.12613
  19  4.60924e-05
  20  3.81687e-05
  21  1.4394e-05
  22  54.0143
  23  0.000279293
  24  20.3861
  25  5.075e-05
  26  0.000111958
  27  92.9972
  28  0.997636
  29  18.7255
  30  12.7173
  31  65.1873
  32  4.8279
  33  3.25444e-05
  34  0.354899
  35  0.335908
Done.

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

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  2.522e+01  2.121e+01  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.166e+00  3.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  4.875e-01  3.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 142.327 50.235
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.83e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 3.55e-05 +/- 2.99e-05

TS (Fixed Index): 2.51
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244672/likelihoodResults_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.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) = 2669.51943284
delta logL = 0.00067536820643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2669.51856808
delta logL = 0.00154013238262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1719       1.0000          .0000       10.000    
     3 'Normalizat'    .48452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   2669.519     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      271 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.014        32.266        .81777E-04    .46646E-03
   2  Index         2.1716        .90791        .50643E-02    .11785E-03
   3  Normalizat    .48394        .29354        .34130E-03   -.35425E-04
   4  Prefactor     1.1688        .31945        .24927E-03    .84761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0142
  Index      = 2.17155
  Normalizat = 0.483936
  Prefactor  = 1.1688
 **********
 **   18 **HESSE 
 **********

 FCN=   2669.519     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.014        29.918        .16355E-04   -1.4727    
   2  Index         2.1716        .84185        .20257E-03   -.60127    
   3  Normalizat    .48394        .29254        .13652E-04   -1.1317    
   4  Prefactor     1.1688        .31871        .49855E-04   -.87297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48087e-10
Minuit parameter uncertainties:
  1  29.9362
  2  0.847812
  3  0.293472
  4  0.319233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244672': 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) = 2669.51856568
delta logL = 0.00154252917264

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  2.401e+01  2.994e+01  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.172e+00  8.478e-01  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  1.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  1.169e+00  3.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  4.839e-01  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 142.327 50.235
Photon Index (Free Index): 2.17 +/- 0.85
Photon Flux (Free Index): 7.07e-08 +/- 7.23e-08
Energy Flux (Free Index): 3.35e-05 +/- 4.39e-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/244672/cmap_HighResolution_539481601_539740801_4FGL_J0929.3+5014_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='6.83e-08', energy_flux2='3.35e-05', photon_flux_error='5.74e-08', dlogl='1.54e-03', energy_flux='3.55e-05', photon_flux2='7.07e-08', job_status='DONE', time_completed='2021-08-31 12:43:25.283482', photon_index_error2='0.85', photon_index2='2.17', ts='2.51', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='4.39e-05', EG='0.49', time_epoch_completed='1630439005.28', return_code='0', job_id='244672', GAL2='1.17', EG2='0.48', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='7.23e-08', ts2='2.52', photon_index='2.13' WHERE bin_id='1158' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 244672: <4FGL_J0929.3+5014_daily_bin1158> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin1158> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 12:30:35 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:30:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 12:30:36 2021
Terminated at Tue Aug 31 12:43:26 2021
Results reported at Tue Aug 31 12:43:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin1158 142.327 50.2352 539481601 539740801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0929.3+5014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

