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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin425
RA = 322.296, Dec = -2.6829
tmin = 349488001, tmax = 349747201
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='504802', job_status='RUN', time_executed='2021-09-26 14:34:50.593372', time_epoch_executed='1632692090.59' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504802/ft1_4FGL_J2129.1-0240_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504802/ft1_4FGL_J2129.1-0240_daily_bin425.fits outfile=/scratch/kocevski/504802/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin425.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=349488001.0 tmax=349747201.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.44
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/504802/ltcube_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.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/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits
.....................!
real 15.37
user 14.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/504802/ltcube_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits outfile=/scratch/kocevski/504802/expmap_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.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/504802/ltcube_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits
.....................!
real 193.81
user 185.42
sys 6.52

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/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits scfile=/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits outfile=/scratch/kocevski/504802/cmap_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits scfile=/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits outfile=/scratch/kocevski/504802/cmap_HighResolution_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504802/Model_4FGL_J2129.1-0240_daily_bin425.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/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits.....................!
real 61.16
user 59.57
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits', '/scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits', expMap='/scratch/kocevski/504802/expmap_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits', expCube='/scratch/kocevski/504802/ltcube_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504802/Model_4FGL_J2129.1-0240_daily_bin425.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/504802/ft1_filtered_4FGL_J2129.1-0240_daily_bin425.fits
Spacecraft file(s): /scratch/kocevski/504802/ft2_4FGL_J2129.1-0240_daily_bin425.fits
Exposure map: /scratch/kocevski/504802/expmap_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits
Exposure cube: /scratch/kocevski/504802/ltcube_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504802/Model_4FGL_J2129.1-0240_daily_bin425.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5814.64537218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    50.738       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15513E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.481       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11600E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.052       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.723       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.906       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6581       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52565       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1444       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=   5814.548     FROM MIGRAD    STATUS=CONVERGED   1009 CALLS     3357 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9081        .14551E-02** at limit **
   2  Prefactor     50.737        23.428        .56301E-04    .34327E-05
   3  Prefactor     .10001E-03    56.371        .15370    ** at limit **
   4  Prefactor     11.480        32.446        .11823E-03   -.14808E-04
   5  Prefactor     .10000E-03    31.712        .18142E-02** at limit **
   6  Prefactor     .10000E-03    24.417        .18142E-02** at limit **
   7  Prefactor     26.162        23.851        .78309E-04    .56039E-04
   8  Prefactor     .10000E-03    14.961        .18142E-02** at limit **
   9  Prefactor     2.8970        59.342        .23853E-03   -.10581E-04
  10  Prefactor     3.4164        187.50        .21867E-03   -.10086E-04
  11  Prefactor     .10007E-03    31.582        .33309E-02** at limit **
  12  Prefactor     1.6386        2.4786        .13035E-03    .13519E-03
  13  Prefactor     .10000E-03    16.574        .18142E-02** at limit **
  14  Prefactor     .10000E-03    44.505        .18142E-02** at limit **
  15  norm          .10000E-03    3.0208        .12944E-02** at limit **
  16  Prefactor     .10000E-03    32.373        .18142E-02** at limit **
  17  norm          16.052        18.422        .99966E-04   -.80745E-05
  18  Prefactor     .10000E-03    2.8380        .12520E-02** at limit **
  19  Prefactor     .10000E-03    7.5704        .36285E-03** at limit **
  20  Prefactor     11.718        13.998        .11700E-03   -.18170E-04
  21  Prefactor     .10000E-03    24.535        .18142E-02** at limit **
  22  Prefactor     12.922        18.079        .11150E-03    .24471E-05
  23  Prefactor     5.6666        20.970        .84438E-03   -.32677E-04
  24  Normalizat    .52574        .29233        .44055E-03    .55869E-04
  25  Prefactor     1.1443        .14542        .16076E-03    .11592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 50.737
  Prefactor  = 0.000100008
  Prefactor  = 11.4799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1623
  Prefactor  = 0.0001
  Prefactor  = 2.89699
  Prefactor  = 3.41643
  Prefactor  = 0.000100073
  Prefactor  = 1.63859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7178
  Prefactor  = 0.0001
  Prefactor  = 12.9225
  Prefactor  = 5.66663
  Normalizat = 0.525745
  Prefactor  = 1.14435
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.548     FROM HESSE     STATUS=OK           411 CALLS     3768 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9103        .29102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     50.737        23.426        .22521E-05   -1.4282    
   3  Prefactor     .10001E-03    57.401        .15185       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.480        32.444        .47293E-05   -1.5030    
   5  Prefactor     .10000E-03    31.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.162        23.850        .31324E-05   -1.4685    
   8  Prefactor     .10000E-03    14.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8970        59.312        .95411E-05   -1.5368    
  10  Prefactor     3.4164        187.20        .87469E-05   -1.5338    
  11  Prefactor     .10007E-03    32.305        .66619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6386        2.4770        .52140E-05   -1.5452    
  13  Prefactor     .10000E-03    16.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.0208        .25887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.052        18.424        .39987E-05   -1.4906    
  18  Prefactor     .10000E-03    2.8383        .25039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5708        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.718        13.996        .46801E-05   -1.5023    
  21  Prefactor     .10000E-03    24.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.922        18.066        .44599E-05   -1.4989    
  23  Prefactor     5.6666        20.943        .33775E-04   -1.5232    
  24  Normalizat    .52574        .29224        .17622E-04   -1.1124    
  25  Prefactor     1.1443        .14546        .32152E-04   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33339e-09
