/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 2 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 = 7503
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin747
RA = 322.296, Dec = -2.6829
tmin = 432950401, tmax = 433209601
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='507450', job_status='RUN', time_executed='2021-09-26 14:41:43.018044', time_epoch_executed='1632692503.02' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507450/ft1_4FGL_J2129.1-0240_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507450/ft1_4FGL_J2129.1-0240_daily_bin747.fits outfile=/scratch/kocevski/507450/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin747.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.80
user 5.49
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.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/507450/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/507450/ltcube_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.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/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits
.....................!
real 14.75
user 14.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/507450/ltcube_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.fits outfile=/scratch/kocevski/507450/expmap_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.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/507450/ltcube_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.fits
.....................!
real 192.58
user 186.76
sys 5.40

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/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits outfile=/scratch/kocevski/507450/cmap_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits outfile=/scratch/kocevski/507450/cmap_HighResolution_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/507450/ft2_4FGL_J2129.1-0240_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507450/Model_4FGL_J2129.1-0240_daily_bin747.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/507450/ft1_filtered_4FGL_J2129.1-0240_daily_bin747.fits.....................!
real 63.14
user 61.84
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    18.588       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.809       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11552E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.906       1.0000         .10000E-03   10000.    
    17 'norm      '    .20479E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12213E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7600       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1331       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74383       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=   5840.786     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2842 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5608        .98332E-07** at limit **
   2  Prefactor     18.580        14.176       -.17267E-06    .46352E-06
   3  Prefactor     12.582        34.062       -.83879E-06   -.84402E-04
   4  Prefactor     .10000E-03    38.313        .23757E-06** at limit **
   5  Prefactor     .10000E-03    27.483        .35897E-06** at limit **
   6  Prefactor     .10000E-03    26.966       -.33822E-06** at limit **
   7  Prefactor     18.962        20.273       -.69337E-06   -.94133E-05
   8  Prefactor     8.1979        12.157       -.13144E-07   -.59853E-05
   9  Prefactor     .10000E-03    27.494        .16200E-06** at limit **
  10  Prefactor     37.778        55.063       -.74412E-06    .15067E-04
  11  Prefactor     4.8499        5.4904        .28491E-05   -.11460E-03
  12  Prefactor     .10000E-03    2.2783       -.92223E-06** at limit **
  13  Prefactor     .10000E-03    30.493       -.68212E-06** at limit **
  14  Prefactor     .10000E-03    36.479       -.34976E-06** at limit **
  15  norm          .10000E-03    3.6723        .33755E-07** at limit **
  16  Prefactor     91.822        88.679        .88054E-06   -.26061E-04
  17  norm          .10000E-03    77.439       -.34493E-05** at limit **
  18  Prefactor     .10000E-03    12.165       -.27023E-05** at limit **
  19  Prefactor     6.7562        8.9953       -.15375E-06   -.56472E-05
  20  Prefactor     .10000E-03    10.005       -.11108E-06** at limit **
  21  Prefactor     .10000E-03    86.628       -.49533E-06** at limit **
  22  Prefactor     .10000E-03    26.960        .39654E-06** at limit **
  23  Prefactor     .10000E-03    19.314       -.26314E-07** at limit **
  24  Normalizat    1.1336        .25529        .13639E-05   -.14746E-05
  25  Prefactor     .74370        .11361       -.85298E-06    .17990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5798
  Prefactor  = 12.5819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9625
  Prefactor  = 8.19789
  Prefactor  = 0.0001
  Prefactor  = 37.7779
  Prefactor  = 4.84992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 91.8216
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.75625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13358
  Prefactor  = 0.7437
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.786     FROM HESSE     STATUS=OK           419 CALLS     3261 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5918        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.580        14.226        .92897E-04   -1.4846    
   3  Prefactor     12.582        34.145        .11243E-03   -1.4998    
   4  Prefactor     .10000E-03    38.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.962        20.274        .91961E-04   -1.4837    
   8  Prefactor     8.1979        12.128        .14000E-03   -1.5135    
   9  Prefactor     .10000E-03    27.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.778        55.164        .65182E-04   -1.4478    
  11  Prefactor     4.8499        5.5041        .91316E-03   -1.5267    
  12  Prefactor     .10000E-03    2.3300        .22338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6740        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     91.822        88.988        .20959E-03   -1.3789    
  17  norm          .10000E-03    78.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.7562        9.0428        .15432E-03   -1.5188    
  20  Prefactor     .10000E-03    10.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    87.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1336        .31602        .31349E-03   -.88681    
  25  Prefactor     .74370        .13994        .17771E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16559e-10
