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


Performing analysis on: 4FGL_J2129.9+1208_daily_bin638
RA = 322.482, Dec = 12.1439
tmin = 404697601, tmax = 404956801
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='520114', job_status='RUN', time_executed='2021-09-26 15:16:17.268573', time_epoch_executed='1632694577.27' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='638'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520114/ft1_4FGL_J2129.9+1208_daily_bin638.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520114/ft1_4FGL_J2129.9+1208_daily_bin638.fits outfile=/scratch/kocevski/520114/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin638.fits ra=322.482 dec=12.1439 rad=12.0 tmin=404697601.0 tmax=404956801.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 6.18
user 5.85
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.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/520114/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin638.fits evtable="EVENTS" outfile="/scratch/kocevski/520114/ft1_filtered_4FGL_J2129.9+1208_daily_bin638.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520114/ft1_filtered_4FGL_J2129.9+1208_daily_bin638.fits" evtable="EVENTS" scfile=/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits sctable="SC_DATA" outfile=/scratch/kocevski/520114/ltcube_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.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/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits
.....................!
real 14.65
user 14.00
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520114/ft1_filtered_4FGL_J2129.9+1208_daily_bin638.fits evtable="EVENTS" scfile=/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits sctable="SC_DATA" expcube=/scratch/kocevski/520114/ltcube_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.fits outfile=/scratch/kocevski/520114/expmap_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.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/520114/ltcube_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.fits
.....................!
real 191.85
user 185.65
sys 5.28

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/520114/ft1_filtered_4FGL_J2129.9+1208_daily_bin638.fits scfile=/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits outfile=/scratch/kocevski/520114/cmap_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520114/ft1_filtered_4FGL_J2129.9+1208_daily_bin638.fits scfile=/scratch/kocevski/520114/ft2_4FGL_J2129.9+1208_daily_bin638.fits outfile=/scratch/kocevski/520114/cmap_HighResolution_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.940       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    91.179       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0094       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3828       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6005       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4522       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3882       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.898       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71260       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97516       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=   5340.477     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3671 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.936        37.748       -.35855E-05   -.30327E-05
   2  norm          .10000E-03    8.2227       -.11398E-05** at limit **
   3  norm          .10000E-03    20.634       -.15149E-05** at limit **
   4  Prefactor     .10000E-03    4.7860       -.40378E-07** at limit **
   5  Prefactor     .10000E-03    8.3544        .86198E-06** at limit **
   6  Prefactor     .10000E-03    4.3802       -.27629E-07** at limit **
   7  Prefactor     .10000E-03    5.5419        .32158E-07** at limit **
   8  Prefactor     .10000E-03    6.1776       -.11348E-06** at limit **
   9  Prefactor     38.263        39.553       -.42336E-05   -.45153E-05
  10  Prefactor     14.343        16.860        .11102E-06    .29490E-05
  11  norm          2.4505        4.2418       -.27004E-06   -.36849E-03
  12  Prefactor     .10000E-03    16.884        .49513E-06** at limit **
  13  Prefactor     .10000E-03    1.7398       -.29701E-07** at limit **
  14  Prefactor     .10000E-03    3.2408       -.34889E-07** at limit **
  15  Prefactor     31.602        53.105       -.14876E-05    .66531E-05
  16  Prefactor     91.243        133.79        .62512E-04    .63173E-04
  17  norm          5.0118        3.2511        .21229E-05    .10272E-02
  18  Prefactor     .10000E-03    89.024       -.44117E-06** at limit **
  19  Prefactor     .10000E-03    36.119       -.13873E-04** at limit **
  20  norm          6.3820        3.5986       -.31361E-06   -.13218E-03
  21  norm          6.5994        17.592       -.95405E-06   -.29978E-04
  22  Prefactor     .10000E-03    7.4596        .21250E-06** at limit **
  23  Prefactor     3.4005        147.16       -.11739E-03   -.79579E-04
  24  Prefactor     .10001E-03    138.59        .11885E-04** at limit **
  25  norm          1.3888        1.2985        .63761E-06    .88702E-03
  26  Prefactor     26.897        30.017       -.14915E-05   -.27783E-04
  27  Prefactor     .10000E-03    33.748        .13509E-04** at limit **
  28  Normalizat    .71257        .28232        .88946E-05    .92527E-04
  29  Prefactor     .97520        .11743       -.12722E-05    .60715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9362
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2633
  Prefactor  = 14.3434
  norm       = 2.45046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6015
  Prefactor  = 91.2428
  norm       = 5.01184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.38195
  norm       = 6.59944
  Prefactor  = 0.0001
  Prefactor  = 3.40048
  Prefactor  = 0.000100006
  norm       = 1.38883
  Prefactor  = 26.8975
  Prefactor  = 0.0001
  Normalizat = 0.712566
  Prefactor  = 0.975204
 **********
 **   18 **HESSE 
 **********

 FCN=   5340.477     FROM HESSE     STATUS=OK           547 CALLS     4218 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.936        37.719        .12113E-03   -1.5046    
   2  norm          .10000E-03    8.3005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7889        .15614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3854        .14937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5432        .16802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1783        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.263        39.496        .64788E-04   -1.4470    
  10  Prefactor     14.343        16.860        .10577E-03   -1.4950    
  11  norm          2.4505        4.2164        .18815E-03   -1.5395    
  12  Prefactor     .10000E-03    16.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7425        .94122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2598        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.602        53.212        .71277E-04   -1.4583    
  16  Prefactor     91.243        133.68        .21042E-03   -1.3795    
  17  norm          5.0118        3.2278        .92199E-04   -1.5260    
  18  Prefactor     .10000E-03    89.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3820        3.5992        .95796E-04   -1.5203    
  21  norm          6.5994        17.560        .15620E-03   -1.5194    
  22  Prefactor     .10000E-03    7.5715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4005        148.37        .21767E-03   -1.5339    
  24  Prefactor     .10001E-03    139.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3888        1.2808        .75273E-04   -1.5472    
  26  Prefactor     26.897        30.027        .77243E-04   -1.4670    
  27  Prefactor     .10000E-03    33.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71257        .32458        .40702E-03   -1.0340    
  29  Prefactor     .97520        .13753        .15725E-03   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62899e-09
