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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1580
RA = 320.921, Dec = 5.592
tmin = 648864001, tmax = 649123201
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='480864', job_status='RUN', time_executed='2021-09-26 13:09:36.337535', time_epoch_executed='1632686976.34' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480864/ft1_4FGL_J2123.6+0535_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480864/ft1_4FGL_J2123.6+0535_daily_bin1580.fits outfile=/scratch/kocevski/480864/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1580.fits ra=320.921 dec=5.592 rad=12.0 tmin=648864001.0 tmax=649123201.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.02
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.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/480864/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/480864/ltcube_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.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/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits
.....................!
real 14.52
user 14.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/480864/ltcube_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits outfile=/scratch/kocevski/480864/expmap_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.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/480864/ltcube_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits
.....................!
real 191.39
user 185.61
sys 5.18

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits outfile=/scratch/kocevski/480864/cmap_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.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=320.921 yref=5.592 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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits outfile=/scratch/kocevski/480864/cmap_HighResolution_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.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=320.921 yref=5.592 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.63
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/480864/Model_4FGL_J2123.6+0535_daily_bin1580.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/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits.....................!
real 30.86
user 29.55
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits', '/scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits', expMap='/scratch/kocevski/480864/expmap_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits', expCube='/scratch/kocevski/480864/ltcube_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/480864/Model_4FGL_J2123.6+0535_daily_bin1580.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/480864/ft1_filtered_4FGL_J2123.6+0535_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/480864/ft2_4FGL_J2123.6+0535_daily_bin1580.fits
Exposure map: /scratch/kocevski/480864/expmap_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits
Exposure cube: /scratch/kocevski/480864/ltcube_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/480864/Model_4FGL_J2123.6+0535_daily_bin1580.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) = 2101.6307847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.478       1.0000         .10000E-03   10000.    
     2 'norm      '    15.673       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70916E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.070       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .49772E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54433E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18408E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    171.83       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.166       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7548       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    100.36       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69895E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.457       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21158E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10288E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .60886E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.129       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.971       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13536E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36834E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98918       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2101.536     FROM MIGRAD    STATUS=CONVERGED    263 CALLS     2346 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.653        74.534        .13603E-03    .14122E-03
   2  norm          15.406        18.293        .49937E-04   -.51677E-04
   3  Prefactor     .10000E-03    58.895       -.12125E-03** at limit **
   4  Prefactor     .10000E-03    102.65       -.16416E-03** at limit **
   5  Prefactor     17.988        27.264        .18717E-03    .14872E-02
   6  Prefactor     14.183        13.061        .29730E-04   -.56510E-02
   7  Prefactor     .10000E-03    18.671        .29099E-04** at limit **
   8  Prefactor     .10000E-03    74.821        .71319E-04** at limit **
   9  Prefactor     .10042E-03    190.37        .74872E-03** at limit **
  10  Prefactor     .10000E-03    20.084       -.19945E-03** at limit **
  11  Prefactor     165.26        227.73       -.74458E-03    .14344E-03
  12  Prefactor     13.819        11.418       -.33065E-05   -.10584E-03
  13  Prefactor     3.8938        9.2372       -.16529E-04   -.36689E-04
  14  Prefactor     .10000E-03    6.2561        .14298E-04** at limit **
  15  Prefactor     134.25        197.45        .68031E-04   -.11476E-03
  16  Prefactor     .10000E-03    97.408        .92742E-04** at limit **
  17  Prefactor     67.670        110.42        .16017E-03    .78500E-04
  18  Prefactor     .10000E-03    63.601        .14344E-03** at limit **
  19  norm          .10000E-03    2.8853        .80919E-04** at limit **
  20  norm          .10000E-03    50.283        .58644E-04** at limit **
  21  Prefactor     13.375        24.464        .81619E-04   -.83797E-04
  22  Prefactor     34.669        38.719        .20298E-04   -.27282E-04
  23  Prefactor     .10624E-03    145.65        .22119E-03** at limit **
  24  Prefactor     .10000E-03    46.877        .91127E-04** at limit **
  25  Normalizat    .10000E-01    .28378       -.82747E-04** at limit **
  26  Prefactor     .98662        .11865       -.60529E-04   -.38660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.653
  norm       = 15.4055
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 17.9878
  Prefactor  = 14.1834
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100417
  Prefactor  = 0.0001
  Prefactor  = 165.256
  Prefactor  = 13.8192
  Prefactor  = 3.89384
  Prefactor  = 0.000100001
  Prefactor  = 134.249
  Prefactor  = 0.000100001
  Prefactor  = 67.6697
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 13.3749
  Prefactor  = 34.6692
  Prefactor  = 0.000106242
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 0.986617
 **********
 **   18 **HESSE 
 **********

 FCN=   2101.536     FROM HESSE     STATUS=OK           508 CALLS     2854 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.653        74.436        .16820E-02   -1.4496    
   2  norm          15.406        18.266        .25292E-02   -1.4923    
   3  Prefactor     .10000E-03    58.716        .93393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    102.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.988        27.559        .24235E-02   -1.4859    
   6  Prefactor     14.183        28.812        .26667E-02   -1.4955    
   7  Prefactor     .10000E-03    18.654        .96043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.498        .95414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10042E-03    193.19        .10370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.072        .10151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     165.26        228.05        .76952E-03   -1.3130    
  12  Prefactor     13.819        11.410        .26605E-02   -1.4964    
  13  Prefactor     3.8938        9.2679        .52090E-02   -1.5313    
  14  Prefactor     .10000E-03    6.2024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     134.25        198.14        .10033E-02   -1.3385    
  16  Prefactor     .10000E-03    97.522        .10490E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.670        110.61        .12496E-02   -1.4061    
  18  Prefactor     .10000E-03    63.554        .91284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    49.856        .94589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.375        24.452        .26640E-02   -1.4976    
  22  Prefactor     34.669        38.731        .16261E-02   -1.4530    
  23  Prefactor     .10624E-03    170.59        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.711        .97974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .23809        .22803       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .98662        .12717        .32930E-01   -.93177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63982e-07
