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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin923
RA = 320.921, Dec = 5.592
tmin = 478569601, tmax = 478828801
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='478803', job_status='RUN', time_executed='2021-09-26 12:57:33.203924', time_epoch_executed='1632686253.2' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478803/ft1_4FGL_J2123.6+0535_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478803/ft1_4FGL_J2123.6+0535_daily_bin923.fits outfile=/scratch/kocevski/478803/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin923.fits ra=320.921 dec=5.592 rad=12.0 tmin=478569601.0 tmax=478828801.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.62
user 3.23
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478803/ft1_filtered_4FGL_J2123.6+0535_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/478803/ltcube_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.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/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits
.....................!
real 14.00
user 13.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478803/ft1_filtered_4FGL_J2123.6+0535_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/478803/ltcube_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.fits outfile=/scratch/kocevski/478803/expmap_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.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/478803/ltcube_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.fits
.....................!
real 191.87
user 185.61
sys 5.34

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/478803/ft1_filtered_4FGL_J2123.6+0535_daily_bin923.fits scfile=/scratch/kocevski/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits outfile=/scratch/kocevski/478803/cmap_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478803/ft1_filtered_4FGL_J2123.6+0535_daily_bin923.fits scfile=/scratch/kocevski/478803/ft2_4FGL_J2123.6+0535_daily_bin923.fits outfile=/scratch/kocevski/478803/cmap_HighResolution_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.635       1.0000         .10000E-03   10000.    
     2 'norm      '    14.360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.492       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7108       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4232       1.0000         .10000E-03   10000.    
    20 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13907E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.308       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2241       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.321       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95488       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91005       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=   7621.882     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3085 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.641        49.310       -.15136E-05    .19261E-04
   2  norm          14.360        12.170        .13721E-05    .12216E-03
   3  Prefactor     .88270        3.0466        .13530E-05    .19247E-03
   4  Prefactor     2.3271        75.044        .82528E-07   -.46763E-05
   5  Prefactor     .10000E-03    16.066        .92697E-07** at limit **
   6  Prefactor     .10000E-03    33.260        .93919E-06** at limit **
   7  Prefactor     .10000E-03    10.706        .61472E-07** at limit **
   8  Prefactor     .10000E-03    18.829       -.21953E-06** at limit **
   9  Prefactor     .10000E-03    19.632       -.29068E-06** at limit **
  10  Prefactor     61.453        32.131        .11038E-05    .69402E-04
  11  Prefactor     .10000E-03    15.952        .36295E-06** at limit **
  12  Prefactor     9.5159        6.2985        .13413E-06   -.13102E-04
  13  Prefactor     .10000E-03    12.712       -.14519E-05** at limit **
  14  Prefactor     .10000E-03    .79605       -.10452E-06** at limit **
  15  Prefactor     67.488        38.560        .67743E-06   -.87228E-04
  16  Prefactor     .10000E-03    25.089       -.60489E-06** at limit **
  17  Prefactor     .10000E-03    47.621       -.49933E-06** at limit **
  18  Prefactor     3.7834        224.11        .75481E-05    .88441E-05
  19  norm          4.4235        2.8375        .23731E-06   -.11443E-03
  20  norm          .10000E-03    25.000        .40794E-05** at limit **
  21  Prefactor     .10000E-03    20.374        .10293E-04** at limit **
  22  Prefactor     14.311        15.013        .13691E-06   -.66777E-04
  23  Prefactor     2.2261        30.274        .24274E-05   -.12043E-04
  24  Prefactor     35.322        32.850        .31430E-06   -.56650E-04
  25  Normalizat    .95445        .27445       -.66970E-05   -.47238E-04
  26  Prefactor     .91023        .11219        .22536E-05   -.53795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6412
  norm       = 14.3598
  Prefactor  = 0.882703
  Prefactor  = 2.32708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.453
  Prefactor  = 0.0001
  Prefactor  = 9.51589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.4877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78343
  norm       = 4.42346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3109
  Prefactor  = 2.2261
  Prefactor  = 35.3215
  Normalizat = 0.954445
  Prefactor  = 0.910232
 **********
 **   18 **HESSE 
 **********

 FCN=   7621.882     FROM HESSE     STATUS=OK           450 CALLS     3535 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.641        49.177        .10129E-03   -1.4917    
   2  norm          14.360        12.184        .52847E-03   -1.4950    
   3  Prefactor     .88270        2.9911        .27550E-03   -1.5520    
   4  Prefactor     2.3271        75.290        .26869E-03   -1.5403    
   5  Prefactor     .10000E-03    16.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.453        32.193        .51189E-04   -1.4139    
  11  Prefactor     .10000E-03    15.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5159        6.2951        .12991E-03   -1.5091    
  13  Prefactor     .10000E-03    13.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .80282        .75999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     67.488        38.662        .48856E-04   -1.4063    
  16  Prefactor     .10000E-03    25.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7834        221.57        .20964E-03   -1.5319    
  19  norm          4.4235        2.8314        .11079E-03   -1.5287    
  20  norm          .10000E-03    25.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.311        15.002        .10589E-03   -1.4951    
  23  Prefactor     2.2261        30.132        .27571E-03   -1.5410    
  24  Prefactor     35.322        32.853        .67430E-04   -1.4519    
  25  Normalizat    .95445        .31277        .37993E-03   -.94573    
  26  Prefactor     .91023        .12945        .17303E-03   -.95784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70906e-10
