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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin311
RA = 322.296, Dec = -2.6829
tmin = 319939201, tmax = 320198401
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='504640', job_status='RUN', time_executed='2021-09-26 14:30:54.776298', time_epoch_executed='1632691854.78' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504640/ft1_4FGL_J2129.1-0240_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504640/ft1_4FGL_J2129.1-0240_daily_bin311.fits outfile=/scratch/kocevski/504640/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin311.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=319939201.0 tmax=320198401.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.55
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/504640/ltcube_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.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/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits
.....................!
real 15.31
user 14.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/504640/ltcube_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits outfile=/scratch/kocevski/504640/expmap_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.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/504640/ltcube_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits
.....................!
real 194.65
user 188.98
sys 5.03

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/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits scfile=/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits outfile=/scratch/kocevski/504640/cmap_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits scfile=/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits outfile=/scratch/kocevski/504640/cmap_HighResolution_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504640/Model_4FGL_J2129.1-0240_daily_bin311.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/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits.....................!
real 71.66
user 70.14
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits', '/scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits', expMap='/scratch/kocevski/504640/expmap_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits', expCube='/scratch/kocevski/504640/ltcube_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504640/Model_4FGL_J2129.1-0240_daily_bin311.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/504640/ft1_filtered_4FGL_J2129.1-0240_daily_bin311.fits
Spacecraft file(s): /scratch/kocevski/504640/ft2_4FGL_J2129.1-0240_daily_bin311.fits
Exposure map: /scratch/kocevski/504640/expmap_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits
Exposure cube: /scratch/kocevski/504640/ltcube_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504640/Model_4FGL_J2129.1-0240_daily_bin311.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) = 7217.21343161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13508E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0709       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.091       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6230       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8125       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0041       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1568       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88199       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=   7217.195     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2991 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6120       -.23432E-07** at limit **
   2  Prefactor     9.4032        13.714        .42700E-06   -.11394E-04
   3  Prefactor     .10000E-03    51.298       -.28058E-06** at limit **
   4  Prefactor     3.2396        14.386        .49298E-06    .35423E-05
   5  Prefactor     .10000E-03    20.052       -.10627E-06** at limit **
   6  Prefactor     31.765        73.551        .82268E-05   -.29166E-05
   7  Prefactor     25.750        22.346        .11807E-06   -.21355E-04
   8  Prefactor     6.2837        18.399        .59378E-06   -.57830E-05
   9  Prefactor     .10000E-03    106.07       -.61571E-06** at limit **
  10  Prefactor     .10000E-03    28.449       -.90017E-07** at limit **
  11  Prefactor     3.0708        3.9116        .36888E-06   -.88020E-05
  12  Prefactor     4.0581        2.7723       -.14164E-06   -.15946E-03
  13  Prefactor     .10000E-03    27.148       -.65730E-06** at limit **
  14  Prefactor     37.067        46.987        .25820E-05   -.43843E-05
  15  norm          .10000E-03    3.4744        .29560E-07** at limit **
  16  Prefactor     .10000E-03    19.656        .24670E-06** at limit **
  17  norm          .10000E-03    15.092        .59710E-07** at limit **
  18  Prefactor     .55938        5.1014        .26908E-06   -.10107E-03
  19  Prefactor     4.6209        6.9746        .19412E-05   -.42450E-05
  20  Prefactor     2.8111        8.2148        .39579E-05   -.61564E-05
  21  Prefactor     2.9934        51.275        .85011E-06   -.70083E-05
  22  Prefactor     .10000E-03    5.7826        .10368E-06** at limit **
  23  Prefactor     .10000E-03    10.135        .16487E-06** at limit **
  24  Normalizat    1.1571        .23661       -.82602E-06   -.54236E-05
  25  Prefactor     .88190        .11049       -.83363E-06   -.88442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.40323
  Prefactor  = 0.0001
  Prefactor  = 3.23961
  Prefactor  = 0.0001
  Prefactor  = 31.7649
  Prefactor  = 25.7504
  Prefactor  = 6.28366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07081
  Prefactor  = 4.05807
  Prefactor  = 0.0001
  Prefactor  = 37.0665
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.55938
  Prefactor  = 4.62091
  Prefactor  = 2.81113
  Prefactor  = 2.9934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15712
  Prefactor  = 0.881899
 **********
 **   18 **HESSE 
 **********

 FCN=   7217.195     FROM HESSE     STATUS=OK           431 CALLS     3422 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6427        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4032        13.722        .13066E-03   -1.5095    
   3  Prefactor     .10000E-03    51.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2396        14.224        .22461E-03   -1.5348    
   5  Prefactor     .10000E-03    20.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.765        73.659        .71038E-04   -1.4580    
   7  Prefactor     25.750        22.179        .78926E-04   -1.4693    
   8  Prefactor     6.2837        18.262        .15996E-03   -1.5207    
   9  Prefactor     .10000E-03    109.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0708        3.9039        .91924E-03   -1.5357    
  12  Prefactor     4.0581        2.7713        .10958E-03   -1.5305    
  13  Prefactor     .10000E-03    27.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.067        46.980        .65807E-04   -1.4490    
  15  norm          .10000E-03    3.4793        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55938        13.509        .36468E-02   -1.5558    
  19  Prefactor     4.6209        7.0275        .93596E-03   -1.5278    
  20  Prefactor     2.8111        8.2132        .12127E-02   -1.5373    
  21  Prefactor     2.9934        51.263        .23418E-03   -1.5362    
  22  Prefactor     .10000E-03    5.7909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1571        .29080        .32215E-03   -.87938    
  25  Prefactor     .88190        .13613        .18070E-03   -.96776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68949e-08
