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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1138
RA = 320.921, Dec = 5.592
tmin = 534297601, tmax = 534556801
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='479125', job_status='RUN', time_executed='2021-09-26 12:57:30.924947', time_epoch_executed='1632686250.92' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479125/ft1_4FGL_J2123.6+0535_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479125/ft1_4FGL_J2123.6+0535_daily_bin1138.fits outfile=/scratch/kocevski/479125/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1138.fits ra=320.921 dec=5.592 rad=12.0 tmin=534297601.0 tmax=534556801.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.53
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/479125/ltcube_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.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/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits
.....................!
real 13.03
user 12.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/479125/ltcube_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits outfile=/scratch/kocevski/479125/expmap_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.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/479125/ltcube_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits
.....................!
real 191.47
user 186.12
sys 4.90

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/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits scfile=/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits outfile=/scratch/kocevski/479125/cmap_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits scfile=/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits outfile=/scratch/kocevski/479125/cmap_HighResolution_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits', '/scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits', expMap='/scratch/kocevski/479125/expmap_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits', expCube='/scratch/kocevski/479125/ltcube_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479125/Model_4FGL_J2123.6+0535_daily_bin1138.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/479125/ft1_filtered_4FGL_J2123.6+0535_daily_bin1138.fits
Spacecraft file(s): /scratch/kocevski/479125/ft2_4FGL_J2123.6+0535_daily_bin1138.fits
Exposure map: /scratch/kocevski/479125/expmap_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits
Exposure cube: /scratch/kocevski/479125/ltcube_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479125/Model_4FGL_J2123.6+0535_daily_bin1138.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) = 8080.9818164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.591       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .74906       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.278       1.0000         .10000E-03   10000.    
    19 'norm      '    .79596       1.0000         .10000E-03   10000.    
    20 'norm      '    38.809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .33284       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0533       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.

 FCN=   8080.700     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3159 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.585        36.388        .53342E-06    .15551E-04
   2  norm          .10000E-03    3.3187        .97345E-07** at limit **
   3  Prefactor     2.8673        3.5463        .61033E-06   -.11441E-03
   4  Prefactor     .10000E-03    7.9461       -.64781E-08** at limit **
   5  Prefactor     26.141        18.954        .93813E-06    .69990E-04
   6  Prefactor     .10000E-03    47.631        .50238E-06** at limit **
   7  Prefactor     12.875        17.474        .40189E-06    .22834E-04
   8  Prefactor     2.8874        55.533        .16791E-05   -.25702E-05
   9  Prefactor     13.749        47.631       -.26768E-05   -.25826E-04
  10  Prefactor     13.123        19.264        .11474E-05    .26183E-04
  11  Prefactor     50.278        34.082        .95197E-06    .23348E-04
  12  Prefactor     5.2925        6.6307        .45235E-06   -.95299E-04
  13  Prefactor     11.860        9.5277        .50935E-06    .80540E-05
  14  Prefactor     .74890        1.7636        .81382E-06    .22604E-03
  15  Prefactor     15.259        31.577        .15018E-05   -.56178E-05
  16  Prefactor     15.070        30.100        .84747E-06    .24876E-06
  17  Prefactor     .10000E-03    130.88        .20576E-06** at limit **
  18  Prefactor     59.312        47.612        .29956E-05    .44692E-04
  19  norm          .79635        2.9402        .24980E-05   -.55439E-03
  20  norm          38.809        28.752       -.71852E-06   -.84221E-04
  21  Prefactor     .10000E-03    2.4465        .22726E-06** at limit **
  22  Prefactor     10.021        10.512        .71396E-06   -.39329E-05
  23  Prefactor     .10000E-03    5.4843        .12256E-06** at limit **
  24  Prefactor     .10000E-03    8.0790        .12411E-06** at limit **
  25  Normalizat    .33267        .27922       -.18005E-04   -.10192E-03
  26  Prefactor     1.0533        .11527        .32361E-05   -.27092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5853
  norm       = 0.0001
  Prefactor  = 2.86728
  Prefactor  = 0.0001
  Prefactor  = 26.1412
  Prefactor  = 0.0001
  Prefactor  = 12.8754
  Prefactor  = 2.88738
  Prefactor  = 13.749
  Prefactor  = 13.1226
  Prefactor  = 50.2784
  Prefactor  = 5.29247
  Prefactor  = 11.86
  Prefactor  = 0.748901
  Prefactor  = 15.2588
  Prefactor  = 15.0699
  Prefactor  = 0.0001
  Prefactor  = 59.3116
  norm       = 0.796351
  norm       = 38.8089
  Prefactor  = 0.0001
  Prefactor  = 10.0208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.332669
  Prefactor  = 1.05334
 **********
 **   18 **HESSE 
 **********

 FCN=   8080.700     FROM HESSE     STATUS=OK           466 CALLS     3625 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.585        36.433        .74927E-04   -1.4638    
   2  norm          .10000E-03    3.3320        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8673        3.5464        .18084E-03   -1.5369    
   4  Prefactor     .10000E-03    7.9475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.141        18.944        .78355E-04   -1.4685    
   6  Prefactor     .10000E-03    48.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.875        17.426        .11163E-03   -1.4990    
   8  Prefactor     2.8874        55.457        .23925E-03   -1.5368    
   9  Prefactor     13.749        47.664        .10779E-03   -1.4966    
  10  Prefactor     13.123        19.255        .11060E-03   -1.4983    
  11  Prefactor     50.278        32.972        .56564E-04   -1.4289    
  12  Prefactor     5.2925        6.5835        .17473E-03   -1.5248    
  13  Prefactor     11.860        9.4779        .11633E-03   -1.5019    
  14  Prefactor     .74890        1.5480        .15928E-02   -1.5535    
  15  Prefactor     15.259        30.416        .10248E-03   -1.4927    
  16  Prefactor     15.070        29.770        .10319E-03   -1.4931    
  17  Prefactor     .10000E-03    131.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.312        47.728        .52110E-04   -1.4166    
  19  norm          .79635        2.8936        .24719E-03   -1.5529    
  20  norm          38.809        27.398        .64339E-04   -1.4461    
  21  Prefactor     .10000E-03    2.4505        .13718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.021        10.499        .12662E-03   -1.5075    
  23  Prefactor     .10000E-03    5.4912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .33267        .27462        .55586E-03   -1.2094    
  26  Prefactor     1.0533        .11509        .15149E-03   -.90972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40989e-10
