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


Performing analysis on: 4FGL_J0929.3+5014_daily_bin21
RA = 142.327, Dec = 50.2352
tmin = 244771201, tmax = 245030401
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='238338', job_status='RUN', time_executed='2021-08-31 12:13:33.383158', time_epoch_executed='1630437213.38' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238338/ft1_4FGL_J0929.3+5014_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238338/ft1_4FGL_J0929.3+5014_daily_bin21.fits outfile=/scratch/kocevski/238338/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin21.fits ra=142.327 dec=50.2352 rad=12.0 tmin=244771201.0 tmax=245030401.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.16
user 0.97
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.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/238338/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.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.42
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/238338/ltcube_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.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/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits
.....................!
real 9.75
user 9.46
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/238338/ltcube_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits outfile=/scratch/kocevski/238338/expmap_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.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/238338/ltcube_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits
.....................!
real 144.37
user 140.78
sys 3.31

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/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits scfile=/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits outfile=/scratch/kocevski/238338/cmap_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.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.69
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits scfile=/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits outfile=/scratch/kocevski/238338/cmap_HighResolution_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.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.63
user 0.30
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits', '/scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits', expMap='/scratch/kocevski/238338/expmap_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits', expCube='/scratch/kocevski/238338/ltcube_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/238338/Model_4FGL_J0929.3+5014_daily_bin21.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/238338/ft1_filtered_4FGL_J0929.3+5014_daily_bin21.fits
Spacecraft file(s): /scratch/kocevski/238338/ft2_4FGL_J0929.3+5014_daily_bin21.fits
Exposure map: /scratch/kocevski/238338/expmap_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits
Exposure cube: /scratch/kocevski/238338/ltcube_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/238338/Model_4FGL_J0929.3+5014_daily_bin21.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) = 5246.7752728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5184       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8603       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6323       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.257       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53340E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6101       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14131E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1528       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24090E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.206       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6840       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.333       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .54473       1.0000         .10000E-03   10000.    
    29 'norm      '    .14075E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.758       1.0000         .10000E-03   10000.    
    32 'norm      '    6.7598       1.0000         .10000E-03   10000.    
    33 'Prefactor '    27.401       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .46291       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.3747       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=   5246.771     FROM MIGRAD    STATUS=CONVERGED    976 CALLS     5108 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.846        6.7740        .18134E-07   -.10547E-04
   2  Prefactor     27.333        16.739        .81696E-07    .50182E-04
   3  Prefactor     3.5184        3.5023       -.90776E-07   -.79734E-05
   4  norm          4.8606        6.0171       -.30987E-07    .16729E-05
   5  norm          1.6354        6.1162        .16388E-05    .31069E-04
   6  Prefactor     .10000E-03    6.7916        .27799E-06** at limit **
   7  Prefactor     .10000E-03    1.2341       -.67085E-07** at limit **
   8  Prefactor     .10000E-03    5.2617        .21651E-06** at limit **
   9  Prefactor     28.237        50.728       -.29233E-05   -.46890E-04
  10  Prefactor     .10000E-03    46.071        .26919E-05** at limit **
  11  Prefactor     .10094E-03    1.7044       -.66311E-06** at limit **
  12  Prefactor     9.5775        36.736        .29542E-05    .12004E-03
  13  norm          1.8640        .65183        .96752E-07    .36513E-02
  14  Prefactor     .10000E-03    1.9116       -.50670E-06** at limit **
  15  norm          5.8456        13.351       -.72262E-07    .21997E-03
  16  Prefactor     .10000E-03    1.3493       -.25715E-06** at limit **
  17  Prefactor     .10000E-03    5.4129       -.46057E-06** at limit **
  18  Prefactor     6.1539        4.5640        .16770E-07    .10562E-03
  19  Prefactor     .10000E-03    10.560        .29573E-06** at limit **
  20  Prefactor     .10000E-03    72.470       -.23924E-05** at limit **
  21  norm          19.209        17.162       -.11082E-06    .33731E-04
  22  Prefactor     .10000E-03    12.401        .61840E-08** at limit **
  23  Prefactor     1.6868        14.095        .13646E-05    .31022E-04
  24  Prefactor     10.330        8.5388       -.77656E-07    .14119E-03
  25  norm          .10000E-03    2.9271        .13841E-08** at limit **
  26  Prefactor     .10000E-03    37.753       -.18644E-05** at limit **
  27  Prefactor     .10000E-03    9.4991       -.28807E-06** at limit **
  28  norm          .54459        .47299        .64288E-08    .42455E-04
  29  norm          .10016E-03    10.721       -.20347E-05** at limit **
  30  Prefactor     .10000E-03    3.9204        .77729E-07** at limit **
  31  Prefactor     13.761        43.578        .84981E-07    .25729E-04
  32  norm          6.7592        3.2218       -.30601E-06    .13383E-03
  33  Prefactor     27.406        33.870        .45006E-07    .24956E-04
  34  Normalizat    .46284        .19734        .15122E-05    .39050E-03
  35  Prefactor     1.3747        .20267       -.83094E-06    .44680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8462
  Prefactor  = 27.3333
  Prefactor  = 3.51839
  norm       = 4.86062
  norm       = 1.63539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2371
  Prefactor  = 0.000100001
  Prefactor  = 0.00010094
  Prefactor  = 9.57747
  norm       = 1.86402
  Prefactor  = 0.000100001
  norm       = 5.84562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.15388
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 19.2086
  Prefactor  = 0.0001
  Prefactor  = 1.68679
  Prefactor  = 10.3298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.544589
  norm       = 0.000100158
  Prefactor  = 0.0001
  Prefactor  = 13.7611
  norm       = 6.7592
  Prefactor  = 27.4059
  Normalizat = 0.462839
  Prefactor  = 1.37469
 **********
 **   18 **HESSE 
 **********

 FCN=   5246.771     FROM HESSE     STATUS=OK           782 CALLS     5890 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.846        6.7722        .12166E-03   -1.5049    
   2  Prefactor     27.333        16.704        .76631E-04   -1.4662    
   3  Prefactor     3.5184        3.5090        .13163E-03   -1.5333    
   4  norm          4.8606        5.9731        .18246E-03   -1.5267    
   5  norm          1.6354        5.9735        .31504E-03   -1.5452    
   6  Prefactor     .10000E-03    6.8122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2525        .78469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2673        .16230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.237        50.820        .75367E-04   -1.4645    
  10  Prefactor     .10000E-03    46.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10094E-03    4.3801        .29599E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5775        38.181        .12927E-03   -1.5089    
  13  norm          1.8640        .60543        .30453E-04   -1.5435    
  14  Prefactor     .10000E-03    7.7214        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8456        13.253        .16622E-03   -1.5224    
  16  Prefactor     .10000E-03    1.3868        .16416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4451        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1539        4.5491        .12051E-03   -1.5212    
  19  Prefactor     .10000E-03    10.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.209        17.149        .91392E-04   -1.4831    
  22  Prefactor     .10000E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6868        13.644        .32454E-03   -1.5448    
  24  Prefactor     10.330        8.5205        .12465E-03   -1.5065    
  25  norm          .10000E-03    2.9288        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.5070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .54459        .46241        .44144E-04   -1.5560    
  29  norm          .10016E-03    45.949        .41656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.9577        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     13.761        43.589        .10798E-03   -1.4966    
  32  norm          6.7592        3.2100        .43316E-03   -1.5188    
  33  Prefactor     27.406        33.768        .76532E-04   -1.4660    
  34  Normalizat    .46284        .21267        .32575E-03   -1.1417    
  35  Prefactor     1.3747        .22650        .22629E-03   -.81113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3596e-09