Minuit parameter uncertainties:
  1  2.9248e-06
  2  13.727
  3  0.00010767
  4  13.5817
  5  9.12435e-06
  6  73.8707
  7  22.1863
  8  18.2778
  9  8.49805e-05
  10  8.99403e-05
  11  3.90422
  12  2.77141
  13  6.43072e-05
  14  47.0272
  15  1.87864e-06
  16  5.81849e-06
  17  1.9862e-05
  18  5.49885
  19  7.02876
  20  8.2165
  21  24.7997
  22  6.77791e-06
  23  1.52432e-05
  24  0.291205
  25  0.136187
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  8.994e-05  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:  8.819e-01  1.362e-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:  1.157e+00  2.912e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504640/likelihoodResults_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.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) = 7217.19510172
delta logL = -0.000167226374288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7217.19493517
delta logL = -6.80845914758e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88190       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=   7217.195     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10313E-03    14.097        .18142E-01** at limit **
   2  Index         2.9174        6.3623        .50000        .11455E-04
   3  Normalizat    1.1571        .43726E-02    .32214E-03    .99520E-05
   4  Prefactor     .88190        .21862E-02    .18070E-03   -.11022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103127
  Index      = 2.91742
  Normalizat = 1.15712
  Prefactor  = 0.881899
 **********
 **   18 **HESSE 
 **********

 FCN=   7217.195     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10313E-03    88.746        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9174        5.6750        .50000       -.42961    
   3  Normalizat    1.1571        .10934E-01    .12886E-04   -.87938    
   4  Prefactor     .88190        .54666E-02    .36141E-04   -.96777    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23749e-09
Minuit parameter uncertainties:
  1  0.0333671
  2  294.499
  3  0.0109337
  4  0.00546664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504640': 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) = 7217.194935
delta logL = -5.02805960423e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.031e-04  3.337e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.917e+00  2.945e+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:  8.819e-01  5.467e-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:  1.157e+00  1.093e-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/504640/cmap_HighResolution_319939201_320198401_4FGL_J2129.1-0240_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-26 14:43:49.412175', job_id='504640', GAL2='0.88', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632692629.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-5.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='311' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:43:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 504640: <4FGL_J2129.1-0240_daily_bin311> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin311> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:18 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:30:45 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:30:45 2021
Terminated at Sun Sep 26 14:43:50 2021
Results reported at Sun Sep 26 14:43:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin311 322.296 -2.6829 319939201 320198401 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            812 sec.

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

