/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 3 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.1+3703_daily_bin95
RA = 172.296, Dec = 37.0644
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='826296', job_status='RUN', time_executed='2021-09-03 22:46:31.497652', time_epoch_executed='1630734391.5' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826296

Creating custom pfile directory:
/scratch/kocevski/826296/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/826296/ft1_4FGL_J1129.1+3703_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/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826296/ft1_4FGL_J1129.1+3703_daily_bin95.fits outfile=/scratch/kocevski/826296/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin95.fits ra=172.296 dec=37.0644 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.77
user 1.53
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_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/826296/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/826296/ltcube_263952001_264211201_4FGL_J1129.1+3703_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/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits
.....................!
real 14.88
user 14.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/826296/ltcube_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits outfile=/scratch/kocevski/826296/expmap_263952001_264211201_4FGL_J1129.1+3703_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/826296/ltcube_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits
.....................!
real 191.14
user 186.15
sys 4.31

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

Setting source of interest to:
4FGL J1129.1+3703 @ 172.296 37.0644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits outfile=/scratch/kocevski/826296/cmap_263952001_264211201_4FGL_J1129.1+3703_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.296 yref=37.0644 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits outfile=/scratch/kocevski/826296/cmap_HighResolution_263952001_264211201_4FGL_J1129.1+3703_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.296 yref=37.0644 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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826296/Model_4FGL_J1129.1+3703_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/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits.....................!
real 52.32
user 50.91
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits', '/scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits', expMap='/scratch/kocevski/826296/expmap_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits', expCube='/scratch/kocevski/826296/ltcube_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826296/Model_4FGL_J1129.1+3703_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.1+3703'

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  7.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/826296/ft1_filtered_4FGL_J1129.1+3703_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/826296/ft2_4FGL_J1129.1+3703_daily_bin95.fits
Exposure map: /scratch/kocevski/826296/expmap_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits
Exposure cube: /scratch/kocevski/826296/ltcube_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826296/Model_4FGL_J1129.1+3703_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) = 6000.38200964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.460       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5152       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7317       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51105E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .29554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .99571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63074       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.130       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1836       1.0000         .10000E-03   10000.    
    25 'Prefactor '    93.666       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5981       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7145       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6000.300     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3382 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.264       -.11647E-04** at limit **
   2  Prefactor     31.460        8.3518        .10034E-07   -.43418E-05
   3  Prefactor     12.347        6.4161        .12184E-06    .31193E-03
   4  Prefactor     .10000E-03    8.3380        .49987E-06** at limit **
   5  Prefactor     .10000E-03    18.586       -.23382E-06** at limit **
   6  Prefactor     .10001E-03    82.123        .40809E-04** at limit **
   7  Prefactor     6.5173        7.5347        .16225E-05    .97639E-04
   8  norm          2.1493        .39321       -.28024E-08    .37339E-03
   9  Prefactor     .10000E-03    1.4234       -.10059E-07** at limit **
  10  Prefactor     .10000E-03    7.4025       -.71368E-06** at limit **
  11  Prefactor     .10000E-03    5.8409       -.45031E-06** at limit **
  12  norm          1.7315        3.1534        .12961E-05   -.21419E-02
  13  norm          .10000E-03    4.1598       -.35188E-07** at limit **
  14  Prefactor     .10000E-03    1.0457       -.31365E-07** at limit **
  15  Prefactor     .10000E-03    30.054        .32405E-05** at limit **
  16  Prefactor     .10150E-03    19.717       -.42215E-05** at limit **
  17  norm          .29539        1.4382        .58445E-07   -.23263E-03
  18  Prefactor     .99878        13.645        .17604E-05    .15605E-03
  19  Prefactor     .62921        5.6000        .10455E-06   -.12440E-03
  20  Prefactor     .10000E-03    108.45       -.24658E-04** at limit **
  21  norm          .10000E-03    .36082       -.62249E-08** at limit **
  22  Prefactor     .10000E-03    5.7852        .29961E-06** at limit **
  23  norm          15.128        8.7248       -.18856E-06    .31541E-04
  24  Prefactor     8.1863        25.800        .27026E-06    .37414E-04
  25  Prefactor     93.666        48.885        .65017E-06    .62599E-04
  26  norm          1.5981        .91246       -.31019E-08    .74377E-04
  27  Prefactor     1.2604        88.603        .12082E-06   -.13356E-04
  28  Prefactor     4.7145        4.9097       -.92309E-06   -.64371E-04
  29  Normalizat    1.1077        .17229       -.54367E-07    .44156E-03
  30  Prefactor     .74154        .19694       -.14167E-06    .22451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.4596
  Prefactor  = 12.3467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 6.51735
  norm       = 2.14928
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73151
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101495
  norm       = 0.295391
  Prefactor  = 0.998782
  Prefactor  = 0.629208
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1285
  Prefactor  = 8.18631
  Prefactor  = 93.6664
  norm       = 1.5981
  Prefactor  = 1.26043
  Prefactor  = 4.71454
  Normalizat = 1.10765
  Prefactor  = 0.74154
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.300     FROM HESSE     STATUS=OK           590 CALLS     3972 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.460        8.3553        .71437E-04   -1.4586    
   3  Prefactor     12.347        6.4093        .11400E-03   -1.5005    
   4  Prefactor     .10000E-03    8.3393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    82.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5173        7.4962        .15723E-03   -1.5197    
   8  norm          2.1493        .39384        .20060E-04   -1.5415    
   9  Prefactor     .10000E-03    6.4416        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7315        7.3057        .15950E-02   -1.5445    
  13  norm          .10000E-03    4.1707        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0693        .15432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10150E-03    123.09        .54249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29539        1.3634        .17831E-03   -1.5599    
  18  Prefactor     .99878        27.337        .45052E-02   -1.5508    
  19  Prefactor     .62921        5.4867        .33954E-03   -1.5549    
  20  Prefactor     .10000E-03    109.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .37527        .90352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.128        8.7247        .10297E-03   -1.4930    
  24  Prefactor     8.1863        25.445        .14015E-03   -1.5136    
  25  Prefactor     93.666        48.703        .41526E-04   -1.3769    
  26  norm          1.5981        .91212        .54098E-04   -1.5455    
  27  Prefactor     1.2604        88.744        .39671E-03   -1.5483    
  28  Prefactor     4.7145        4.9097        .17036E-03   -1.5274    
  29  Normalizat    1.1077        .20169        .21899E-03   -.89506    
  30  Prefactor     .74154        .23097        .31135E-03   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54295e-08
