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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin1222
RA = 322.482, Dec = 12.1439
tmin = 556070401, tmax = 556329601
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='524254', job_status='RUN', time_executed='2021-09-26 15:34:16.818977', time_epoch_executed='1632695656.82' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524254/ft1_4FGL_J2129.9+1208_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524254/ft1_4FGL_J2129.9+1208_daily_bin1222.fits outfile=/scratch/kocevski/524254/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1222.fits ra=322.482 dec=12.1439 rad=12.0 tmin=556070401.0 tmax=556329601.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.76
user 3.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.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/524254/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/524254/ltcube_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.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/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits
.....................!
real 13.99
user 13.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/524254/ltcube_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits outfile=/scratch/kocevski/524254/expmap_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.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/524254/ltcube_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits
.....................!
real 191.93
user 185.92
sys 5.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits outfile=/scratch/kocevski/524254/cmap_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.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.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits outfile=/scratch/kocevski/524254/cmap_HighResolution_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524254/Model_4FGL_J2129.9+1208_daily_bin1222.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/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits.......................!
real 31.98
user 30.10
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits', '/scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits', expMap='/scratch/kocevski/524254/expmap_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits', expCube='/scratch/kocevski/524254/ltcube_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524254/Model_4FGL_J2129.9+1208_daily_bin1222.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/524254/ft1_filtered_4FGL_J2129.9+1208_daily_bin1222.fits
Spacecraft file(s): /scratch/kocevski/524254/ft2_4FGL_J2129.9+1208_daily_bin1222.fits
Exposure map: /scratch/kocevski/524254/expmap_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits
Exposure cube: /scratch/kocevski/524254/ltcube_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524254/Model_4FGL_J2129.9+1208_daily_bin1222.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) = 1392.83277594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.747       1.0000         .10000E-03   10000.    
     3 'norm      '    .23575E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13525E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.416       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1526.9       1.0000         .10000E-03   10000.    
    17 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    86.007       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .27644E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6991       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11383E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .65935       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .78759E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.589       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10090E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1392.619     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3785 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17613E-03    79.771        .87705E-05** at limit **
   2  norm          44.781        3.1636       -.24674E-06    .38568E-03
   3  norm          .98917E-03    6.7279        .17237E-05** at limit **
   4  Prefactor     .12493E-03    58.984        .93899E-06** at limit **
   5  Prefactor     .32414E-03    88.329        .81919E-05** at limit **
   6  Prefactor     .10004E-03    36.064        .22240E-06** at limit **
   7  Prefactor     .10021E-03    38.091        .20292E-06** at limit **
   8  Prefactor     .10000E-03    44.777        .72607E-06** at limit **
   9  Prefactor     .11236E-03    87.009        .98773E-05** at limit **
  10  Prefactor     .10049E-03    45.416       -.14526E-05** at limit **
  11  norm          .10758E-03    58.686        .14586E-05** at limit **
  12  Prefactor     48.518        7.3113       -.47453E-06   -.13963E-02
  13  Prefactor     .10000E-03    9.3443       -.13588E-07** at limit **
  14  Prefactor     .10000E-03    16.324       -.81755E-06** at limit **
  15  Prefactor     45.468        6.4999       -.37629E-06   -.25530E-02
  16  Prefactor     1526.9        2.0183       -.14581E-07   -.70081E-02
  17  norm          .10000E-03    5.1943       -.33445E-07** at limit **
  18  Prefactor     .10072E-03    56.275        .25059E-05** at limit **
  19  Prefactor     86.014        1.5429       -.35522E-07   -.69930E-03
  20  norm          .10000E-03    1.5228        .36031E-06** at limit **
  21  norm          .23647E-03    259.08        .15200E-04** at limit **
  22  Prefactor     6.7092        2.4058       -.29129E-08    .79815E-03
  23  Prefactor     .10106E-03    100.35        .45098E-05** at limit **
  24  Prefactor     .14471E-03    82.330        .10059E-04** at limit **
  25  norm          .66597        6.2896        .14026E-05    .91865E-04
  26  Prefactor     .11674E-03    69.635        .89649E-05** at limit **
  27  Prefactor     54.611        3.4750       -.15530E-06   -.18154E-02
  28  Normalizat    .10000E-01    7.9106       -.80990E-04** at limit **
  29  Prefactor     1.0180        .12820        .48048E-06    .37959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000176132
  norm       = 44.7812
  norm       = 0.000989172
  Prefactor  = 0.000124928
  Prefactor  = 0.00032414
  Prefactor  = 0.000100035
  Prefactor  = 0.000100207
  Prefactor  = 0.000100003
  Prefactor  = 0.000112363
  Prefactor  = 0.000100488
  norm       = 0.00010758
  Prefactor  = 48.5182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4675
  Prefactor  = 1526.86
  norm       = 0.0001
  Prefactor  = 0.000100719
  Prefactor  = 86.0139
  norm       = 0.0001
  norm       = 0.00023647
  Prefactor  = 6.70919
  Prefactor  = 0.000101056
  Prefactor  = 0.000144715
  norm       = 0.665975
  Prefactor  = 0.000116743
  Prefactor  = 54.6113
  Normalizat = 0.01
  Prefactor  = 1.01804
 **********
 **   18 **HESSE 
 **********

 FCN=   1392.619     FROM HESSE     STATUS=OK           605 CALLS     4390 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17613E-03    304.34        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.781        48.179        .14984E-02   -1.4369    
   3  norm          .98917E-03    6488.5        .10038E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12493E-03    144.95        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32414E-03    859.32        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    36.656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10021E-03    38.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    112.52        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11236E-03    545.84        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10049E-03    46.108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10758E-03    102.05        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     48.518        65.140        .14402E-02   -1.4314    
  13  Prefactor     .10000E-03    9.3201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.468        88.840        .14873E-02   -1.4358    
  16  Prefactor     1526.9        1212.5        .27802E-03   -.76790    
  17  norm          .10000E-03    5.1940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10072E-03    57.277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     86.014        142.96        .10830E-02   -1.3850    
  20  norm          .10000E-03    1.5205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .23647E-03    71.402        .91604E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7092        18.284        .38758E-02   -1.5190    
  23  Prefactor     .10106E-03    201.88        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .14471E-03    485.52        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .66597        6.7001        .11905E-01   -1.5545    
  26  Prefactor     .11674E-03    62.896        .92519E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.611        73.657        .13572E-02   -1.4229    
  28  Normalizat    .10000E-01    .94790        .32096       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.0180        .20017        .42307E-01   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24458e-06
