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


Performing analysis on: 4FGL_J0929.3+5014_daily_bin985
RA = 142.327, Dec = 50.2352
tmin = 494640001, tmax = 494899201
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='243212', job_status='RUN', time_executed='2021-08-31 12:26:15.177208', time_epoch_executed='1630437975.18' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='985'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243212

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243212/ft1_4FGL_J0929.3+5014_daily_bin985.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243212/ft1_4FGL_J0929.3+5014_daily_bin985.fits outfile=/scratch/kocevski/243212/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin985.fits ra=142.327 dec=50.2352 rad=12.0 tmin=494640001.0 tmax=494899201.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 3.87
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243212/ft1_filtered_4FGL_J0929.3+5014_daily_bin985.fits" evtable="EVENTS" scfile=/scratch/kocevski/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits sctable="SC_DATA" outfile=/scratch/kocevski/243212/ltcube_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.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/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits
.....................!
real 9.72
user 9.35
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243212/ft1_filtered_4FGL_J0929.3+5014_daily_bin985.fits evtable="EVENTS" scfile=/scratch/kocevski/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits sctable="SC_DATA" expcube=/scratch/kocevski/243212/ltcube_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.fits outfile=/scratch/kocevski/243212/expmap_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.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/243212/ltcube_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.fits
.....................!
real 157.60
user 151.51
sys 3.52

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/243212/ft1_filtered_4FGL_J0929.3+5014_daily_bin985.fits scfile=/scratch/kocevski/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits outfile=/scratch/kocevski/243212/cmap_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243212/ft1_filtered_4FGL_J0929.3+5014_daily_bin985.fits scfile=/scratch/kocevski/243212/ft2_4FGL_J0929.3+5014_daily_bin985.fits outfile=/scratch/kocevski/243212/cmap_HighResolution_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2868       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .89260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0984       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31501       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8587       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.296       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.743       1.0000         .10000E-03   10000.    
    28 'norm      '    1.4270       1.0000         .10000E-03   10000.    
    29 'norm      '    44.405       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.6835       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    4.7125       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1770       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .65066       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=   6812.800     FROM MIGRAD    STATUS=CONVERGED    976 CALLS     5107 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5902        4.2859        .21530E-06   -.30776E-03
   2  Prefactor     .10000E-03    3.6819       -.18364E-06** at limit **
   3  Prefactor     2.2868        3.8740        .62335E-07   -.11460E-03
   4  norm          .10000E-03    1.5266       -.16446E-06** at limit **
   5  norm          .10000E-03    2.3491        .65040E-07** at limit **
   6  Prefactor     .10000E-03    8.3365        .93665E-06** at limit **
   7  Prefactor     1.3204        2.3303       -.87917E-07   -.34905E-03
   8  Prefactor     .10000E-03    6.2349       -.11740E-05** at limit **
   9  Prefactor     .10000E-03    30.481       -.19979E-06** at limit **
  10  Prefactor     .10000E-03    15.024        .19058E-05** at limit **
  11  Prefactor     10.164        3.6217        .25987E-06    .19598E-03
  12  Prefactor     .10000E-03    14.460        .69540E-06** at limit **
  13  norm          .89254        .61529       -.65657E-07   -.18905E-04
  14  Prefactor     1.0997        4.0452        .59323E-06   -.39111E-03
  15  norm          .10000E-03    7.6485        .10577E-05** at limit **
  16  Prefactor     .10310        1.2512        .43056E-06   -.96415E-03
  17  Prefactor     24.676        11.260       -.99078E-07    .23712E-04
  18  Prefactor     1.2629        3.1086        .61731E-07   -.32564E-03
  19  Prefactor     .10000E-03    4.9959       -.71128E-07** at limit **
  20  Prefactor     .10000E-03    5.8491        .11551E-05** at limit **
  21  norm          .10000E-03    9.3280       -.11333E-05** at limit **
  22  Prefactor     .10000E-03    13.688       -.16252E-05** at limit **
  23  Prefactor     .32001        5.0866       -.37861E-06   -.46352E-05
  24  Prefactor     3.8609        6.5126       -.60622E-06   -.11472E-03
  25  norm          .10000E-03    2.7627        .55901E-07** at limit **
  26  Prefactor     47.277        37.372       -.65763E-05   -.35005E-03
  27  Prefactor     17.745        25.612       -.16288E-06    .29273E-04
  28  norm          1.4271        .53253       -.41462E-07   -.42762E-04
  29  norm          44.407        17.223       -.32031E-06   -.11260E-05
  30  Prefactor     5.6846        4.6372        .11616E-05   -.22036E-02
  31  Prefactor     .10000E-03    99.725       -.15976E-05** at limit **
  32  norm          4.7130        3.1575       -.64479E-08    .22113E-04
  33  Prefactor     .10000E-03    20.822       -.17696E-05** at limit **
  34  Normalizat    1.1767        .17455        .10674E-05   -.24894E-04
  35  Prefactor     .65093        .17072       -.92921E-06    .62457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59017
  Prefactor  = 0.0001
  Prefactor  = 2.28682
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1637
  Prefactor  = 0.0001
  norm       = 0.892541
  Prefactor  = 1.09965
  norm       = 0.0001
  Prefactor  = 0.103097
  Prefactor  = 24.6763
  Prefactor  = 1.26295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.32001
  Prefactor  = 3.86088
  norm       = 0.0001
  Prefactor  = 47.2774
  Prefactor  = 17.7448
  norm       = 1.42714
  norm       = 44.4069
  Prefactor  = 5.68458
  Prefactor  = 0.0001
  norm       = 4.71299
  Prefactor  = 0.0001
  Normalizat = 1.17666
  Prefactor  = 0.650929
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.800     FROM HESSE     STATUS=OK           776 CALLS     5883 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5902        4.3236        .27071E-03   -1.5456    
   2  Prefactor     .10000E-03    3.6903        .15469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2868        3.8581        .20521E-03   -1.5406    
   4  norm          .10000E-03    1.5327        .99602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3805        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3204        2.2799        .15532E-03   -1.5478    
   8  Prefactor     .10000E-03    6.2674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.164        3.6006        .88726E-04   -1.5070    
  12  Prefactor     .10000E-03    14.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .89254        .61208        .36841E-04   -1.5519    
  14  Prefactor     1.0997        4.0605        .20563E-03   -1.5498    
  15  norm          .10000E-03    7.9105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10310        3.5636        .17461E-02   -1.5644    
  17  Prefactor     24.676        11.238        .80643E-04   -1.4714    
  18  Prefactor     1.2629        3.0776        .21010E-03   -1.5483    
  19  Prefactor     .10000E-03    4.9980        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.3328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32001        24.918        .35598E-02   -1.5595    
  24  Prefactor     3.8609        6.5266        .20543E-03   -1.5315    
  25  norm          .10000E-03    2.7634        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     47.277        38.604        .58305E-04   -1.4332    
  27  Prefactor     17.745        25.612        .95084E-04   -1.4865    
  28  norm          1.4271        .53340        .35201E-04   -1.5469    
  29  norm          44.407        17.344        .60164E-04   -1.4374    
  30  Prefactor     5.6846        6.4881        .84246E-03   -1.5231    
  31  Prefactor     .10000E-03    100.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          4.7130        3.1563        .11471E-03   -1.5274    
  33  Prefactor     .10000E-03    20.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1767        .20224        .22311E-03   -.87327    
  35  Prefactor     .65093        .19429        .30998E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26337e-08
