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


Performing analysis on: 4FGL_J1129.5+3034_daily_bin95
RA = 172.38, Dec = 30.5789
tmin = 263952001, tmax = 264211201
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='873283', job_status='RUN', time_executed='2021-09-04 01:16:37.903065', time_epoch_executed='1630743397.9' WHERE source_name='4FGL J1129.5+3034' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873283/ft1_4FGL_J1129.5+3034_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits


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

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

Done.
real 1.73
user 1.52
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.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/873283/ft1_filteredMKT_4FGL_J1129.5+3034_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/873283/ltcube_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.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/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits
.....................!
real 16.42
user 16.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/873283/ltcube_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits outfile=/scratch/kocevski/873283/expmap_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.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/873283/ltcube_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits
.....................!
real 191.02
user 186.28
sys 4.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 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/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits scfile=/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits outfile=/scratch/kocevski/873283/cmap_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits scfile=/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits outfile=/scratch/kocevski/873283/cmap_HighResolution_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits', '/scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits', expMap='/scratch/kocevski/873283/expmap_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits', expCube='/scratch/kocevski/873283/ltcube_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873283/Model_4FGL_J1129.5+3034_daily_bin95.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/873283/ft1_filtered_4FGL_J1129.5+3034_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/873283/ft2_4FGL_J1129.5+3034_daily_bin95.fits
Exposure map: /scratch/kocevski/873283/expmap_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits
Exposure cube: /scratch/kocevski/873283/ltcube_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873283/Model_4FGL_J1129.5+3034_daily_bin95.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) = 5677.05743018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8347       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37843E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.000       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2559       1.0000         .10000E-03   10000.    
    16 'norm      '    .48704       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.012       1.0000         .10000E-03   10000.    
    24 'Prefactor '    122.98       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7963       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2441       1.0000         .10000E-03   10000.    
    27 'norm      '    .85074       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.2762       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.9740       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.4680       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92019       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80316       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=   5676.957     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4471 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.047        .96051E-06** at limit **
   2  Prefactor     12.735        11.363        .57208E-07   -.27459E-04
   3  Prefactor     6.1008        7.0613        .17382E-06   -.18593E-03
   4  Prefactor     2.8349        26.130        .27127E-06   -.64131E-05
   5  norm          2.2551        .40500       -.94623E-08   -.88023E-04
   6  Prefactor     .10005E-03    2.7838        .25721E-05** at limit **
   7  Prefactor     .10000E-03    10.810       -.11456E-06** at limit **
   8  Prefactor     .10000E-03    6.4215        .13226E-06** at limit **
   9  norm          2.8367        7.6211        .33861E-05    .43727E-03
  10  Prefactor     13.999        7.7491        .97175E-08    .21290E-05
  11  norm          .10000E-03    4.1915        .43797E-07** at limit **
  12  Prefactor     .10000E-03    3.5915       -.80226E-07** at limit **
  13  Prefactor     .10000E-03    1.3029        .12871E-06** at limit **
  14  Prefactor     .10000E-03    42.593       -.29921E-05** at limit **
  15  Prefactor     3.2287        35.220        .97723E-05    .12886E-03
  16  norm          .48675        1.4468        .37004E-06    .33384E-03
  17  Prefactor     2.2492        21.149       -.70693E-05   -.19938E-03
  18  Prefactor     1.2881        4.1834       -.21631E-06    .83590E-05
  19  Prefactor     .10000E-03    57.244        .22466E-05** at limit **
  20  norm          .10000E-03    .36295        .32683E-06** at limit **
  21  Prefactor     .10000E-03    12.196        .12367E-06** at limit **
  22  Prefactor     .10000E-03    1.0157       -.13125E-06** at limit **
  23  Prefactor     17.017        26.715       -.13973E-07    .46036E-04
  24  Prefactor     123.00        58.306       -.19085E-05    .12648E-03
  25  norm          1.7962        .98012        .23492E-07    .18283E-03
  26  Prefactor     5.2421        25.083        .75237E-06    .70289E-06
  27  norm          .85076        2.0896       -.11242E-06   -.22567E-03
  28  Prefactor     6.2783        6.0351        .18831E-08    .14760E-04
  29  Prefactor     5.9738        2.6980       -.38489E-07   -.18780E-03
  30  Prefactor     4.4678        2.2635        .31742E-07    .10365E-03
  31  Normalizat    .92055        .17031       -.13953E-06   -.32862E-04
  32  Prefactor     .80273        .18569        .16479E-06   -.78940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 12.7348
  Prefactor  = 6.10081
  Prefactor  = 2.8349
  norm       = 2.25514
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83671
  Prefactor  = 13.9989
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.22868
  norm       = 0.486749
  Prefactor  = 2.24918
  Prefactor  = 1.28809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0172
  Prefactor  = 123.004
  norm       = 1.79615
  Prefactor  = 5.2421
  norm       = 0.850762
  Prefactor  = 6.27833
  Prefactor  = 5.97385
  Prefactor  = 4.46784
  Normalizat = 0.920546
  Prefactor  = 0.802726
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.957     FROM HESSE     STATUS=OK           671 CALLS     5142 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.735        11.298        .11223E-03   -1.4994    
   3  Prefactor     6.1008        7.0086        .16250E-03   -1.5214    
   4  Prefactor     2.8349        25.804        .24153E-03   -1.5371    
   5  norm          2.2551        .40528        .19589E-04   -1.5408    
   6  Prefactor     .10005E-03    6.6960        .17354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8367        7.9583        .12074E-02   -1.5371    
  10  Prefactor     13.999        7.7457        .10705E-03   -1.4959    
  11  norm          .10000E-03    4.2062        .15060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5999        .13943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3384        .16713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2287        34.562        .22445E-03   -1.5349    
  16  norm          .48675        1.3815        .14707E-03   -1.5568    
  17  Prefactor     2.2492        20.475        .27577E-03   -1.5408    
  18  Prefactor     1.2881        4.0825        .25570E-03   -1.5481    
  19  Prefactor     .10000E-03    57.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .37829        .88335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2137        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.017        26.676        .97105E-04   -1.4883    
  24  Prefactor     123.00        57.631        .18147E-03   -1.3485    
  25  norm          1.7962        .97901        .52947E-04   -1.5440    
  26  Prefactor     5.2421        24.843        .17553E-03   -1.5250    
  27  norm          .85076        1.8490        .15547E-02   -1.5523    
  28  Prefactor     6.2783        6.0327        .16023E-03   -1.5207    
  29  Prefactor     5.9738        2.7083        .37971E-03   -1.5219    
  30  Prefactor     4.4678        2.2572        .77715E-04   -1.5285    
  31  Normalizat    .92055        .20138        .22791E-03   -.95742    
  32  Prefactor     .80273        .22079        .28207E-03   -.99628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42676e-08
