/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 207 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0929.3+5014_daily_bin1402
RA = 142.327, Dec = 50.2352
tmin = 602726401, tmax = 602985601
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='247657', job_status='RUN', time_executed='2021-08-31 12:44:13.430754', time_epoch_executed='1630439053.43' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247657/ft1_4FGL_J0929.3+5014_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247657/ft2_4FGL_J0929.3+5014_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247657/ft1_4FGL_J0929.3+5014_daily_bin1402.fits outfile=/scratch/kocevski/247657/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1402.fits ra=142.327 dec=50.2352 rad=12.0 tmin=602726401.0 tmax=602985601.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 2.40
user 2.11
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247657/ft2_4FGL_J0929.3+5014_daily_bin1402.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/247657/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/247657/ft1_filtered_4FGL_J0929.3+5014_daily_bin1402.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.51
user 0.27
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247657/ft1_filtered_4FGL_J0929.3+5014_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/247657/ft2_4FGL_J0929.3+5014_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/247657/ltcube_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.fits outfile=/scratch/kocevski/247657/expmap_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.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/247657/ltcube_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.fits
.....................!
real 149.07
user 143.53
sys 3.21

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/247657/ft1_filtered_4FGL_J0929.3+5014_daily_bin1402.fits scfile=/scratch/kocevski/247657/ft2_4FGL_J0929.3+5014_daily_bin1402.fits outfile=/scratch/kocevski/247657/cmap_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.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.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247657/ft1_filtered_4FGL_J0929.3+5014_daily_bin1402.fits scfile=/scratch/kocevski/247657/ft2_4FGL_J0929.3+5014_daily_bin1402.fits outfile=/scratch/kocevski/247657/cmap_HighResolution_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.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.46
user 0.32
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15443E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13304E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21671E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .19091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.803       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44287E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11552E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2615       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    30 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.5116       1.0000         .10000E-03   10000.    
    32 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    33 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .68782       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=   396.2240     FROM MIGRAD    STATUS=CONVERGED   1796 CALLS     7590 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.501        16.697        .68417E-04   -.48812E-06
   2  Prefactor     .10000E-03    30.378        .10757E-02** at limit **
   3  Prefactor     .10000E-03    15.211        .75757E-03** at limit **
   4  norm          .10000E-03    10.734        .63838E-03** at limit **
   5  norm          13.114        20.474        .10774E-03   -.24995E-05
   6  Prefactor     .10000E-03    85.612        .17977E-02** at limit **
   7  Prefactor     .10000E-03    18.277        .83929E-03** at limit **
   8  Prefactor     .10000E-03    187.64        .18142E-02** at limit **
   9  Prefactor     .10000E-03    196.21        .18142E-02** at limit **
  10  Prefactor     .10000E-03    6666.5        .18142E-02** at limit **
  11  Prefactor     .10000E-03    117.51        .18142E-02** at limit **
  12  Prefactor     .10000E-03    6680.5        .18142E-02** at limit **
  13  norm          .10000E-03    10.366        .62765E-03** at limit **
  14  Prefactor     .10000E-03    75.900        .16999E-02** at limit **
  15  norm          .10000E-03    7976.9        .19872E-02** at limit **
  16  Prefactor     .10000E-03    508.92        .21128E-02** at limit **
  17  Prefactor     .10000E-03    78.931        .17310E-02** at limit **
  18  Prefactor     .10000E-03    31.216        .10878E-02** at limit **
  19  Prefactor     .10000E-03    993.82        .18142E-02** at limit **
  20  Prefactor     .10000E-03    21.697        .90446E-03** at limit **
  21  norm         10000.0        5390.6        .77724E-02** at limit **
  22  Prefactor    10000.0        5226.6        .52051E-02** at limit **
  23  Prefactor     .10000E-03    6.9403        .51240E-03** at limit **
  24  Prefactor     .10000E-03    279.49        .21216E-02** at limit **
  25  norm          .10000E-03    31.519        .10922E-02** at limit **
  26  Prefactor    10000.0        9837.8        .65846E-02** at limit **
  27  Prefactor     .10000E-03    76.428        .17031E-02** at limit **
  28  norm          .10000E-03    3.9717        .38774E-03** at limit **
  29  norm         10000.0        8539.2        .20279E-02** at limit **
  30  Prefactor    10000.0        1628.9        .20733E-02** at limit **
  31  Prefactor    10000.0        5115.2        .78636E-02** at limit **
  32  norm         10000.0        6950.3        .21350E-02** at limit **
  33  Prefactor    10000.0        7565.1        .21330E-02** at limit **
  34  Normalizat    .10000E-01    .15656        .48166E-03** at limit **
  35  Prefactor     .68439        .25980        .18203E-03    .46286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.1142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.684394
 **********
 **   18 **HESSE 
 **********

 FCN=   396.2240     FROM HESSE     STATUS=OK           736 CALLS     8326 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.501        16.698        .27367E-05   -1.4824    
   2  Prefactor     .10000E-03    30.378        .21515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.211        .15151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.734        .12768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.114        20.474        .43097E-05   -1.4984    
   6  Prefactor     .10000E-03    85.624        .35954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.277        .16786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    187.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    196.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6666.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    117.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6680.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.366        .12553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.900        .33997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7976.9        .39744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    508.92        .42256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    78.931        .34620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.216        .21755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    993.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.698        .18089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        5390.6        .15545E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        5226.6        .10410E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9403        .10248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    279.50        .42432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    31.519        .21844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        9837.7        .13169E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    76.428        .34062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.9717        .77548E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm         10000.0        8539.2        .40558E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        1628.9        .41465E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor    10000.0        5115.5        .15727E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm         10000.0        6950.3        .42700E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor    10000.0        7565.1        .42660E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .15656        .96333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .68439        .25981        .36406E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8375e-12