Minuit parameter uncertainties:
  1  4.32442
  2  8.40228e-06
  3  3.85853
  4  4.76359e-06
  5  7.16091e-07
  6  3.15389e-05
  7  2.28009
  8  5.49336e-05
  9  3.13699e-05
  10  0.000121068
  11  3.60063
  12  1.4844e-05
  13  0.612081
  14  4.06153
  15  2.8496e-05
  16  1.21176
  17  11.2393
  18  3.07801
  19  3.63732e-06
  20  5.23057e-05
  21  2.39473e-06
  22  3.38983e-05
  23  5.64918
  24  6.52785
  25  1.58075e-06
  26  38.6242
  27  25.6277
  28  0.533398
  29  17.3463
  30  6.48886
  31  1.37156e-05
  32  3.15644
  33  0.000155674
  34  0.202371
  35  0.194487
Done.

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

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  2.468e+01  1.124e+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:  6.509e-01  1.945e-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:  1.177e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.71
Ra Dec: 142.327 50.235
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.58e-05

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) = 6812.73307314
delta logL = 0.0665791302572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6812.71653155
delta logL = 0.0831207232059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.528       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9673       1.0000          .0000       10.000    
     3 'Normalizat'    1.1895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64302       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=   6812.717     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.533        14.120        .76356E-04    .58514E-04
   2  Index         1.9672        .38562        .55348E-02    .27112E-03
   3  Normalizat    1.1895        .17689        .22219E-03    .58535E-04
   4  Prefactor     .64294        .18572        .31174E-03   -.44747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5331
  Index      = 1.96723
  Normalizat = 1.1895
  Prefactor  = 0.642941
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.717     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.533        13.954        .30542E-05   -1.4658    
   2  Index         1.9672        .38078        .11070E-02   -.65172    
   3  Normalizat    1.1895        .17690        .88876E-05   -.86928    
   4  Prefactor     .64294        .18580        .12470E-04   -1.0581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67954e-11
Minuit parameter uncertainties:
  1  13.9554
  2  0.381363
  3  0.176991
  4  0.185976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243212': 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) = 6812.71653135
delta logL = 0.0831209239168

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  2.753e+01  1.396e+01  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  1.967e+00  3.814e-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:  6.429e-01  1.860e-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:  1.189e+00  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.84
Ra Dec: 142.327 50.235
Photon Index (Free Index): 1.97 +/- 0.38
Photon Flux (Free Index): 5.66e-08 +/- 3.59e-08
Energy Flux (Free Index): 4.25e-05 +/- 3.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/243212/cmap_HighResolution_494640001_494899201_4FGL_J0929.3+5014_daily_bin985.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='4.25e-05', photon_flux_error='3.04e-08', dlogl='8.31e-02', energy_flux='3.47e-05', photon_flux2='5.66e-08', job_status='DONE', time_completed='2021-08-31 12:41:25.662253', photon_index_error2='0.38', photon_index2='1.97', ts='12.71', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.04e-05', EG='1.18', time_epoch_completed='1630438885.66', return_code='0', job_id='243212', GAL2='0.64', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.59e-08', ts2='12.84', photon_index='2.13' WHERE bin_id='985' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 243212: <4FGL_J0929.3+5014_daily_bin985> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin985> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 12:25:45 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:25:53 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:25:53 2021
Terminated at Tue Aug 31 12:41:28 2021
Results reported at Tue Aug 31 12:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin985 142.327 50.2352 494640001 494899201 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 :                                   901.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            943 sec.

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