Minuit parameter uncertainties:
  1  0.305997
  2  48.2208
  3  3.44368
  4  0.120515
  5  0.890825
  6  0.00228184
  7  0.00566329
  8  0.00114224
  9  0.165826
  10  0.0094968
  11  0.0557206
  12  65.2354
  13  1.89421e-06
  14  5.38452e-05
  15  89.1
  16  1236.76
  17  3.31484e-07
  18  0.0128469
  19  143.536
  20  6.63643e-06
  21  0.197662
  22  18.2996
  23  0.0292939
  24  0.297124
  25  4.22504
  26  0.0649697
  27  73.7803
  28  3.89024e-05
  29  0.200315
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.894e-06  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:  1.018e+00  2.003e-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:  1.000e-02  3.890e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/524254/likelihoodResults_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.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): 102
logL (Free Index) = 1392.61953448
delta logL = -0.000509750736228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1392.61902494
delta logL = -2.10529606193e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6023       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0181       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1392.619     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      267 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.466        .11239E-01** at limit **
   2  Index         2.0366        5.3569        .50000        .20185E-07
   3  Normalizat    .10000E-01    .90970E-01    .12299E-01** at limit **
   4  Prefactor     1.0180        .14001E-01    .15019E-03   -.81965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03658
  Normalizat = 0.01
  Prefactor  = 1.01804
 **********
 **   18 **HESSE 
 **********

 FCN=   1392.619     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    587.89        .12259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0366        5.4569        .50000       -.63439    
   3  Normalizat    .10000E-01    .86301        .49197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0180        .42843E-01    .30037E-04   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21698e-11
Minuit parameter uncertainties:
  1  4.19876e-05
  2  1476
  3  4.18899e-06
  4  0.0428449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524254': 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): 102
logL (Free Index) = 1392.61902379
delta logL = 9.40581458053e-07

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.199e-05  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  2.037e+00  1.476e+03  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:  1.018e+00  4.284e-02  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:  1.000e-02  4.189e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/524254/cmap_HighResolution_556070401_556329601_4FGL_J2129.9+1208_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-02', job_status='DONE', photon_flux_upper_limit='3.45e-07', time_completed='2021-09-26 15:42:59.683291', job_id='524254', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632696179.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1222' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:42:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 524254: <4FGL_J2129.9+1208_daily_bin1222> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1222> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 15:30:38 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 15:31:30 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:30 2021
Terminated at Sun Sep 26 15:43:00 2021
Results reported at Sun Sep 26 15:43:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1222 322.482 12.1439 556070401 556329601 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 :                                   439.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            742 sec.

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

