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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin365
RA = 322.296, Dec = -2.6829
tmin = 333936001, tmax = 334195201
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='504717', job_status='RUN', time_executed='2021-09-26 14:33:32.612052', time_epoch_executed='1632692012.61' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504717/ft1_4FGL_J2129.1-0240_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504717/ft1_4FGL_J2129.1-0240_daily_bin365.fits outfile=/scratch/kocevski/504717/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin365.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=333936001.0 tmax=334195201.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.56
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/504717/ltcube_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.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/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits
.....................!
real 13.76
user 13.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/504717/ltcube_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.fits outfile=/scratch/kocevski/504717/expmap_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.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/504717/ltcube_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.fits
.....................!
real 191.59
user 186.39
sys 4.57

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/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits scfile=/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits outfile=/scratch/kocevski/504717/cmap_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits scfile=/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits outfile=/scratch/kocevski/504717/cmap_HighResolution_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/504717/ft2_4FGL_J2129.1-0240_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504717/Model_4FGL_J2129.1-0240_daily_bin365.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/504717/ft1_filtered_4FGL_J2129.1-0240_daily_bin365.fits.....................!
real 70.52
user 69.03
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.645       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7000       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .79898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.603       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82037       1.0000         .10000E-03   10000.    
    17 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96766       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80634       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=   6929.553     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2906 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1747        5.1715        .16893E-05    .69004E-03
   2  Prefactor     26.105        15.756       -.10163E-06   -.20436E-04
   3  Prefactor     .10000E-03    56.488       -.75962E-07** at limit **
   4  Prefactor     .10000E-03    25.100        .31784E-06** at limit **
   5  Prefactor     45.422        29.429        .28622E-06    .33333E-04
   6  Prefactor     .10000E-03    72.474       -.50833E-06** at limit **
   7  Prefactor     17.571        14.293        .18604E-07    .26423E-05
   8  Prefactor     .10000E-03    5.1163        .11160E-06** at limit **
   9  Prefactor     32.671        26.748       -.28656E-06   -.14661E-03
  10  Prefactor     62.256        59.137        .24810E-06   -.67520E-04
  11  Prefactor     4.6978        6.5740        .34812E-06   -.66335E-05
  12  Prefactor     .79214        2.4064       -.36086E-07   -.17688E-04
  13  Prefactor     .10000E-03    20.909        .31031E-07** at limit **
  14  Prefactor     78.662        62.495        .24163E-06   -.56456E-04
  15  norm          .10000E-03    2.6878        .38140E-07** at limit **
  16  Prefactor     .40811        75.957       -.43132E-05    .24433E-03
  17  norm          .10000E-03    22.852       -.45917E-06** at limit **
  18  Prefactor     17.389        11.107       -.28214E-06    .38165E-03
  19  Prefactor     10.723        8.3101        .17198E-06    .19703E-03
  20  Prefactor     12.512        14.054        .95307E-07    .27036E-04
  21  Prefactor     .10000E-03    10.867        .93444E-07** at limit **
  22  Prefactor     6.7103        20.732        .43892E-06    .17680E-04
  23  Prefactor     .10000E-03    8.4688        .62849E-07** at limit **
  24  Normalizat    .96809        .24405        .36897E-06    .95135E-04
  25  Prefactor     .80629        .11023       -.79618E-06    .16973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.1747
  Prefactor  = 26.1051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4218
  Prefactor  = 0.0001
  Prefactor  = 17.5712
  Prefactor  = 0.0001
  Prefactor  = 32.6708
  Prefactor  = 62.2561
  Prefactor  = 4.6978
  Prefactor  = 0.792139
  Prefactor  = 0.0001
  Prefactor  = 78.6621
  norm       = 0.0001
  Prefactor  = 0.408107
  norm       = 0.0001
  Prefactor  = 17.3892
  Prefactor  = 10.7228
  Prefactor  = 12.5123
  Prefactor  = 0.0001
  Prefactor  = 6.7103
  Prefactor  = 0.0001
  Normalizat = 0.968086
  Prefactor  = 0.80629
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.553     FROM HESSE     STATUS=OK           431 CALLS     3337 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1747        5.1887        .70107E-03   -1.5136    
   2  Prefactor     26.105        15.769        .78398E-04   -1.4686    
   3  Prefactor     .10000E-03    56.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.422        29.419        .59488E-04   -1.4359    
   6  Prefactor     .10000E-03    72.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.571        14.295        .95534E-04   -1.4869    
   8  Prefactor     .10000E-03    5.1269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.671        26.758        .70132E-04   -1.4564    
  10  Prefactor     62.256        57.901        .50887E-04   -1.4128    
  11  Prefactor     4.6978        6.5763        .18562E-03   -1.5274    
  12  Prefactor     .79214        2.2784        .19284E-03   -1.5530    
  13  Prefactor     .10000E-03    20.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     78.662        62.196        .45296E-04   -1.3932    
  15  norm          .10000E-03    2.6883        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .40811        71.108        .15050       -1.5580    
  17  norm          .10000E-03    22.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.389        11.294        .96143E-04   -1.4874    
  19  Prefactor     10.723        8.3946        .12235E-03   -1.5053    
  20  Prefactor     12.512        14.021        .11325E-03   -1.5000    
  21  Prefactor     .10000E-03    10.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7103        20.676        .15481E-03   -1.5190    
  23  Prefactor     .10000E-03    8.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96809        .29119        .34244E-03   -.94107    
  25  Prefactor     .80629        .13048        .18288E-03   -.99497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02347e-09
