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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1642
RA = 322.296, Dec = -2.6829
tmin = 664934401, tmax = 665193601
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='444915', job_status='RUN', time_executed='2022-01-30 00:39:37.406043', time_epoch_executed='1643531977.41' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444915/ft1_4FGL_J2129.1-0240_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444915/ft1_4FGL_J2129.1-0240_daily_bin1642.fits outfile=/scratch/kocevski/444915/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1642.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=664934401.0 tmax=665193601.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.65
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/444915/ltcube_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.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/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits
.....................!
real 12.70
user 12.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/444915/ltcube_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.fits outfile=/scratch/kocevski/444915/expmap_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.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/444915/ltcube_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.fits
.....................!
real 191.83
user 185.45
sys 5.55

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/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits scfile=/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits outfile=/scratch/kocevski/444915/cmap_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits scfile=/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits outfile=/scratch/kocevski/444915/cmap_HighResolution_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/444915/ft2_4FGL_J2129.1-0240_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444915/Model_4FGL_J2129.1-0240_daily_bin1642.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/444915/ft1_filtered_4FGL_J2129.1-0240_daily_bin1642.fits.....................!
real 58.78
user 57.45
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3337       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14508E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2571       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.089       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7688       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6798       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.827       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5524       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0079       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93056       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=   5872.489     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2481 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0309        .57612E-07** at limit **
   2  Prefactor     .10000E-03    16.100        .61419E-07** at limit **
   3  Prefactor     .10000E-03    21.554       -.21618E-06** at limit **
   4  Prefactor     3.3392        59.170        .17673E-04   -.30521E-04
   5  Prefactor     31.307        28.212       -.28624E-05   -.14213E-03
   6  Prefactor     .10003E-03    89.597        .65409E-05** at limit **
   7  Prefactor     .10168E-03    21.233       -.44701E-05** at limit **
   8  Prefactor     .10000E-03    8.0823       -.37519E-06** at limit **
   9  Prefactor     1.2305        38.141       -.32363E-05   -.18906E-03
  10  Prefactor     41.084        33.354       -.89140E-07   -.46041E-04
  11  Prefactor     3.7712        5.4876        .74400E-06    .60148E-03
  12  Prefactor     2.6798        1.8317        .25586E-07    .21375E-04
  13  Prefactor     23.822        29.397       -.31969E-07   -.46825E-04
  14  Prefactor     .10001E-03    19.699        .28708E-05** at limit **
  15  norm          .10000E-03    3.3585        .58625E-09** at limit **
  16  Prefactor     .10000E-03    16.130       -.58884E-06** at limit **
  17  norm          .10000E-03    7.6094        .16400E-06** at limit **
  18  Prefactor     .10000E-03    5.3976        .74452E-07** at limit **
  19  Prefactor     4.1407        8.5523        .47073E-06    .18020E-04
  20  Prefactor     .10000E-03    7.5868        .15152E-06** at limit **
  21  Prefactor     .10000E-03    9.3356        .28692E-06** at limit **
  22  Prefactor     7.5382        15.541       -.55772E-06   -.12064E-03
  23  Prefactor     .10000E-03    21.726       -.19525E-05** at limit **
  24  Normalizat    1.0081        .23890       -.67847E-06    .21028E-03
  25  Prefactor     .93057        .11757       -.27405E-06    .28529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3392
  Prefactor  = 31.3067
  Prefactor  = 0.000100033
  Prefactor  = 0.000101683
  Prefactor  = 0.0001
  Prefactor  = 1.23046
  Prefactor  = 41.0842
  Prefactor  = 3.77116
  Prefactor  = 2.67983
  Prefactor  = 23.8215
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5382
  Prefactor  = 0.000100002
  Normalizat = 1.00809
  Prefactor  = 0.930567
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.489     FROM HESSE     STATUS=OK           421 CALLS     2902 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0402        .10663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3392        62.954        .11084E-02   -1.5342    
   5  Prefactor     31.307        28.350        .71608E-04   -1.4588    
   6  Prefactor     .10003E-03    92.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10168E-03    124.60        .61633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2305        41.623        .39818E-03   -1.5486    
  10  Prefactor     41.084        33.410        .62535E-04   -1.4425    
  11  Prefactor     3.7712        5.4966        .20796E-03   -1.5320    
  12  Prefactor     2.6798        1.8304        .82162E-04   -1.5381    
  13  Prefactor     23.822        29.452        .82061E-04   -1.4731    
  14  Prefactor     .10001E-03    20.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3589        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5297        .17384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1407        8.5799        .19804E-03   -1.5301    
  20  Prefactor     .10000E-03    7.6419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5382        15.567        .14593E-03   -1.5159    
  23  Prefactor     .10000E-03    22.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0081        .28840        .32401E-03   -.92760    
  25  Prefactor     .93057        .14376        .17196E-03   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45476e-08
