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


Performing analysis on: 4FGL_J0929.3+5014_daily_bin1278
RA = 142.327, Dec = 50.2352
tmin = 570585601, tmax = 570844801
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='246283', job_status='RUN', time_executed='2021-08-31 12:35:53.532407', time_epoch_executed='1630438553.53' WHERE source_name='4FGL J0929.3+5014' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246283/ft1_4FGL_J0929.3+5014_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246283/ft1_4FGL_J0929.3+5014_daily_bin1278.fits outfile=/scratch/kocevski/246283/ft1_filteredMKT_4FGL_J0929.3+5014_daily_bin1278.fits ra=142.327 dec=50.2352 rad=12.0 tmin=570585601.0 tmax=570844801.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.01
user 2.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246283/ft1_filtered_4FGL_J0929.3+5014_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/246283/ltcube_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.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/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits
.....................!
real 12.85
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246283/ft1_filtered_4FGL_J0929.3+5014_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/246283/ltcube_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.fits outfile=/scratch/kocevski/246283/expmap_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.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/246283/ltcube_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.fits
.....................!
real 193.21
user 187.35
sys 5.19

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/246283/ft1_filtered_4FGL_J0929.3+5014_daily_bin1278.fits scfile=/scratch/kocevski/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits outfile=/scratch/kocevski/246283/cmap_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=142.327 yref=50.2352 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246283/ft1_filtered_4FGL_J0929.3+5014_daily_bin1278.fits scfile=/scratch/kocevski/246283/ft2_4FGL_J0929.3+5014_daily_bin1278.fits outfile=/scratch/kocevski/246283/cmap_HighResolution_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.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.54
user 0.38
sys 0.14

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 401.647877025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3803       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    30.953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.089       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3315       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16916E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6572       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2515.3       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1903       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13989E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3966       1.0000         .10000E-03   10000.    
    27 'Prefactor '    208.49       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9999.2       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.0001       1.0000         .10000E-03   10000.    
    32 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .32103E-01   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.4679       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=   400.2004     FROM MIGRAD    STATUS=CONVERGED   2018 CALLS     7011 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3694        33.213        .18885E-03    .80327E-05
   2  Prefactor     .10000E-03    47.476        .13480E-02** at limit **
   3  Prefactor     .10000E-03    12.714        .69714E-03** at limit **
   4  norm          .10000E-03    15.811        .77749E-03** at limit **
   5  norm          30.973        35.982        .72018E-04    .46624E-04
   6  Prefactor     .10000E-03    29.646        .10647E-02** at limit **
   7  Prefactor     .10000E-03    42.729        .12775E-02** at limit **
   8  Prefactor     84.925        228.94        .43550E-04    .17849E-04
   9  Prefactor     .10001E-03    347.73        .18142E-02** at limit **
  10  Prefactor     .12984E-03    9998.8        .87028E-03** at limit **
  11  Prefactor     .10003E-03    773.89        .18142E-02** at limit **
  12  Prefactor    10000.0        7332.6        .59986E-02** at limit **
  13  norm          .10000E-03    35.286        .11620E-02** at limit **
  14  Prefactor     .10000E-03    254.81        .18142E-02** at limit **
  15  norm         10000.0        5189.7        .10561E-01** at limit **
  16  Prefactor    10000.0        9579.7        .21297E-02** at limit **
  17  Prefactor     .10000E-03    171.29        .18142E-02** at limit **
  18  Prefactor     .10000E-03    41.440        .12594E-02** at limit **
  19  Prefactor     2514.5        2446.0        .46095E-04   -.22851E-04
  20  Prefactor     .10000E-03    27.171        .10196E-02** at limit **
  21  norm         10000.0        9902.4        .13905E-01** at limit **
  22  Prefactor    10000.0        5442.8        .74132E-02** at limit **
  23  Prefactor     .10000E-03    22.327        .92417E-03** at limit **
  24  Prefactor     .10000E-03    199.96        .18142E-02** at limit **
  25  norm          .10000E-03    209.40        .18142E-02** at limit **
  26  Prefactor    10000.0        5258.3        .73735E-02** at limit **
  27  Prefactor     208.45        289.69        .13998E-03    .27708E-04
  28  norm          .10000E-03    5.5652        .46111E-03** at limit **
  29  norm         10000.0        9978.0        .25115E-02** at limit **
  30  Prefactor    10000.0        2052.0        .18142E-02** at limit **
  31  Prefactor    10000.0        7150.7        .81961E-02** at limit **
  32  norm         10000.0        7902.0        .21420E-02** at limit **
  33  Prefactor     .10002E-03    8071.7        .18365E-02** at limit **
  34  Normalizat    .10000E-01    .22770        .58507E-03** at limit **
  35  Prefactor     1.4678        .47258        .21138E-03   -.10101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36945
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 30.9727
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 84.9247
  Prefactor  = 0.000100008
  Prefactor  = 0.000129843
  Prefactor  = 0.000100031
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2514.54
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 208.45
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100021
  Normalizat = 0.01
  Prefactor  = 1.46778
 **********
 **   18 **HESSE 
 **********

 FCN=   400.2004     FROM HESSE     STATUS=OK           738 CALLS     7749 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3694        33.182        .75542E-05   -1.5290    
   2  Prefactor     .10000E-03    47.476        .26960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.714        .13943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.811        .15550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          30.973        35.983        .14404E-04   -1.4594    
   6  Prefactor     .10000E-03    29.646        .21294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.729        .25549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     84.925        228.95        .87100E-05   -1.3862    
   9  Prefactor     .10001E-03    347.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12984E-03    9999.0        .17406E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    773.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7272.6        .11997E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    35.286        .23239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    254.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm         10000.0        5101.1        .21123E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9574.8        .42593E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    171.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.440        .25188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2514.5        2446.0        .92189E-05   -.52024    
  20  Prefactor     .10000E-03    27.171        .20391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        9925.9        .27809E-02    14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        5438.3        .14826E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.328        .18483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    199.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    209.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        5254.4        .14747E-02    1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     208.45        289.66        .27996E-04   -1.2810    
  28  norm          .10000E-03    5.5652        .92221E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm         10000.0        9977.9        .50229E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        2052.0        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor    10000.0        7147.1        .16392E-02    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm         10000.0        7900.3        .42841E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10002E-03    8071.7        .36729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .22770        .11701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     1.4678        .47236        .84551E-05   -.78446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16138e-10