Minuit parameter uncertainties:
  1  9.77449e-07
  2  14.2287
  3  34.1984
  4  8.62764e-05
  5  2.7513e-05
  6  4.87982e-05
  7  20.2816
  8  12.1312
  9  2.69639e-05
  10  55.2383
  11  5.5047
  12  1.16434e-05
  13  2.52199e-05
  14  9.09722e-05
  15  1.46827e-07
  16  89.1177
  17  0.000385003
  18  1.65851e-05
  19  9.04461
  20  6.16514e-08
  21  0.000171854
  22  3.28502e-05
  23  2.43937e-05
  24  0.316555
  25  0.14001
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.778e+01  5.524e+01  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:  7.437e-01  1.400e-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.134e+00  3.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507450/likelihoodResults_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.71029306
delta logL = 0.0760977079844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.70097642
delta logL = 0.0854143488868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.476       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2814       1.0000          .0000       10.000    
     3 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75483       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5840.701     FROM MIGRAD    STATUS=FAILED        92 CALLS      308 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.456        93.708        .88515E-04   -.60366E-05
   2  Index         3.2823        2.6045        .75977E-02    .29103E-03
   3  Normalizat    1.1029        .30953        .31730E-03    .65067E-04
   4  Prefactor     .75508        .14231        .17649E-03   -.14160E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5840.701     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      385 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.456        93.708        .52431E-03   -1.4803    
   2  Index         3.2823        2.6045        .10751E-02   -.35068    
   3  Normalizat    1.1029        .30953        .43362E-03   -.89658    
   4  Prefactor     .75508        .14231        .18654E-03   -1.0141    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5840.701     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      421 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.456        56.625        .35406E-05   -.17981E-04
   2  Index         3.2823        1.7388        .15195E-02    .44591E-05
   3  Normalizat    1.1029        .30820        .12692E-04    .44787E-05
   4  Prefactor     .75508        .14093        .35297E-04   -.16942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4562
  Index      = 3.28233
  Normalizat = 1.10292
  Prefactor  = 0.75508
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.701     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.456        53.256        .70812E-06   -1.4803    
   2  Index         3.2823        1.6391        .60781E-04   -.35068    
   3  Normalizat    1.1029        .30814        .25384E-05   -.89658    
   4  Prefactor     .75508        .14083        .70595E-05   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29094e-11
Minuit parameter uncertainties:
  1  53.3805
  2  1.67439
  3  0.308647
  4  0.140895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507450': 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) = 5840.70097469
delta logL = 0.0854160769204

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.046e+01  5.338e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.282e+00  1.674e+00  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:  7.551e-01  1.409e-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.103e+00  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/507450/cmap_HighResolution_432950401_433209601_4FGL_J2129.1-0240_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-26 14:53:07.254444', job_id='507450', GAL2='0.76', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1632693187.25', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.54e-02', ts2='0.76', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='747' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 507450: <4FGL_J2129.1-0240_daily_bin747> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin747> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:40:30 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:41:31 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:41:31 2021
Terminated at Sun Sep 26 14:53:07 2021
Results reported at Sun Sep 26 14:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin747 322.296 -2.6829 432950401 433209601 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 :                                   681.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            757 sec.

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