Minuit parameter uncertainties:
  1  2.28983e-06
  2  1.48738e-07
  3  6.23804e-05
  4  29.0325
  5  28.3624
  6  0.00349888
  7  0.0290193
  8  3.99145e-05
  9  14.3232
  10  33.425
  11  5.49737
  12  1.83039
  13  29.4702
  14  0.000717432
  15  8.08341e-08
  16  0.000131683
  17  2.41906e-05
  18  8.39067e-06
  19  8.58244
  20  3.0017e-05
  21  4.88458e-05
  22  15.5753
  23  0.00043721
  24  0.288851
  25  0.143818
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.108e+01  3.342e+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:  9.306e-01  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:  1.008e+00  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/444915/likelihoodResults_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.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) = 5872.00646155
delta logL = 0.48222924128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.96973544
delta logL = 0.518955354512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.781       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8551       1.0000          .0000       10.000    
     3 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91925       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=   5871.970     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      261 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.854        46.042        .27603E-03   -.16886E-05
   2  Index         1.8552        .65267        .93249E-02   -.13380E-04
   3  Normalizat    1.0424        .27679        .31924E-03   -.21011E-05
   4  Prefactor     .91922        .14230        .17291E-03    .28250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.8539
  Index      = 1.85521
  Normalizat = 1.0424
  Prefactor  = 0.919217
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.970     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.854        46.319        .11041E-04   -1.4253    
   2  Index         1.8552        .65666        .37300E-03   -.68021    
   3  Normalizat    1.0424        .27704        .12770E-04   -.91623    
   4  Prefactor     .91922        .14243        .34582E-04   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9925e-10
Minuit parameter uncertainties:
  1  46.3505
  2  0.659825
  3  0.277426
  4  0.142486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444915': 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) = 5871.9697334
delta logL = 0.518957388003

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.285e+01  4.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.855e+00  6.598e-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:  9.192e-01  1.425e-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.042e+00  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 1.86 +/- 0.66
Photon Flux (Free Index): 2.63e-08 +/- 3.03e-08
Energy Flux (Free Index): 2.68e-05 +/- 3.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/444915/cmap_HighResolution_664934401_665193601_4FGL_J2129.1-0240_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='2.68e-05', photon_flux_error='4.24e-08', dlogl='5.19e-01', energy_flux='1.32e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2022-01-30 00:50:35.177268', photon_index_error2='0.66', photon_index2='1.86', ts='3.68', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='3.77e-05', EG='1.01', time_epoch_completed='1643532635.18', return_code='0', job_id='444915', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.03e-08', ts2='4.72', photon_index='2.64' WHERE bin_id='1642' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:50:35 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 444915: <4FGL_J2129.1-0240_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:44 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:46 2022
Terminated at Sun Jan 30 00:50:36 2022
Results reported at Sun Jan 30 00:50:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1642 322.296 -2.6829 664934401 665193601 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 :                                   657.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