Minuit parameter uncertainties:
  1  24.1003
  2  4.88713e-05
  3  0.00018045
  4  5.18327e-05
  5  36.0081
  6  7.30352e-05
  7  0.000578147
  8  231.398
  9  0.00343509
  10  15.4305
  11  0.0099723
  12  6.07155
  13  1.23049e-05
  14  0.000957423
  15  33.1737
  16  0.292691
  17  0.000275517
  18  6.82805e-05
  19  2598.58
  20  2.40523e-05
  21  24.403
  22  2.20622
  23  0.000228589
  24  0.000625596
  25  8.56289e-05
  26  273.901
  27  291.681
  28  3.72651e-07
  29  0.107555
  30  0.0106238
  31  281.469
  32  0.106267
  33  0.0259724
  34  7.34503e-07
  35  0.473772
Done.

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

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  2.755e-04  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.468e+00  4.738e-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  7.345e-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: 2.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/246283/likelihoodResults_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.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) = 400.200473465
delta logL = -2.76241429447e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 400.200446122
delta logL = -2.81078143871e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4920       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4680       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=   400.2004     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10317E-03    102.17        .18142E-01** at limit **
   2  Index         2.4086        5.0818        .50000        .20098E-05
   3  Normalizat    .10000E-01    .36291E-03    .58471E-03** at limit **
   4  Prefactor     1.4678        .15218E-01    .21137E-03   -.19295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103171
  Index      = 2.40858
  Normalizat = 0.01
  Prefactor  = 1.46778
 **********
 **   18 **HESSE 
 **********

 FCN=   400.2004     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10317E-03    791.17        .22258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4086        6.8928        .50000       -.54484    
   3  Normalizat    .10000E-01    .29088E-02    .11694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4678        .43084E-01    .84549E-05   -.78446    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39457e-10
Minuit parameter uncertainties:
  1  0.101545
  2  856.388
  3  5.97628e-09
  4  0.0430847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246283': 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) = 400.200445948
delta logL = -1.07574521735e-07

Extracting fit parameters...

4FGL J0929.3+5014
   Spectrum: PowerLaw
366    Prefactor:  1.032e-04  1.015e-01  1.000e-04  1.000e+04 ( 1.000e-13)
367        Index:  2.409e+00  8.564e+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.468e+00  4.308e-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  5.976e-09  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/246283/cmap_HighResolution_570585601_570844801_4FGL_J0929.3+5014_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-01', job_status='DONE', photon_flux_upper_limit='2.40e-06', time_completed='2021-08-31 12:42:44.214219', job_id='246283', GAL2='1.47', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630438964.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1278' AND source_name='4FGL J0929.3+5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:42:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 246283: <4FGL_J0929.3+5014_daily_bin1278> in cluster <slac> Done

Job <4FGL_J0929.3+5014_daily_bin1278> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 12:35:41 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:35:42 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:35:42 2021
Terminated at Tue Aug 31 12:42:44 2021
Results reported at Tue Aug 31 12:42:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0929.3+5014_daily_bin1278 142.327 50.2352 570585601 570844801 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 :                                   405.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   422 sec.
    Turnaround time :                            423 sec.

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