Minuit parameter uncertainties:
  1  6.77268
  2  16.7065
  3  3.50923
  4  5.97386
  5  5.97568
  6  1.11543e-05
  7  2.20848e-07
  8  1.25132e-05
  9  50.8979
  10  0.00048352
  11  0.00405888
  12  38.2783
  13  0.605437
  14  0.000214169
  15  13.2597
  16  4.01727e-06
  17  1.84299e-05
  18  4.54937
  19  2.62743e-05
  20  0.000573174
  21  17.1531
  22  2.20181e-06
  23  9.59724
  24  8.52151
  25  4.13708e-07
  26  0.000247578
  27  2.27796e-05
  28  0.46241
  29  0.00538827
  30  6.63714e-06
  31  43.6896
  32  3.21013
  33  33.792
  34  0.21304
  35  0.226663
Done.

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

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  1.843e-05  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.375e+00  2.267e-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.628e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.327 50.235
Photon Flux Upper Limit: 5.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238338/likelihoodResults_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.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) = 5246.7715485
delta logL = -0.000872437767612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5246.77067607
delta logL = -1.18252501125e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1236       1.0000          .0000       10.000    
     3 'Normalizat'    .46284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3747       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.

 FCN=   5246.771     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3870        .90712E-02** at limit **
   2  Index         2.1220        8.7007        .50000        .24702E-05
   3  Normalizat    .46284        .42708E-02    .73570E-01    .40811E-04
   4  Prefactor     1.3747        .49160E-02    .51189E-01    .11388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12196
  Normalizat = 0.462837
  Prefactor  = 1.37469
 **********
 **   18 **HESSE 
 **********

 FCN=   5246.771     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.735        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1220        5.4206        .50000       -.61335    
   3  Normalizat    .46284        .15368E-01    .32575E-03   -1.1417    
   4  Prefactor     1.3747        .17727E-01    .22629E-03   -.81113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27616e-08
Minuit parameter uncertainties:
  1  9.24483e-06
  2  340.873
  3  0.0153678
  4  0.017727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238338': 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) = 5246.77067606
delta logL = 2.25281837629e-09

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  9.245e-06  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.122e+00  3.409e+02  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.375e+00  1.773e-02  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.628e-01  1.537e-02  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/238338/cmap_HighResolution_244771201_245030401_4FGL_J0929.3+5014_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-08-31 12:27:13.021996', job_id='238338', GAL2='1.37', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630438033.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='21' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:27:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 238338: <4FGL_J0929.3+5014_daily_bin21> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin21> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 12:11:19 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:11:20 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:11:20 2021
Terminated at Tue Aug 31 12:27:13 2021
Results reported at Tue Aug 31 12:27:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin21 142.327 50.2352 244771201 245030401 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 :                                   812.22 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             300.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