Minuit parameter uncertainties:
  1  0.000299474
  2  8.35557
  3  6.40967
  4  5.37413e-06
  5  7.09332e-06
  6  0.001352
  7  7.49728
  8  0.393838
  9  0.000133326
  10  5.35251e-06
  11  3.48326e-06
  12  7.11461
  13  6.71481e-07
  14  4.58095e-07
  15  6.76474e-05
  16  0.0271882
  17  1.26906
  18  10.4553
  19  3.71623
  20  0.000530334
  21  3.82967e-07
  22  2.87347e-06
  23  8.72538
  24  25.4789
  25  48.7233
  26  0.912128
  27  21.1842
  28  4.91013
  29  0.201835
  30  0.231267
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  6.765e-05  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.415e-01  2.313e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.108e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826296/likelihoodResults_263952001_264211201_4FGL_J1129.1+3703_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): 102
logL (Free Index) = 6000.29998766
delta logL = -0.000157625624524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6000.29983017
delta logL = -1.36689777719e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2472       1.0000          .0000       10.000    
     3 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74154       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6000.300     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    587.08        .90712E-02** at limit **
   2  Index         2.2337        8.6460        .50000        .38077E-05
   3  Normalizat    1.1077        .18853E-01    .37697E-01    .44687E-05
   4  Prefactor     .74154        .22470E-01    .70357E-01    .20795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23373
  Normalizat = 1.10765
  Prefactor  = 0.741541
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.300     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2237.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2337        7.1674        .50000       -.58626    
   3  Normalizat    1.1077        .41181E-01    .21899E-03   -.89507    
   4  Prefactor     .74154        .48997E-01    .31135E-03   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.25664e-10
Minuit parameter uncertainties:
  1  0.000359966
  2  38.142
  3  0.041182
  4  0.0489998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826296': 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) = 6000.29983009
delta logL = -5.42440830031e-08

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  3.600e-04  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  2.234e+00  3.814e+01  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.415e-01  4.900e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.108e+00  4.118e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.296 37.064

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/826296/cmap_HighResolution_263952001_264211201_4FGL_J1129.1+3703_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-03 23:01:15.292289', job_id='826296', GAL2='0.74', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630735275.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-5.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='95' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 826296: <4FGL_J1129.1+3703_daily_bin95> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin95> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 22:46:18 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:46:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:46:20 2021
Terminated at Fri Sep  3 23:01:16 2021
Results reported at Fri Sep  3 23:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin95 172.296 37.0644 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.1+3703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   880.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