Minuit parameter uncertainties:
  1  16.7018
  2  1.21763e-05
  3  2.13717e-06
  4  2.0509e-06
  5  20.4847
  6  8.19771e-05
  7  1.86565e-06
  8  0.000188238
  9  6.99097e-05
  10  0.00116886
  11  1.22724e-05
  12  0.000393808
  13  4.8663e-07
  14  4.73353e-05
  15  0.0220465
  16  0.000147872
  17  5.9306e-06
  18  9.98012e-06
  19  0.000348992
  20  1.00999e-06
  21  0.0338151
  22  0.0161214
  23  2.84329e-07
  24  0.000302883
  25  5.32291e-06
  26  0.184637
  27  9.93412e-06
  28  2.37819e-08
  29  0.00545151
  30  8.24196e-05
  31  0.625495
  32  0.00157177
  33  0.000249036
  34  1.54155e-07
  35  0.260268
Done.

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

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  5.931e-06  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.844e-01  2.603e-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.000e-02  1.542e-07  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.20e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247657/likelihoodResults_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.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) = 396.224065088
delta logL = -6.01057888616e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 396.224005588
delta logL = -6.05567095135e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5515       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68439       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=   396.2240     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10479E-03    65.592        .14029E-01** at limit **
   2  Index         2.4439        8.4700        .50000        .46634E-05
   3  Normalizat    .10000E-01    .36276E-03    .48045E-03** at limit **
   4  Prefactor     .68439        .11355E-01    .18225E-03    .26200E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104791
  Index      = 2.44394
  Normalizat = 0.01
  Prefactor  = 0.684394
 **********
 **   18 **HESSE 
 **********

 FCN=   396.2240     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10479E-03    614.85        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4439        6.1447        .50000       -.53660    
   3  Normalizat    .10000E-01    .35329E-02    .96090E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68439        .35441E-01    .36449E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05998e-09
Minuit parameter uncertainties:
  1  0.109695
  2  896.534
  3  2.85307e-07
  4  0.0354425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247657': 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) = 396.224005268
delta logL = -2.85939961486e-07

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.048e-04  1.097e-01  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.444e+00  8.965e+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:  6.844e-01  3.544e-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:  1.000e-02  2.853e-07  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/247657/cmap_HighResolution_602726401_602985601_4FGL_J0929.3+5014_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-02', job_status='DONE', photon_flux_upper_limit='1.20e-06', time_completed='2021-08-31 12:54:04.576125', job_id='247657', GAL2='0.68', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630439644.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1402' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 247657: <4FGL_J0929.3+5014_daily_bin1402> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin1402> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 12:40:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:40:35 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:40:35 2021
Terminated at Tue Aug 31 12:54:05 2021
Results reported at Tue Aug 31 12:54:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin1402 142.327 50.2352 602726401 602985601 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 :                                   331.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             176.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