Minuit parameter uncertainties:
  1  74.6258
  2  18.2723
  3  0.000357302
  4  0.000850618
  5  27.578
  6  28.8405
  7  7.45022e-05
  8  0.000505381
  9  0.0180102
  10  0.000191648
  11  229.286
  12  11.4116
  13  9.27132
  14  0.000179216
  15  199.128
  16  0.000665613
  17  110.949
  18  0.000190645
  19  3.19599e-05
  20  0.000972091
  21  24.4701
  22  38.7594
  23  0.0654518
  24  0.000649707
  25  2.88803e-07
  26  0.127207
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.916e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.866e-01  1.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  2.888e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480864/likelihoodResults_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.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) = 2101.5364975
delta logL = -0.000247173259595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2101.53625394
delta logL = -3.61406137017e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12560E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8633       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98662       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   2101.536     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      287 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10636E-03    16.042        .15977E-01** at limit **
   2  Index         2.7357        7.1593        .50000        .18902E-04
   3  Normalizat    .10000E-01    .64298E-03    .11757E-01** at limit **
   4  Prefactor     .98662        .45965E-02    .14553E-03   -.16884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106364
  Index      = 2.7357
  Normalizat = 0.01
  Prefactor  = 0.986618
 **********
 **   18 **HESSE 
 **********

 FCN=   2101.536     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10636E-03    152.28        .16922E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7357        5.9456        .50000       -.46997    
   3  Normalizat    .10000E-01    .62559E-02    .23514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98662        .14326E-01    .29106E-04   -.93177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08401e-08
Minuit parameter uncertainties:
  1  0.06242
  2  506.456
  3  8.56404e-07
  4  0.014326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480864': 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) = 2101.53625156
delta logL = -1.23077506942e-06

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.064e-04  6.242e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.736e+00  5.065e+02  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.866e-01  1.433e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  8.564e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

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/480864/cmap_HighResolution_648864001_649123201_4FGL_J2123.6+0535_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.05e-07', time_completed='2021-09-26 13:16:58.069305', job_id='480864', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632687418.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1580' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 480864: <4FGL_J2123.6+0535_daily_bin1580> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1580> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:01:15 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:05:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:05:43 2021
Terminated at Sun Sep 26 13:16:58 2021
Results reported at Sun Sep 26 13:16:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1580 320.921 5.592 648864001 649123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   435.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             204.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            943 sec.

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

