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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin1406
RA = 172.38, Dec = 30.5789
tmin = 603763201, tmax = 604022401
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='882612', job_status='RUN', time_executed='2021-09-04 01:46:32.463142', time_epoch_executed='1630745192.46' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882612/ft1_4FGL_J1129.5+3034_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882612/ft1_4FGL_J1129.5+3034_daily_bin1406.fits outfile=/scratch/kocevski/882612/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1406.fits ra=172.38 dec=30.5789 rad=12.0 tmin=603763201.0 tmax=604022401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.23
user 4.00
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.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/882612/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/882612/ltcube_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.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/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits
.....................!
real 13.36
user 12.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/882612/ltcube_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits outfile=/scratch/kocevski/882612/expmap_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.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/882612/ltcube_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits
.....................!
real 191.86
user 186.29
sys 5.01

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1129.5+3034 @ 172.38 30.5789

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits outfile=/scratch/kocevski/882612/cmap_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.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=172.38 yref=30.5789 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits outfile=/scratch/kocevski/882612/cmap_HighResolution_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.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=172.38 yref=30.5789 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882612/Model_4FGL_J1129.5+3034_daily_bin1406.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/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits.....................!
real 39.44
user 38.14
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits', '/scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits', expMap='/scratch/kocevski/882612/expmap_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits', expCube='/scratch/kocevski/882612/ltcube_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/882612/Model_4FGL_J1129.5+3034_daily_bin1406.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.5+3034'

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  2.468e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/882612/ft1_filtered_4FGL_J1129.5+3034_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/882612/ft2_4FGL_J1129.5+3034_daily_bin1406.fits
Exposure map: /scratch/kocevski/882612/expmap_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits
Exposure cube: /scratch/kocevski/882612/ltcube_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/882612/Model_4FGL_J1129.5+3034_daily_bin1406.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) = 3915.76288051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2204       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51978E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.853       1.0000         .10000E-03   10000.    
    20 'norm      '    .65647       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.345       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7329       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.347       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0310       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.1418       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2528       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.5544       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59830       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2913       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3915.756     FROM MIGRAD    STATUS=CONVERGED    834 CALLS     4410 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5912        .42086E-06** at limit **
   2  Prefactor     1.3843        42.530        .23774E-05   -.26724E-04
   3  Prefactor     .10000E-03    5.3477       -.36272E-07** at limit **
   4  Prefactor     .10000E-03    36.478        .29105E-05** at limit **
   5  norm          1.2204        .39938        .18305E-07   -.32749E-03
   6  Prefactor     .10000E-03    2.6916        .12419E-06** at limit **
   7  Prefactor     .10000E-03    13.197       -.52370E-06** at limit **
   8  Prefactor     .10000E-03    11.653        .19746E-05** at limit **
   9  norm          .10000E-03    8.2874       -.10383E-05** at limit **
  10  Prefactor     .10000E-03    12.523        .34523E-06** at limit **
  11  norm          .10000E-03    7.5342        .58932E-06** at limit **
  12  Prefactor     17.325        20.477       -.20450E-05   -.44640E-04
  13  Prefactor     1.7386        3.1195        .11604E-06   -.97559E-04
  14  Prefactor     .10000E-03    25.039       -.74644E-06** at limit **
  15  Prefactor     .10000E-03    12.286        .12899E-05** at limit **
  16  norm          6.1936        3.7901       -.14871E-05   -.41799E-03
  17  Prefactor     8.5900        14.014        .11881E-05   -.12593E-03
  18  Prefactor     22.851        9.3307       -.17958E-06   -.21112E-03
  19  Prefactor     50.926        66.220       -.15232E-05   -.10062E-03
  20  norm          .65346        1.9204        .42242E-05   -.65234E-03
  21  Prefactor     23.312        28.791       -.94376E-05   -.10438E-03
  22  Prefactor     4.7356        3.1778        .10356E-05   -.27494E-04
  23  Prefactor     .10000E-03    23.507       -.28054E-05** at limit **
  24  Prefactor     31.429        74.483        .31635E-05   -.49428E-04
  25  norm          1.0313        1.5521        .52229E-06    .76254E-03
  26  Prefactor     .10000E-03    8.8349       -.74199E-06** at limit **
  27  norm          7.1413        3.8682        .14355E-06   -.63287E-04
  28  Prefactor     4.2532        8.6665        .31110E-06   -.31381E-04
  29  Prefactor     .10000E-03    1.3827        .89178E-07** at limit **
  30  Prefactor     1.5540        2.9171        .35454E-06   -.16082E-04
  31  Normalizat    .59797        .23268       -.39862E-05   -.20349E-03
  32  Prefactor     1.2917        .25601       -.41398E-06   -.26904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.38433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3249
  Prefactor  = 1.73864
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.19358
  Prefactor  = 8.58997
  Prefactor  = 22.8514
  Prefactor  = 50.926
  norm       = 0.653457
  Prefactor  = 23.3115
  Prefactor  = 4.73564
  Prefactor  = 0.0001
  Prefactor  = 31.4294
  norm       = 1.03134
  Prefactor  = 0.0001
  norm       = 7.14134
  Prefactor  = 4.25316
  Prefactor  = 0.0001
  Prefactor  = 1.55398
  Normalizat = 0.597971
  Prefactor  = 1.29166
 **********
 **   18 **HESSE 
 **********

 FCN=   3915.756     FROM HESSE     STATUS=OK           659 CALLS     5069 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5922        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3843        42.984        .39557E-03   -1.5473    
   3  Prefactor     .10000E-03    5.3530        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2204        .39965        .21801E-04   -1.5487    
   6  Prefactor     .10000E-03    2.7748        .20028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.3077        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.5580        .16779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.325        20.504        .96158E-04   -1.4875    
  13  Prefactor     1.7386        3.0691        .13397E-03   -1.5444    
  14  Prefactor     .10000E-03    25.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.275        .40904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1936        3.7766        .86125E-04   -1.5210    
  17  Prefactor     8.5900        13.559        .13667E-03   -1.5122    
  18  Prefactor     22.851        9.2913        .83798E-04   -1.4752    
  19  Prefactor     50.926        66.358        .56238E-04   -1.4280    
  20  norm          .65346        1.9340        .10291E-03   -1.5546    
  21  Prefactor     23.312        28.893        .82903E-04   -1.4742    
  22  Prefactor     4.7356        3.1758        .82836E-04   -1.5273    
  23  Prefactor     .10000E-03    23.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.429        74.576        .71565E-04   -1.4586    
  25  norm          1.0313        1.4514        .88967E-03   -1.5505    
  26  Prefactor     .10000E-03    8.8363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.1413        3.8514        .85250E-04   -1.5173    
  28  Prefactor     4.2532        8.6621        .19538E-03   -1.5295    
  29  Prefactor     .10000E-03    1.3884        .71723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.5540        2.8744        .13741E-03   -1.5459    
  31  Normalizat    .59797        .26844        .30786E-03   -1.0807    
  32  Prefactor     1.2917        .30021        .25832E-03   -.83555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62081e-10
