/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 130 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin135
RA = 320.921, Dec = 5.592
tmin = 274320001, tmax = 274579201
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='473429', job_status='RUN', time_executed='2021-09-26 12:38:58.714481', time_epoch_executed='1632685138.71' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473429

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473429/ft1_4FGL_J2123.6+0535_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473429/ft1_4FGL_J2123.6+0535_daily_bin135.fits outfile=/scratch/kocevski/473429/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin135.fits ra=320.921 dec=5.592 rad=12.0 tmin=274320001.0 tmax=274579201.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.67
user 3.36
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473429/ft1_filtered_4FGL_J2123.6+0535_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/473429/ltcube_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.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/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits
.....................!
real 14.05
user 13.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473429/ft1_filtered_4FGL_J2123.6+0535_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/473429/ltcube_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.fits outfile=/scratch/kocevski/473429/expmap_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.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/473429/ltcube_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.fits
.....................!
real 191.30
user 185.54
sys 5.08

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/473429/ft1_filtered_4FGL_J2123.6+0535_daily_bin135.fits scfile=/scratch/kocevski/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits outfile=/scratch/kocevski/473429/cmap_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473429/ft1_filtered_4FGL_J2123.6+0535_daily_bin135.fits scfile=/scratch/kocevski/473429/ft2_4FGL_J2123.6+0535_daily_bin135.fits outfile=/scratch/kocevski/473429/cmap_HighResolution_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .48188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.837       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8223       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78634       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98103       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=   7897.442     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3082 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.953        .63975E-05** at limit **
   2  norm          .48142        4.3975       -.31982E-05    .11847E-03
   3  Prefactor     15.878        7.1166        .52644E-07   -.15554E-03
   4  Prefactor     .10000E-03    21.287        .87717E-05** at limit **
   5  Prefactor     6.0432        16.441       -.74164E-06    .28355E-04
   6  Prefactor     20.644        30.650        .92409E-05    .73828E-04
   7  Prefactor     26.030        24.654       -.53415E-05    .34179E-04
   8  Prefactor     .10000E-03    16.690       -.13713E-04** at limit **
   9  Prefactor     .10000E-03    62.351        .47362E-04** at limit **
  10  Prefactor     53.085        31.670       -.19775E-05   -.17018E-05
  11  Prefactor     28.333        51.677       -.14595E-04    .13718E-04
  12  Prefactor     1.7108        5.4954       -.31290E-05   -.99407E-03
  13  Prefactor     .10000E-03    2.4507       -.32714E-07** at limit **
  14  Prefactor     5.3781        3.4479        .68368E-06    .23550E-04
  15  Prefactor     43.781        36.132       -.88086E-06   -.15947E-04
  16  Prefactor     .10000E-03    108.83       -.36228E-04** at limit **
  17  Prefactor     .10000E-03    40.649       -.25058E-04** at limit **
  18  Prefactor     40.838        39.916        .10878E-05    .21755E-05
  19  norm          6.8223        2.7458       -.38160E-07    .24885E-03
  20  norm          .10000E-03    4.8485       -.82954E-07** at limit **
  21  Prefactor     .10000E-03    5.1781       -.12880E-06** at limit **
  22  Prefactor     30.625        16.408       -.10698E-06   -.91247E-05
  23  Prefactor     .10000E-03    9.0150       -.13149E-06** at limit **
  24  Prefactor     .10000E-03    20.011        .35681E-05** at limit **
  25  Normalizat    .78625        .26922        .22348E-05    .14249E-03
  26  Prefactor     .98107        .10723       -.50662E-07    .45114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.48142
  Prefactor  = 15.8778
  Prefactor  = 0.0001
  Prefactor  = 6.04317
  Prefactor  = 20.6437
  Prefactor  = 26.0297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0854
  Prefactor  = 28.3335
  Prefactor  = 1.71077
  Prefactor  = 0.0001
  Prefactor  = 5.37814
  Prefactor  = 43.7811
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.838
  norm       = 6.82233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.786247
  Prefactor  = 0.981068
 **********
 **   18 **HESSE 
 **********

 FCN=   7897.442     FROM HESSE     STATUS=OK           460 CALLS     3542 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .48142        11.795        .35694E-02   -1.5569    
   3  Prefactor     15.878        7.1134        .10052E-03   -1.4911    
   4  Prefactor     .10000E-03    21.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0432        16.430        .16332E-03   -1.5216    
   6  Prefactor     20.644        30.592        .88190E-04   -1.4799    
   7  Prefactor     26.030        24.620        .39255E-03   -1.4687    
   8  Prefactor     .10000E-03    16.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.085        31.709        .55047E-04   -1.4249    
  11  Prefactor     28.333        51.622        .75248E-04   -1.4643    
  12  Prefactor     1.7108        5.5592        .32137E-03   -1.5446    
  13  Prefactor     .10000E-03    2.4567        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3781        3.4347        .11537E-03   -1.5244    
  15  Prefactor     43.781        36.172        .60588E-04   -1.4384    
  16  Prefactor     .10000E-03    109.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.838        39.921        .62727E-04   -1.4429    
  19  norm          6.8223        2.7463        .88586E-04   -1.5186    
  20  norm          .10000E-03    4.8514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.625        16.411        .72402E-04   -1.4601    
  23  Prefactor     .10000E-03    9.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78625        .30736        .42351E-03   -1.0058    
  26  Prefactor     .98107        .12522        .17186E-03   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32009e-09