Minuit parameter uncertainties:
  1  37.8017
  2  1.08271e-05
  3  3.41987e-06
  4  5.81115e-06
  5  2.76548e-06
  6  7.25918e-06
  7  5.76073e-06
  8  3.61988e-06
  9  39.5233
  10  16.8651
  11  4.21696
  12  4.44926e-05
  13  3.66883e-06
  14  5.69616e-06
  15  53.2916
  16  134.129
  17  3.22789
  18  8.27784e-06
  19  1.89829e-05
  20  3.5993
  21  17.5737
  22  8.84e-06
  23  45.0423
  24  0.00176585
  25  1.28087
  26  30.044
  27  4.79786e-05
  28  0.325464
  29  0.137584
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.669e-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:  9.752e-01  1.376e-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:  7.126e-01  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520114/likelihoodResults_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.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) = 5340.47999321
delta logL = -0.00271690872796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5340.47727591
delta logL = 3.88623448089e-07

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 'Index     '    2.5997       1.0000          .0000       10.000    
     3 'Normalizat'    .71257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97520       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5340.477     FROM MIGRAD    STATUS=FAILED       102 CALLS      257 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.002        .95402E-02** at limit **
   2  Index         1.9801        9.0090        .50000       -.25226E-05
   3  Normalizat    .71257        .19837E-01    .40701E-03   -.40016E-03
   4  Prefactor     .97520        .89247E-02    .15725E-03   -.10414E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5340.477     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      442 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.002        .27771E-03** at limit **
   2  Index         1.9801        9.0090        .55682E-06   -.25226E-05
   3  Normalizat    .71257        .19837E-01    .56192E-08   -.40016E-03
   4  Prefactor     .97520        .89247E-02    .13713E-08   -.10414E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5340.477     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      474 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    168.50        .10805E-02** at limit **
   2  Index         1.9799        5.8258        .50000       -.37585E-07
   3  Normalizat    .71257        .61107E-01    .16280E-04   -.39803E-03
   4  Prefactor     .97520        .27494E-01    .31450E-04   -.10357E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97987
  Normalizat = 0.712568
  Prefactor  = 0.975201
 **********
 **   18 **HESSE 
 **********

 FCN=   5340.477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      503 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    523.49        .21611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9799        8.6710        .50000       -.64854    
   3  Normalizat    .71257        .20593        .32561E-05   -1.0340    
   4  Prefactor     .97520        .92722E-01    .62900E-05   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27892e-09
Minuit parameter uncertainties:
  1  0.000184884
  2  1341.08
  3  0.206153
  4  0.0927366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520114': 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) = 5340.4772694
delta logL = 6.89782973495e-06

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.849e-04  1.000e-04  1.000e+04 ( 1.000e-12)
302        Index:  1.980e+00  1.341e+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:  9.752e-01  9.274e-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:  7.126e-01  2.062e-01  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/520114/cmap_HighResolution_404697601_404956801_4FGL_J2129.9+1208_daily_bin638.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-26 15:30:12.739200', job_id='520114', GAL2='0.98', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632695412.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='638' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 520114: <4FGL_J2129.9+1208_daily_bin638> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin638 322.482 12.1439 404697601 404956801 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 :                                   813.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            898 sec.

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