Minuit parameter uncertainties:
  1  49.3044
  2  12.1857
  3  2.99164
  4  26.5089
  5  6.8391e-05
  6  0.000223036
  7  9.99778e-06
  8  7.12517e-06
  9  2.67683e-05
  10  32.2026
  11  7.43861e-05
  12  6.29556
  13  3.29544e-05
  14  5.44391e-07
  15  38.6766
  16  5.12584e-05
  17  9.65967e-05
  18  58.1331
  19  2.83149
  20  9.09209e-05
  21  0.000130402
  22  15.0057
  23  16.3898
  24  32.8701
  25  0.313372
  26  0.129499
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  6.145e+01  3.220e+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:  9.102e-01  1.295e-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:  9.544e-01  3.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 2.02e-05

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) = 7621.6060996
delta logL = 0.275963902747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7621.55803255
delta logL = 0.324030955599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.072       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8648       1.0000          .0000       10.000    
     3 'Normalizat'    .88935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93059       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=   7621.558     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      274 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.070        44.494        .64956E-04   -.24006E-03
   2  Index         2.8645        .75935        .45444E-02   -.11051E-03
   3  Normalizat    .88942        .29948        .39210E-03    .58192E-04
   4  Prefactor     .93059        .13018        .17132E-03    .11966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0697
  Index      = 2.8645
  Normalizat = 0.889418
  Prefactor  = 0.930588
 **********
 **   18 **HESSE 
 **********

 FCN=   7621.558     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.070        37.020        .12991E-04   -1.4473    
   2  Index         2.8645        .63131        .18178E-03   -.44128    
   3  Normalizat    .88942        .29659        .15684E-04   -.96833    
   4  Prefactor     .93059        .12918        .34263E-04   -.95080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22064e-10
Minuit parameter uncertainties:
  1  37.0419
  2  0.633378
  3  0.297135
  4  0.129219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478803': 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) = 7621.55803198
delta logL = 0.324031523261

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.807e+01  3.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.865e+00  6.334e-01  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.306e-01  1.292e-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:  8.894e-01  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.86 +/- 0.63
Photon Flux (Free Index): 1.62e-07 +/- 9.07e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.70e-05

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/478803/cmap_HighResolution_478569601_478828801_4FGL_J2123.6+0535_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='3.47e-05', photon_flux_error='6.06e-08', dlogl='3.24e-01', energy_flux='3.85e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-26 13:10:01.724765', photon_index_error2='0.63', photon_index2='2.86', ts='6.05', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='0.95', time_epoch_completed='1632687001.72', return_code='0', job_id='478803', GAL2='0.93', EG2='0.89', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='9.07e-08', ts2='6.82', photon_index='2.39' WHERE bin_id='923' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:10:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 478803: <4FGL_J2123.6+0535_daily_bin923> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin923> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:19 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:55:31 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:55:31 2021
Terminated at Sun Sep 26 13:10:02 2021
Results reported at Sun Sep 26 13:10:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin923 320.921 5.592 478569601 478828801 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 :                                   744.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            883 sec.

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