Minuit parameter uncertainties:
  1  2.94339e-06
  2  23.4303
  3  0.00132034
  4  32.4941
  5  4.13264e-05
  6  3.54122e-05
  7  23.8583
  8  5.02065e-05
  9  26.2458
  10  50.7454
  11  0.00307697
  12  2.47718
  13  6.149e-05
  14  3.19761e-05
  15  4.05934e-08
  16  2.73475e-05
  17  18.43
  18  9.97968e-07
  19  9.41364e-06
  20  14.0003
  21  4.14693e-05
  22  18.0739
  23  20.9704
  24  0.293103
  25  0.145509
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.416e+00  5.075e+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:  1.144e+00  1.455e-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:  5.257e-01  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504802/likelihoodResults_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.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) = 5814.39590567
delta logL = 0.15251772094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5814.23899442
delta logL = 0.309428970508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.654       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5422       1.0000          .0000       10.000    
     3 'Normalizat'    .53303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1382       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=   5814.239     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.621        39.832       -.33053E-04   -.19164E-03
   2  Index         1.5420        .90161       -.13346E-03    .72317E-04
   3  Normalizat    .53324        .24903        .58336E-05    .67564E-03
   4  Prefactor     1.1381        .13119       -.47491E-06    .13523E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6212
  Index      = 1.54197
  Normalizat = 0.533236
  Prefactor  = 1.13815
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.239     FROM HESSE     STATUS=OK            29 CALLS      255 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.621        38.121        .90345E-04   -1.4822    
   2  Index         1.5420        .86227        .11452E-01   -.76371    
   3  Normalizat    .53324        .27212        .43747E-03   -1.1090    
   4  Prefactor     1.1381        .14373        .16106E-03   -.88257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96729e-09
Minuit parameter uncertainties:
  1  38.1679
  2  0.870684
  3  0.272798
  4  0.143775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504802': 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) = 5814.23899379
delta logL = 0.309429606387

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.962e+01  3.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.542e+00  8.707e-01  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.138e+00  1.438e-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:  5.332e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/504802/cmap_HighResolution_349488001_349747201_4FGL_J2129.1-0240_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-26 14:46:40.353750', job_id='504802', GAL2='1.14', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632692800.35', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.09e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='425' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 504802: <4FGL_J2129.1-0240_daily_bin425> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin425 322.296 -2.6829 349488001 349747201 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            971 sec.

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