Minuit parameter uncertainties:
  1  5.92897e-06
  2  15.4393
  3  9.86231e-06
  4  6.36977e-05
  5  0.399648
  6  2.23245e-05
  7  4.61928e-05
  8  2.70438e-05
  9  1.78357e-05
  10  9.27632e-05
  11  4.157e-05
  12  20.5127
  13  3.06935
  14  4.02438e-05
  15  0.000612075
  16  3.7767
  17  13.5643
  18  9.29184
  19  66.455
  20  1.93422
  21  28.9106
  22  3.17593
  23  4.90356e-05
  24  74.7989
  25  1.45142
  26  1.48018e-06
  27  3.85154
  28  8.6646
  29  5.08283e-09
  30  2.87463
  31  0.269026
  32  0.300617
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.121e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.292e+00  3.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  5.980e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.380 30.579
Photon Flux Upper Limit: 8.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882612/likelihoodResults_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.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) = 3915.75645736
delta logL = -0.000100173499959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3915.75635804
delta logL = -8.5224473878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6425       1.0000          .0000       10.000    
     3 'Normalizat'    .59797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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=   3915.756     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      296 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11036E-03    98.259        .36285E-02** at limit **
   2  Index         2.5020        8.1805        .50000        .17828E-04
   3  Normalizat    .59797        .81774E-02    .30786E-03   -.23918E-03
   4  Prefactor     1.2917        .98024E-02    .25832E-03   -.24278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110362
  Index      = 2.50198
  Normalizat = 0.597969
  Prefactor  = 1.29166
 **********
 **   18 **HESSE 
 **********

 FCN=   3915.756     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11036E-03    449.91        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5020        5.7898        .50000       -.52314    
   3  Normalizat    .59797        .17701E-01    .12314E-04   -1.0807    
   4  Prefactor     1.2917        .21219E-01    .51664E-04   -.83555    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14364e-08
Minuit parameter uncertainties:
  1  0.137601
  2  382.863
  3  0.017701
  4  0.0212187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882612': 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) = 3915.75635747
delta logL = -2.7831947591e-07

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  1.104e-04  1.376e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.502e+00  3.829e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.009e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.292e+00  2.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  5.980e-01  1.770e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.380 30.579

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/882612/cmap_HighResolution_603763201_604022401_4FGL_J1129.5+3034_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.99e-08', time_completed='2021-09-04 01:59:11.219695', job_id='882612', GAL2='1.29', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1630745951.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1406' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:59:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 882612: <4FGL_J1129.5+3034_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin1406> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 01:46:12 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:46:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 01:46:16 2021
Terminated at Sat Sep  4 01:59:11 2021
Results reported at Sat Sep  4 01:59:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin1406 172.38 30.5789 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.5+3034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            779 sec.

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

