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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin337
RA = 322.296, Dec = -2.6829
tmin = 326678401, tmax = 326937601
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='504677', job_status='RUN', time_executed='2021-09-26 14:31:23.588400', time_epoch_executed='1632691883.59' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504677/ft1_4FGL_J2129.1-0240_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504677/ft1_4FGL_J2129.1-0240_daily_bin337.fits outfile=/scratch/kocevski/504677/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin337.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=326678401.0 tmax=326937601.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.43
user 3.19
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.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/504677/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin337.fits evtable="EVENTS" outfile="/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/504677/ltcube_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.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/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits
.....................!
real 14.44
user 14.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/504677/ltcube_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits outfile=/scratch/kocevski/504677/expmap_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.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/504677/ltcube_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits
.....................!
real 192.16
user 186.74
sys 4.82

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

Setting source of interest to:
4FGL J2129.1-0240 @ 322.296 -2.6829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits outfile=/scratch/kocevski/504677/cmap_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.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=322.296 yref=-2.6829 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits outfile=/scratch/kocevski/504677/cmap_HighResolution_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.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=322.296 yref=-2.6829 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504677/Model_4FGL_J2129.1-0240_daily_bin337.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/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits.....................!
real 75.62
user 74.24
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits', '/scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits', expMap='/scratch/kocevski/504677/expmap_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits', expCube='/scratch/kocevski/504677/ltcube_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504677/Model_4FGL_J2129.1-0240_daily_bin337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.1-0240'

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504677/ft1_filtered_4FGL_J2129.1-0240_daily_bin337.fits
Spacecraft file(s): /scratch/kocevski/504677/ft2_4FGL_J2129.1-0240_daily_bin337.fits
Exposure map: /scratch/kocevski/504677/expmap_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits
Exposure cube: /scratch/kocevski/504677/ltcube_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504677/Model_4FGL_J2129.1-0240_daily_bin337.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) = 7622.48410873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    36.930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1830       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2379       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61565       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7622.477     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2846 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7998        3.4427        .32357E-06   -.20325E-02
   2  Prefactor     6.8101        16.380       -.47703E-06   -.15157E-04
   3  Prefactor     .10000E-03    26.337        .52364E-05** at limit **
   4  Prefactor     22.797        21.903       -.84773E-07    .46874E-05
   5  Prefactor     .10000E-03    6.9870       -.20310E-05** at limit **
   6  Prefactor     78.206        61.839        .16947E-05    .11340E-04
   7  Prefactor     .10000E-03    6.2447        .10182E-05** at limit **
   8  Prefactor     .10000E-03    10.573        .56393E-05** at limit **
   9  Prefactor     34.680        25.736       -.38448E-06   -.55965E-06
  10  Prefactor     .10000E-03    25.676        .14328E-06** at limit **
  11  Prefactor     2.6229        3.9936       -.15742E-05   -.18075E-03
  12  Prefactor     4.7815        2.7138       -.40099E-07    .38294E-04
  13  Prefactor     .10000E-03    25.227       -.36532E-05** at limit **
  14  Prefactor     .10000E-03    11.672       -.54126E-05** at limit **
  15  norm          .10000E-03    3.5137       -.30478E-07** at limit **
  16  Prefactor     .10000E-03    52.464       -.17193E-05** at limit **
  17  norm          36.921        21.620       -.22014E-05   -.42009E-04
  18  Prefactor     3.1816        4.4740        .25174E-06   -.87555E-03
  19  Prefactor     21.800        8.9694        .21001E-07   -.40405E-05
  20  Prefactor     4.2379        7.1584        .23738E-06   -.67287E-03
  21  Prefactor     .10000E-03    5.4242        .16724E-05** at limit **
  22  Prefactor     .10000E-03    3.8363        .11034E-06** at limit **
  23  Prefactor     .10000E-03    5.1837       -.14725E-05** at limit **
  24  Normalizat    .61556        .25022        .39629E-06   -.12457E-04
  25  Prefactor     1.1776        .12376        .32889E-07   -.38932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.79977
  Prefactor  = 6.81005
  Prefactor  = 0.0001
  Prefactor  = 22.7971
  Prefactor  = 0.0001
  Prefactor  = 78.2064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6803
  Prefactor  = 0.0001
  Prefactor  = 2.62287
  Prefactor  = 4.78155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 36.9214
  Prefactor  = 3.18163
  Prefactor  = 21.8
  Prefactor  = 4.23787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.615565
  Prefactor  = 1.17764
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.477     FROM HESSE     STATUS=OK           423 CALLS     3269 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7998        5.5875        .10353E-02   -1.5318    
   2  Prefactor     6.8101        16.339        .15375E-03   -1.5186    
   3  Prefactor     .10000E-03    26.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.797        21.903        .83892E-04   -1.4753    
   5  Prefactor     .10000E-03    6.9898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.206        61.793        .45411E-04   -1.3937    
   7  Prefactor     .10000E-03    6.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.680        25.740        .68048E-04   -1.4529    
  10  Prefactor     .10000E-03    25.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6229        3.9966        .20962E-03   -1.5384    
  12  Prefactor     4.7815        2.7082        .10280E-03   -1.5271    
  13  Prefactor     .10000E-03    25.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.5174        .15983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          36.921        21.608        .65950E-04   -1.4492    
  18  Prefactor     3.1816        4.7227        .11232E-02   -1.5351    
  19  Prefactor     21.800        8.9876        .85788E-04   -1.4774    
  20  Prefactor     4.2379        7.6551        .97868E-03   -1.5296    
  21  Prefactor     .10000E-03    5.4296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8387        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .61556        .27342        .43781E-03   -1.0733    
  25  Prefactor     1.1776        .13669        .17001E-03   -.87022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62866e-09
