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


Performing analysis on: 4FGL_J0929.3+5014_daily_bin1181
RA = 142.327, Dec = 50.2352
tmin = 545443201, tmax = 545702401
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='244707', job_status='RUN', time_executed='2021-08-31 12:33:19.615136', time_epoch_executed='1630438399.62' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244707

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244707/ft1_4FGL_J0929.3+5014_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244707/ft1_4FGL_J0929.3+5014_daily_bin1181.fits outfile=/scratch/kocevski/244707/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1181.fits ra=142.327 dec=50.2352 rad=12.0 tmin=545443201.0 tmax=545702401.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.15
user 3.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.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/244707/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1181.fits evtable="EVENTS" outfile="/scratch/kocevski/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/244707/ltcube_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.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/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/244707/ltcube_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits outfile=/scratch/kocevski/244707/expmap_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.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/244707/ltcube_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits
.....................!
real 190.73
user 185.25
sys 4.64

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/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits scfile=/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits outfile=/scratch/kocevski/244707/cmap_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits scfile=/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits outfile=/scratch/kocevski/244707/cmap_HighResolution_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits', '/scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits', expMap='/scratch/kocevski/244707/expmap_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits', expCube='/scratch/kocevski/244707/ltcube_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244707/Model_4FGL_J0929.3+5014_daily_bin1181.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/244707/ft1_filtered_4FGL_J0929.3+5014_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/244707/ft2_4FGL_J0929.3+5014_daily_bin1181.fits
Exposure map: /scratch/kocevski/244707/expmap_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits
Exposure cube: /scratch/kocevski/244707/ltcube_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244707/Model_4FGL_J0929.3+5014_daily_bin1181.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 140.314488815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 136.922694125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6664       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0040       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1636       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    175.96       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17062E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0514       1.0000         .10000E-03   10000.    
    21 'norm      '    .70838E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    203.43       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8066       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7319       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0299       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9032       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.8846       1.0000         .10000E-03   10000.    
    28 'norm      '    1.6918       1.0000         .10000E-03   10000.    
    29 'norm      '    150.20       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .17806E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    228.08       1.0000         .10000E-03   10000.    
    32 'norm      '    .77895E-01   1.0000         .10000E-03   10000.    
    33 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .46492E-08   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   136.9127     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      446 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1668        1.0130         .0000         .0000    
   2  Prefactor     .10000E-03    .20571        .94084E-05** at limit **
   3  Prefactor     2.6664        1.0188         .0000         .0000    
   4  norm          6.0040        1.0035         .0000         .0000    
   5  norm          6.3329        1.0031         .0000         .0000    
   6  Prefactor     3.8697        1.0086         .0000         .0000    
   7  Prefactor     .10000E-03    .20571       -.45140E-05** at limit **
   8  Prefactor     1.8972        1.0398         .0000         .0000    
   9  Prefactor     4.1636        1.0074         .0000         .0000    
  10  Prefactor     .10000E-03    .25432       -.81464E-05** at limit **
  11  Prefactor     .10000E-03    .20571        .17310E-06** at limit **
  12  Prefactor     175.05        .99747        .16013E-05    .98888E-02
  13  norm          .10000E-03    .20571        .40859E-07** at limit **
  14  Prefactor     .10000E-03    .20571       -.63280E-06** at limit **
  15  norm          .10000E-03    .20571       -.46478E-05** at limit **
  16  Prefactor     .10000E-03    .20571        .15499E-05** at limit **
  17  Prefactor     .10576E-03    .11279        .36354E-05** at limit **
  18  Prefactor     1.6534        1.0551         .0000         .0000    
  19  Prefactor     .10015E-03    .23529       -.26700E-04** at limit **
  20  Prefactor     1.0514        1.2363         .0000         .0000    
  21  norm          .10000E-03    .21810       -.20707E-05** at limit **
  22  Prefactor     207.25        1.0092       -.43917E-05    .95141E-03
  23  Prefactor     2.8066        1.0168         .0000         .0000    
  24  Prefactor     1.7319        1.0493         .0000         .0000    
  25  norm          1.0299        1.2706         .0000         .0000    
  26  Prefactor     .10002E-03    .88859E-01    .12393E-04** at limit **
  27  Prefactor     8.8846        1.0016         .0000         .0000    
  28  norm          1.6918        1.0522         .0000         .0000    
  29  norm          144.60        .98147        .72461E-05   -.23706E-02
  30  Prefactor     .10003E-03    .20571        .20733E-04** at limit **
  31  Prefactor     232.19        1.0088       -.44834E-05   -.15107E-02
  32  norm          .10000E-03    .22115       -.19948E-04** at limit **
  33  Prefactor     7.3057        1.0024         .0000         .0000    
  34  Normalizat    .10000E-01    .25505       -.19193E-04** at limit **
  35  Prefactor     .16653E-14    .25504       -.80488E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16678
  Prefactor  = 0.000100002
  Prefactor  = 2.66641
  norm       = 6.00399
  norm       = 6.33292
  Prefactor  = 3.86972
  Prefactor  = 0.0001
  Prefactor  = 1.89722
  Prefactor  = 4.1636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 175.05
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010576
  Prefactor  = 1.65345
  Prefactor  = 0.000100154
  Prefactor  = 1.05136
  norm       = 0.0001
  Prefactor  = 207.254
  Prefactor  = 2.80665
  Prefactor  = 1.73194
  norm       = 1.02988
  Prefactor  = 0.000100019
  Prefactor  = 8.8846
  norm       = 1.69183
  norm       = 144.601
  Prefactor  = 0.000100033
  Prefactor  = 232.194
  norm       = 0.000100001
  Prefactor  = 7.30573
  Normalizat = 0.01
  Prefactor  = 1.66533e-15
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   136.9127     FROM HESSE     STATUS=FAILED         9 CALLS      455 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     552.18        548.94         .0000       -1.5352    
   2  Prefactor     .10000E-03    .20571        .94084E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6664        1.0188         .0000       -1.5381    
   4  norm          6.0040        1.0035         .0000       -1.5218    
   5  norm          6.3329        1.0031         .0000       -1.5205    
   6  Prefactor     3.8697        1.0086         .0000       -1.5315    
   7  Prefactor     .10000E-03    .20571       -.45140E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8972        1.0398         .0000       -1.5432    
   9  Prefactor     4.1636        1.0074         .0000       -1.5300    
  10  Prefactor     .10000E-03    .25432       -.81464E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571        .17310E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     175.05        .99747        .16013E-05   -1.3054    
  13  norm          .10000E-03    .20571        .40859E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.63280E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571       -.46478E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .15499E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10576E-03    .11279        .36354E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6534        1.0551         .0000       -1.5451    
  19  Prefactor     .10015E-03    .23529       -.26700E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0514        1.2363         .0000       -1.5503    
  21  norm          .10000E-03    .21810       -.20707E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     207.25        1.0092       -.43917E-05   -1.2819    
  23  Prefactor     2.8066        1.0168         .0000       -1.5373    
  24  Prefactor     1.7319        1.0493         .0000       -1.5445    
  25  norm          1.0299        1.2706         .0000       -1.5505    
  26  Prefactor     .10002E-03    .88859E-01    .12393E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.8846        1.0016         .0000       -1.5112    
  28  norm          1.6918        1.0522         .0000       -1.5448    
  29  norm          144.60        .98147        .72461E-05   -1.3297    
  30  Prefactor     .10003E-03    .20571        .20733E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     232.19        1.0088       -.44834E-05   -1.2648    
  32  norm          .10000E-03    .22115       -.19948E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     7.3057        1.0024         .0000       -1.5167    
  34  Normalizat    .10000E-01    .25505       -.19193E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .16653E-14    .25504       -.80488E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.59134e-11