Minuit parameter uncertainties:
  1  0.000281604
  2  11.2997
  3  7.00958
  4  17.1151
  5  0.405282
  6  0.00112861
  7  9.11469e-06
  8  1.06077e-05
  9  7.96131
  10  7.74626
  11  1.65207e-05
  12  9.473e-07
  13  4.84631e-07
  14  0.0006368
  15  21.1426
  16  1.38157
  17  13.5781
  18  4.08336
  19  0.000321636
  20  9.48312e-06
  21  1.74455e-05
  22  1.94999e-05
  23  26.6944
  24  57.6575
  25  0.979019
  26  22.8389
  27  1.84915
  28  6.03327
  29  2.70838
  30  2.25721
  31  0.201547
  32  0.221033
Done.

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

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  3.229e+00  2.114e+01  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:  8.027e-01  2.210e-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:  9.205e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/873283/likelihoodResults_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.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): 0
logL (Free Index) = 5676.34216379
delta logL = 0.615082204727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5676.29883568
delta logL = 0.658410311585

Fit tolerance = 1e-08

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

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

 FCN=   5676.299     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74174        12.330        .12231E-01    .94468E-03
   2  Index         4.3143        2.9873        .11037        .14739E-03
   3  Normalizat    .85956        .37849E-01    .44379E-01    .88370E-05
   4  Prefactor     .84688        .44226E-01    .44327E-01    .28128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.741736
  Index      = 4.31431
  Normalizat = 0.859558
  Prefactor  = 0.846881
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.299     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      301 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74174        31.552        .59895E-03   -1.5536    
   2  Index         4.3143        7.1303        .55203E-02   -.13757    
   3  Normalizat    .85956        .14281        .23507E-03   -.97896    
   4  Prefactor     .84688        .16446        .27515E-03   -.98023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15111e-07
Minuit parameter uncertainties:
  1  9.6802
  2  6.37241
  3  0.142876
  4  0.16456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873283': 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) = 5676.29883435
delta logL = 0.658411643642

Extracting fit parameters...

4FGL J1129.5+3034
   Spectrum: PowerLaw
301    Prefactor:  7.417e-01  9.680e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  4.314e+00  6.372e+00  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:  8.469e-01  1.646e-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:  8.596e-01  1.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 172.380 30.579
Photon Index (Free Index): 4.31 +/- 6.37
Photon Flux (Free Index): 4.83e-08 +/- 4.44e-08
Energy Flux (Free Index): 6.90e-06 +/- 9.47e-06

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/873283/cmap_HighResolution_263952001_264211201_4FGL_J1129.5+3034_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', comment='SUCCESS', energy_flux2='6.90e-06', dlogl='6.58e-01', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-09-04 01:32:16.337193', photon_index_error2='6.37', photon_index2='4.31', ts='0.04', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.56e-08', energy_flux_error2='9.47e-06', EG='0.92', time_epoch_completed='1630744336.34', return_code='0', job_id='873283', GAL2='0.85', EG2='0.86', return_code2='102', photon_flux_error2='4.44e-08', ts2='1.45', photon_index='2.46' WHERE bin_id='95' AND source_name='4FGL J1129.5+3034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 01:32:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 873283: <4FGL_J1129.5+3034_daily_bin95> in cluster <slac> Done

Job <4FGL_J1129.5+3034_daily_bin95> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 01:16:04 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 01:16: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:16:16 2021
Terminated at Sat Sep  4 01:32:17 2021
Results reported at Sat Sep  4 01:32:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.5+3034_daily_bin95 172.38 30.5789 263952001 264211201 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 :                                   934.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            973 sec.

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