Minuit parameter uncertainties:
  1  5.58828
  2  16.3495
  3  5.98347e-05
  4  21.9107
  5  1.52069e-05
  6  61.8436
  7  5.33536e-06
  8  3.26148e-05
  9  25.7478
  10  6.33822e-06
  11  3.99697
  12  2.70825
  13  5.34629e-05
  14  5.27781e-05
  15  3.22326e-07
  16  0.000100313
  17  21.6122
  18  4.72329
  19  8.98815
  20  7.65687
  21  1.24855e-05
  22  3.64095e-07
  23  9.60448e-06
  24  0.274022
  25  0.136732
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  6.338e-06  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.178e+00  1.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.156e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 9.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504677/likelihoodResults_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.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) = 7622.47749178
delta logL = -0.000185067011444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7622.47730879
delta logL = -2.07484117709e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1828       1.0000          .0000       10.000    
     3 'Normalizat'    .61556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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=   7622.477     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11689E-03    13.294        .18142E-01** at limit **
   2  Index         2.9303        8.3764        .50000        .19130E-04
   3  Normalizat    .61556        .47325E-02    .43780E-03   -.10018E-03
   4  Prefactor     1.1776        .24928E-02    .17001E-03   -.33618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000116892
  Index      = 2.93029
  Normalizat = 0.615565
  Prefactor  = 1.17764
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11689E-03    124.66        .35848E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9303        6.4651        .50000       -.42678    
   3  Normalizat    .61556        .14508E-01    .17512E-04   -1.0733    
   4  Prefactor     1.1776        .76421E-02    .34003E-04   -.87022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15408e-08
Minuit parameter uncertainties:
  1  0.0919669
  2  577.175
  3  0.0145085
  4  0.00764211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504677': 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) = 7622.47730803
delta logL = -1.31786327984e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.169e-04  9.197e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.930e+00  5.772e+02  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.178e+00  7.642e-03  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.156e-01  1.451e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.296 -2.683

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/504677/cmap_HighResolution_326678401_326937601_4FGL_J2129.1-0240_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-26 14:44:34.172534', job_id='504677', GAL2='1.18', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632692674.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='337' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 504677: <4FGL_J2129.1-0240_daily_bin337> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin337> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:20 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:31:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 14:31:10 2021
Terminated at Sun Sep 26 14:44:34 2021
Results reported at Sun Sep 26 14:44:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin337 322.296 -2.6829 326678401 326937601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.1-0240 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            854 sec.

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