Minuit parameter uncertainties:
  1  1.01304
  2  3.92805e-05
  3  1.01876
  4  1.00351
  5  1.00315
  6  1.0086
  7  6.22167e-06
  8  1.0398
  9  1.0074
  10  1.70456e-05
  11  3.02238e-07
  12  0.997469
  13  6.50616e-08
  14  1.01616e-06
  15  8.35151e-06
  16  2.22221e-06
  17  0.00161207
  18  1.05516
  19  0.000380303
  20  1.23632
  21  9.12234e-06
  22  1.00916
  23  1.01682
  24  1.0493
  25  1.27062
  26  8.25715e-05
  27  1.00159
  28  1.05216
  29  0.981472
  30  0.000164966
  31  1.00876
  32  3.16985e-05
  33  1.00236
  34  1.04182e-06
  35  4.032e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 136.912725959

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.058e-04  1.612e-03  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.665e-15  4.032e-08  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:  1.000e-02  1.042e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 1.73e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244707/likelihoodResults_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.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) = 136.912731258
delta logL = -5.29962122187e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 136.912730168
delta logL = -4.20923404931e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96308E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1253       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65019E-09   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=   136.9127     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      221 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    547.40        .18144E-01** at limit **
   2  Index         2.5120        8.1015        .50000        .42994E-06
   3  Normalizat    .10000E-01    .48137E-03    .19929E-02** at limit **
   4  Prefactor     .31086E-13    .32917E-03    .16578E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010007
  Index      = 2.51201
  Normalizat = 0.01
  Prefactor  = 3.10862e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   136.9127     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      250 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    6466.6        .30565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5120        6.3043        .50000       -.52083    
   3  Normalizat    .10000E-01    .28490E-02    .39857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31086E-13    .19482E-02    .33155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37612e-08
Minuit parameter uncertainties:
  1  0.0302712
  2  1768.91
  3  5.76793e-08
  4  1.56215e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244707': 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) = 136.912725983
delta logL = -2.43829560986e-08

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.001e-04  3.027e-02  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.512e+00  1.769e+03  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:  3.109e-14  1.562e-08  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:  1.000e-02  5.768e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.327 50.235

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/244707/cmap_HighResolution_545443201_545702401_4FGL_J0929.3+5014_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e+00', job_status='DONE', photon_flux_upper_limit='1.73e-05', time_completed='2021-08-31 12:39:01.793274', job_id='244707', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630438741.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-2.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1181' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 244707: <4FGL_J0929.3+5014_daily_bin1181> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin1181> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 12:30:37 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:30:47 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:47 2021
Terminated at Tue Aug 31 12:39:02 2021
Results reported at Tue Aug 31 12:39:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin1181 142.327 50.2352 545443201 545702401 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 :                                   338.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   495 sec.
    Turnaround time :                            505 sec.

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