Minuit parameter uncertainties:
  1  1.29102e-05
  2  4.76651
  3  7.11378
  4  1.57717e-05
  5  16.442
  6  30.6147
  7  24.6297
  8  9.55162e-06
  9  5.33734e-05
  10  31.7186
  11  51.7032
  12  5.56087
  13  9.41432e-06
  14  3.43484
  15  36.1904
  16  0.00065712
  17  1.63238e-05
  18  39.9469
  19  2.74636
  20  1.61464e-06
  21  8.5384e-06
  22  16.413
  23  7.3504e-06
  24  1.61202e-05
  25  0.308045
  26  0.125257
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.309e+01  3.172e+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.811e-01  1.253e-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:  7.862e-01  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 5.97e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 1.99e-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) = 7896.62584907
delta logL = 0.815900046498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7896.61264498
delta logL = 0.829104133619

Fit tolerance = 1e-08

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

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

 FCN=   7896.613     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      276 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.990        161.96        .20885E-02    .36397E-03
   2  Index         3.1704        2.5006        .11058        .19300E-03
   3  Normalizat    .68725        .10149        .10164        .42979E-04
   4  Prefactor     1.0112        .40206E-01    .43233E-01   -.82654E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9898
  Index      = 3.17041
  Normalizat = 0.687248
  Prefactor  = 1.01117
 **********
 **   18 **HESSE 
 **********

 FCN=   7896.613     FROM HESSE     STATUS=OK            33 CALLS      309 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.990        39.694        .83540E-04   -1.4749    
   2  Index         3.1704        1.0106        .41931E-02   -.37462    
   3  Normalizat    .68725        .29505        .45044E-03   -1.0440    
   4  Prefactor     1.0112        .12927        .16951E-03   -.92358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32107e-10
Minuit parameter uncertainties:
  1  39.74
  2  1.01871
  3  0.295728
  4  0.129305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473429': 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) = 7896.61263634
delta logL = 0.829112774294

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.299e+01  3.974e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.170e+00  1.019e+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.011e+00  1.293e-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:  6.872e-01  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 320.921 5.592
Photon Index (Free Index): 3.17 +/- 1.02
Photon Flux (Free Index): 1.71e-07 +/- 9.28e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.61e-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/473429/cmap_HighResolution_274320001_274579201_4FGL_J2123.6+0535_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.17e-05', photon_flux_error='5.97e-08', dlogl='8.29e-01', energy_flux='3.32e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-26 12:51:48.338272', photon_index_error2='1.02', photon_index2='3.17', ts='4.39', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.79', time_epoch_completed='1632685908.34', return_code='0', job_id='473429', GAL2='1.01', EG2='0.69', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='9.28e-08', ts2='6.31', photon_index='2.39' WHERE bin_id='135' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 473429: <4FGL_J2123.6+0535_daily_bin135> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin135> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:35:25 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:36:37 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:36:37 2021
Terminated at Sun Sep 26 12:51:49 2021
Results reported at Sun Sep 26 12:51:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin135 320.921 5.592 274320001 274579201 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 :                                   766.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            984 sec.

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

