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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin394
RA = 172.296, Dec = 37.0644
tmin = 341452801, tmax = 341712001
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='828350', job_status='RUN', time_executed='2021-09-03 22:54:37.510334', time_epoch_executed='1630734877.51' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828350/ft1_4FGL_J1129.1+3703_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828350/ft1_4FGL_J1129.1+3703_daily_bin394.fits outfile=/scratch/kocevski/828350/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin394.fits ra=172.296 dec=37.0644 rad=12.0 tmin=341452801.0 tmax=341712001.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.49
user 3.13
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.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/828350/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin394.fits evtable="EVENTS" outfile="/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/828350/ltcube_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.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/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits
.....................!
real 14.18
user 13.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/828350/ltcube_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits outfile=/scratch/kocevski/828350/expmap_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.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/828350/ltcube_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits
.....................!
real 190.93
user 185.26
sys 4.86

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/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits outfile=/scratch/kocevski/828350/cmap_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits outfile=/scratch/kocevski/828350/cmap_HighResolution_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.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.63
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/828350/Model_4FGL_J1129.1+3703_daily_bin394.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/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits.....................!
real 52.13
user 50.59
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits', '/scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits', expMap='/scratch/kocevski/828350/expmap_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits', expCube='/scratch/kocevski/828350/ltcube_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/828350/Model_4FGL_J1129.1+3703_daily_bin394.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/828350/ft1_filtered_4FGL_J1129.1+3703_daily_bin394.fits
Spacecraft file(s): /scratch/kocevski/828350/ft2_4FGL_J1129.1+3703_daily_bin394.fits
Exposure map: /scratch/kocevski/828350/expmap_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits
Exposure cube: /scratch/kocevski/828350/ltcube_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/828350/Model_4FGL_J1129.1+3703_daily_bin394.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) = 5873.6873185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.5548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.570       1.0000         .10000E-03   10000.    
    13 'norm      '    12.881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    185.87       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.2303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.522       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5374       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5990       1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.815       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6742       1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.718       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.0461       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93148       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78033       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=   5873.578     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3421 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9485       -.19594E-06** at limit **
   2  Prefactor     3.5546        3.5285       -.14489E-07    .82699E-04
   3  Prefactor     4.1260        3.2709       -.65186E-08    .80306E-04
   4  Prefactor     .10000E-03    8.9118       -.24214E-06** at limit **
   5  Prefactor     .10000E-03    19.460       -.22603E-05** at limit **
   6  Prefactor     .10000E-03    35.511        .43977E-05** at limit **
   7  Prefactor     .10000E-03    16.479        .24938E-06** at limit **
   8  norm          1.8262        .36850       -.21203E-08   -.81644E-04
   9  Prefactor     .10000E-03    1.7931       -.25083E-06** at limit **
  10  Prefactor     5.8942        12.086        .17161E-06    .73133E-04
  11  Prefactor     .10000E-03    5.5075       -.13738E-07** at limit **
  12  norm          29.570        15.258        .23975E-06    .38253E-04
  13  norm          12.882        11.645        .61442E-06    .72330E-03
  14  Prefactor     .49951        4.1300       -.39009E-06   -.43026E-04
  15  Prefactor     185.88        82.278        .55330E-06   -.11525E-03
  16  Prefactor     .10000E-03    16.410        .11854E-05** at limit **
  17  norm          8.2288        4.3583        .21236E-06    .59018E-04
  18  Prefactor     .10004E-03    47.527        .12175E-04** at limit **
  19  Prefactor     .10001E-03    4.2313       -.13960E-05** at limit **
  20  Prefactor     16.518        54.641        .17895E-05    .20602E-04
  21  norm          3.5373        1.6356       -.83519E-07   -.46143E-03
  22  Prefactor     .10000E-03    6.5079       -.99545E-07** at limit **
  23  norm          3.5989        6.8419        .15404E-07    .67978E-04
  24  Prefactor     41.820        26.939       -.25355E-06   -.86046E-04
  25  Prefactor     .10000E-03    83.082        .44987E-05** at limit **
  26  norm          3.6743        1.3188        .11615E-07    .80401E-04
  27  Prefactor     32.716        32.037        .54790E-06    .60449E-04
  28  Prefactor     6.0448        8.2635       -.56555E-07    .11257E-03
  29  Normalizat    .93145        .17869        .44326E-06    .48210E-04
  30  Prefactor     .78044        .20003        .45173E-06    .90331E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.55465
  Prefactor  = 4.12604
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.82621
  Prefactor  = 0.0001
  Prefactor  = 5.89423
  Prefactor  = 0.0001
  norm       = 29.5704
  norm       = 12.8823
  Prefactor  = 0.499513
  Prefactor  = 185.883
  Prefactor  = 0.0001
  norm       = 8.22883
  Prefactor  = 0.000100035
  Prefactor  = 0.000100007
  Prefactor  = 16.5177
  norm       = 3.53732
  Prefactor  = 0.0001
  norm       = 3.59886
  Prefactor  = 41.8202
  Prefactor  = 0.000100004
  norm       = 3.67428
  Prefactor  = 32.7155
  Prefactor  = 6.04482
  Normalizat = 0.93145
  Prefactor  = 0.780442
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.578     FROM HESSE     STATUS=OK           596 CALLS     4017 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5546        3.5254        .13932E-03   -1.5331    
   3  Prefactor     4.1260        3.2680        .12015E-03   -1.5302    
   4  Prefactor     .10000E-03    8.9189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8262        .36934        .19867E-04   -1.5438    
   9  Prefactor     .10000E-03    4.6838        .19784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8942        12.073        .16538E-03   -1.5222    
  11  Prefactor     .10000E-03    5.5113        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.570        15.251        .73678E-04   -1.4620    
  13  norm          12.882        11.828        .55805E-03   -1.4990    
  14  Prefactor     .49951        7.1385        .22433E-02   -1.5567    
  15  Prefactor     185.88        85.015        .14808E-03   -1.2973    
  16  Prefactor     .10000E-03    16.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2288        4.3522        .96450E-04   -1.5134    
  18  Prefactor     .10004E-03    51.570        .44579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    8.0571        .28625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.518        54.750        .98536E-04   -1.4895    
  21  norm          3.5373        1.6364        .56392E-04   -1.5332    
  22  Prefactor     .10000E-03    6.5150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5989        6.8287        .21300E-03   -1.5329    
  24  Prefactor     41.820        26.850        .61992E-04   -1.4414    
  25  Prefactor     .10000E-03    83.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6743        1.3186        .50854E-04   -1.5325    
  27  Prefactor     32.716        32.049        .70053E-04   -1.4563    
  28  Prefactor     6.0448        8.2568        .16329E-03   -1.5216    
  29  Normalizat    .93145        .20897        .24283E-03   -.95364    
  30  Prefactor     .78044        .23517        .31099E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29813e-08