Minuit parameter uncertainties:
  1  36.4612
  2  2.54825e-06
  3  3.54667
  4  1.45834e-05
  5  18.9484
  6  0.000215531
  7  17.4325
  8  25.3348
  9  47.796
  10  19.264
  11  32.9842
  12  6.58435
  13  9.47912
  14  1.54809
  15  30.447
  16  29.7993
  17  0.000396563
  18  47.7585
  19  2.89411
  20  27.4068
  21  2.62478e-05
  22  10.5008
  23  3.29853e-06
  24  1.40976e-06
  25  0.275742
  26  0.115121
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.312e+01  1.926e+01  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:  1.053e+00  1.151e-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:  3.327e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479125/likelihoodResults_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.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) = 8080.62735768
delta logL = 0.0730073285231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8080.61152486
delta logL = 0.088840148097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8231       1.0000          .0000       10.000    
     3 'Normalizat'    .31339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0581       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=   8080.612     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      249 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.231        19.489        .12528E-03    .44981E-03
   2  Index         2.8240        1.1578        .78764E-02    .20865E-03
   3  Normalizat    .31338        .24311        .57224E-03    .42849E-03
   4  Prefactor     1.0581        .11289        .15118E-03    .14857E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2311
  Index      = 2.82403
  Normalizat = 0.313382
  Prefactor  = 1.05812
 **********
 **   18 **HESSE 
 **********

 FCN=   8080.612     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.231        17.423        .50114E-05   -1.5068    
   2  Index         2.8240        1.0349        .31506E-03   -.45025    
   3  Normalizat    .31338        .24237        .22889E-04   -1.2205    
   4  Prefactor     1.0581        .11261        .30237E-04   -.90817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48831e-09
Minuit parameter uncertainties:
  1  17.4321
  2  1.0442
  3  0.243188
  4  0.112634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479125': 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) = 8080.61152392
delta logL = 0.0888410828884

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.023e+01  1.743e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.824e+00  1.044e+00  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:  1.058e+00  1.126e-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:  3.134e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
Ra Dec: 320.921 5.592

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/479125/cmap_HighResolution_534297601_534556801_4FGL_J2123.6+0535_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-26 13:12:06.677787', job_id='479125', GAL2='1.06', fit_tolerance='1e-08', EG2='0.31', EG='0.33', time_epoch_completed='1632687126.68', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.88e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1138' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 479125: <4FGL_J2123.6+0535_daily_bin1138> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1138> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:46 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:57:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:57:15 2021
Terminated at Sun Sep 26 13:12:07 2021
Results reported at Sun Sep 26 13:12:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1138 320.921 5.592 534297601 534556801 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 :                                   872.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             374.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            981 sec.

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

