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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1205
RA = 322.482, Dec = 12.1439
tmin = 551664001, tmax = 551923201
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='524228', job_status='RUN', time_executed='2021-09-26 15:33:25.802474', time_epoch_executed='1632695605.8' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524228/ft1_4FGL_J2129.9+1208_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524228/ft1_4FGL_J2129.9+1208_daily_bin1205.fits outfile=/scratch/kocevski/524228/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1205.fits ra=322.482 dec=12.1439 rad=12.0 tmin=551664001.0 tmax=551923201.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.78
user 3.55
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.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/524228/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/524228/ltcube_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.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/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits
.....................!
real 13.08
user 12.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/524228/ltcube_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits outfile=/scratch/kocevski/524228/expmap_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.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/524228/ltcube_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits
.....................!
real 192.98
user 187.72
sys 4.66

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2129.9+1208 @ 322.482 12.1439

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits outfile=/scratch/kocevski/524228/cmap_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.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.482 yref=12.1439 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits outfile=/scratch/kocevski/524228/cmap_HighResolution_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.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.482 yref=12.1439 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524228/Model_4FGL_J2129.9+1208_daily_bin1205.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits......................!
real 47.81
user 46.53
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits', '/scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits', expMap='/scratch/kocevski/524228/expmap_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits', expCube='/scratch/kocevski/524228/ltcube_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524228/Model_4FGL_J2129.9+1208_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.9+1208'

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.210e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524228/ft1_filtered_4FGL_J2129.9+1208_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/524228/ft2_4FGL_J2129.9+1208_daily_bin1205.fits
Exposure map: /scratch/kocevski/524228/expmap_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits
Exposure cube: /scratch/kocevski/524228/ltcube_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524228/Model_4FGL_J2129.9+1208_daily_bin1205.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) = 2546.56186835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    21.983       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33994E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.758       1.0000         .10000E-03   10000.    
    11 'norm      '    11.154       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2908       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    119.02       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    104.09       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5876       1.0000         .10000E-03   10000.    
    21 'norm      '    54.475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    93.797       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .55552       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2546.509     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     4334 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.23        .27368E-04** at limit **
   2  norm          21.982        19.229        .16470E-05   -.20365E-04
   3  norm          .10000E-03    225.94        .13982E-03** at limit **
   4  Prefactor     .10012E-03    775.07       -.57167E-04** at limit **
   5  Prefactor     .10000E-03    129.08       -.26634E-04** at limit **
   6  Prefactor     25.983        49.860       -.52469E-05    .12069E-03
   7  Prefactor     .10000E-03    29.633        .72299E-06** at limit **
   8  Prefactor     41.344        37.105        .12767E-05   -.15677E-04
   9  Prefactor     .10000E-03    449.97       -.18370E-03** at limit **
  10  Prefactor     22.756        41.107        .15991E-05    .11642E-04
  11  norm          11.150        21.029        .29576E-05    .24346E-03
  12  Prefactor     2.2552        159.38        .15841E-04   -.13134E-04
  13  Prefactor     5.7527        14.382        .13240E-05   -.50414E-04
  14  Prefactor     49.977        30.709        .34565E-06    .74779E-04
  15  Prefactor     119.02        74.012        .16158E-05   -.19798E-04
  16  Prefactor     .10000E-03    121.39       -.34866E-04** at limit **
  17  norm          .10000E-03    1.8729       -.79737E-07** at limit **
  18  Prefactor     .10000E-03    137.47       -.98436E-05** at limit **
  19  Prefactor     104.09        84.759        .33061E-05   -.10621E-04
  20  norm          2.5877        3.5195        .38537E-06   -.95579E-04
  21  norm          54.477        38.605       -.35738E-06   -.54831E-05
  22  Prefactor     .10000E-03    8.3396        .41746E-07** at limit **
  23  Prefactor     .10000E-03    24.487       -.27341E-06** at limit **
  24  Prefactor     93.928        210.29        .12520E-03    .36125E-05
  25  norm          .10000E-03    .63481       -.11736E-06** at limit **
  26  Prefactor     14.084        34.256        .47616E-06   -.12832E-04
  27  Prefactor     .10000E-03    31.281       -.65126E-06** at limit **
  28  Normalizat    .55533        .43020       -.10296E-04   -.36751E-06
  29  Prefactor     .63482        .15675       -.37561E-06    .16726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 21.9816
  norm       = 0.0001
  Prefactor  = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 25.9825
  Prefactor  = 0.0001
  Prefactor  = 41.3439
  Prefactor  = 0.0001
  Prefactor  = 22.7563
  norm       = 11.1505
  Prefactor  = 2.25518
  Prefactor  = 5.75275
  Prefactor  = 49.9766
  Prefactor  = 119.021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.092
  norm       = 2.58769
  norm       = 54.4766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.9283
  norm       = 0.0001
  Prefactor  = 14.0841
  Prefactor  = 0.0001
  Normalizat = 0.555334
  Prefactor  = 0.634819
 **********
 **   18 **HESSE 
 **********

 FCN=   2546.509     FROM HESSE     STATUS=OK           543 CALLS     4877 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.982        19.239        .85429E-04   -1.4770    
   3  norm          .10000E-03    226.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10012E-03    795.24        .42673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    129.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.983        49.572        .78553E-04   -1.4688    
   7  Prefactor     .10000E-03    29.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.344        37.071        .62340E-04   -1.4421    
   9  Prefactor     .10000E-03    451.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.756        41.116        .83964E-04   -1.4754    
  11  norm          11.150        21.113        .11996E-03   -1.5040    
  12  Prefactor     2.2552        154.75        .27120E-03   -1.5408    
  13  Prefactor     5.7527        14.272        .16746E-03   -1.5228    
  14  Prefactor     49.977        30.557        .56728E-04   -1.4293    
  15  Prefactor     119.02        74.132        .36886E-04   -1.3522    
  16  Prefactor     .10000E-03    121.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8751        .67436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    137.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     104.09        84.686        .39413E-04   -1.3664    
  20  norm          2.5877        3.4825        .10018E-03   -1.5386    
  21  norm          54.477        38.506        .54346E-04   -1.4230    
  22  Prefactor     .10000E-03    8.4039        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     93.928        210.14        .20749E-03   -1.3767    
  25  norm          .10000E-03    .63671        .39254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.084        34.186        .10673E-03   -1.4957    
  27  Prefactor     .10000E-03    31.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .55533        .46362        .41491E-03   -1.0992    
  29  Prefactor     .63482        .17648        .16776E-03   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32864e-10