Minuit parameter uncertainties:
  1  5.18895
  2  15.7719
  3  9.58644e-05
  4  0.000146479
  5  29.4286
  6  4.19852e-05
  7  14.2974
  8  4.71209e-06
  9  26.7673
  10  57.9536
  11  6.57726
  12  2.27869
  13  9.79661e-05
  14  62.2472
  15  1.21906e-06
  16  10.7857
  17  0.000158482
  18  11.2956
  19  8.39554
  20  14.025
  21  1.38642e-05
  22  20.6984
  23  4.98312e-06
  24  0.291667
  25  0.130526
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  6.226e+01  5.795e+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:  8.063e-01  1.305e-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:  9.681e-01  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 7.35e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/504717/likelihoodResults_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.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) = 6928.9486594
delta logL = 0.604788828985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6928.89957941
delta logL = 0.653868827009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1310       1.0000          .0000       10.000    
     3 'Normalizat'    .87787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84113       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=   6928.900     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      312 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.354        187.35        .12417E-03    .17304E-04
   2  Index         4.1346        6.9009        .48693E-02    .34520E-04
   3  Normalizat    .87758        .24392        .35771E-03    .24949E-03
   4  Prefactor     .84121        .12068        .17946E-03   -.69461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3543
  Index      = 4.1346
  Normalizat = 0.877585
  Prefactor  = 0.841206
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.900     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.354        41.450        .49669E-05   -1.5064    
   2  Index         4.1346        2.2884        .19477E-03   -.17396    
   3  Normalizat    .87758        .27736        .14308E-04   -.97252    
   4  Prefactor     .84121        .13359        .35892E-04   -.98227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.125e-09
Minuit parameter uncertainties:
  1  41.4837
  2  2.38002
  3  0.277809
  4  0.133646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504717': 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) = 6928.89957716
delta logL = 0.653871074186

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.035e+01  4.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  4.135e+00  2.380e+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:  8.412e-01  1.336e-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:  8.776e-01  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 4.13 +/- 2.38
Photon Flux (Free Index): 1.43e-07 +/- 9.43e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/504717/cmap_HighResolution_333936001_334195201_4FGL_J2129.1-0240_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='2.09e-05', photon_flux_error='7.35e-08', dlogl='6.54e-01', energy_flux='2.01e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-26 14:45:59.502041', photon_index_error2='2.38', photon_index2='4.13', ts='1.83', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.46e-05', EG='0.97', time_epoch_completed='1632692759.5', return_code='0', job_id='504717', GAL2='0.84', EG2='0.88', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='9.43e-08', ts2='3.42', photon_index='2.64' WHERE bin_id='365' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 504717: <4FGL_J2129.1-0240_daily_bin365> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin365 322.296 -2.6829 333936001 334195201 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 :                                   744.00 sec.
    Max Memory :                                 1117 MB
    Average Memory :                             303.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            936 sec.

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