Minuit parameter uncertainties:
  1  1.96685e-05
  2  3.52558
  3  3.26813
  4  2.49503e-05
  5  0.000317153
  6  0.000808788
  7  2.68971e-06
  8  0.369339
  9  5.08553e-05
  10  12.0777
  11  6.35895e-06
  12  15.2535
  13  11.8305
  14  3.77681
  15  85.0717
  16  6.74044e-05
  17  4.35236
  18  0.00270596
  19  0.000465432
  20  54.9177
  21  1.63646
  22  1.2956e-05
  23  6.8302
  24  26.8581
  25  0.00116076
  26  1.31861
  27  32.0659
  28  8.25836
  29  0.209157
  30  0.235476
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  1.859e+02  8.507e+01  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.804e-01  2.355e-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:  9.314e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.21
Ra Dec: 172.296 37.064
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 6.52e-05 +/- 2.98e-05

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) = 5873.16712199
delta logL = 0.410429653407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.07486056
delta logL = 0.502691081897

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5873.075     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      318 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     247.45        105.63        .12873E-03    .11145E-04
   2  Index         1.8274        .36134        .52001E-02    .41862E-03
   3  Normalizat    .97364        .20104        .23892E-03   -.71377E-04
   4  Prefactor     .75563        .23364        .31635E-03    .41903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 247.448
  Index      = 1.82743
  Normalizat = 0.973639
  Prefactor  = 0.755629
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.075     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     247.45        104.47        .25746E-04   -1.2549    
   2  Index         1.8274        .35694        .10400E-02   -.68738    
   3  Normalizat    .97364        .20105        .95566E-05   -.93919    
   4  Prefactor     .75563        .23382        .12654E-04   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84203e-11
Minuit parameter uncertainties:
  1  104.548
  2  0.357454
  3  0.201205
  4  0.234121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828350': 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): 0
logL (Free Index) = 5873.07486006
delta logL = 0.502691574785

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.474e+02  1.045e+02  1.000e-04  1.000e+04 ( 1.000e-14)
337        Index:  1.827e+00  3.575e-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.556e-01  2.341e-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:  9.736e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.58
Ra Dec: 172.296 37.064
Photon Index (Free Index): 1.83 +/- 0.36
Photon Flux (Free Index): 8.84e-08 +/- 6.01e-08
Energy Flux (Free Index): 9.76e-05 +/- 6.24e-05

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/828350/cmap_HighResolution_341452801_341712001_4FGL_J1129.1+3703_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='9.76e-05', photon_flux_error='6.29e-08', dlogl='5.03e-01', energy_flux='6.52e-05', photon_flux2='8.84e-08', job_status='DONE', time_completed='2021-09-03 23:07:35.238971', photon_index_error2='0.36', photon_index2='1.83', ts='43.21', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='6.24e-05', EG='0.93', time_epoch_completed='1630735655.24', return_code='0', job_id='828350', GAL2='0.76', EG2='0.97', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='6.01e-08', ts2='44.58', photon_index='2.17' WHERE bin_id='394' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 23:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 828350: <4FGL_J1129.1+3703_daily_bin394> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin394> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:51:02 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:54: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:54:20 2021
Terminated at Fri Sep  3 23:07:35 2021
Results reported at Fri Sep  3 23:07:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin394 172.296 37.0644 341452801 341712001 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 :                                   774.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            993 sec.

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