Minuit parameter uncertainties:
  1  6.19869e-05
  2  19.2441
  3  0.000206659
  4  0.0200694
  5  0.000130385
  6  49.6511
  7  5.48486e-06
  8  37.0915
  9  0.000581115
  10  41.1669
  11  21.1275
  12  37.4625
  13  14.2809
  14  30.5669
  15  74.19
  16  9.93329e-05
  17  8.86139e-06
  18  5.66227e-05
  19  84.7847
  20  3.48281
  21  38.5239
  22  8.35572e-06
  23  0.000110751
  24  211.835
  25  9.675e-06
  26  34.2333
  27  8.63184e-05
  28  0.46691
  29  0.176631
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  5.753e+00  1.428e+01  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  6.348e-01  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  5.553e-01  4.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524228/likelihoodResults_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.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) = 2546.50564096
delta logL = 0.00344328431447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2546.50525844
delta logL = 0.00382580387623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4414       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7382       1.0000          .0000       10.000    
     3 'Normalizat'    .55142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2546.505     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      227 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4414        708.76        .43065E-02    .36335E-03
   2  Index         2.7382        5.3787        .22779        .71576E-04
   3  Normalizat    .55162        .11140        .93934E-01    .13736E-04
   4  Prefactor     .63584        .51995E-01    .41542E-01    .41941E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44145
  Index      = 2.73822
  Normalizat = 0.551618
  Prefactor  = 0.635842
 **********
 **   18 **HESSE 
 **********

 FCN=   2546.505     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4414        13.528        .17226E-03   -1.5241    
   2  Index         2.7382        1.4193        .10795E-01   -.46940    
   3  Normalizat    .55162        .38314        .41623E-03   -1.1008    
   4  Prefactor     .63584        .16585        .16763E-03   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9967e-10
Minuit parameter uncertainties:
  1  13.5356
  2  1.4444
  3  0.385
  4  0.165975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524228': 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) = 2546.50525828
delta logL = 0.00382595750352

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  5.441e+00  1.354e+01  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.738e+00  1.444e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  6.358e-01  1.660e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  5.516e-01  3.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 322.482 12.144

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/524228/cmap_HighResolution_551664001_551923201_4FGL_J2129.9+1208_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-02', job_status='DONE', photon_flux_upper_limit='3.07e-07', time_completed='2021-09-26 15:43:18.726433', job_id='524228', GAL2='0.64', fit_tolerance='1e-08', EG2='0.55', EG='0.56', time_epoch_completed='1632696198.73', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.83e-03', ts2='0.23', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1205' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:43:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 524228: <4FGL_J2129.9+1208_daily_bin1205> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1205> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 15:30:35 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 15:31:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 15:31:24 2021
Terminated at Sun Sep 26 15:43:19 2021
Results reported at Sun Sep 26 15:43:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1205 322.482 12.1439 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.9+1208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            764 sec.

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

