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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin335
RA = 320.921, Dec = 5.592
tmin = 326160001, tmax = 326419201
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='473741', job_status='RUN', time_executed='2021-09-26 12:39:59.329394', time_epoch_executed='1632685199.33' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473741

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473741/ft1_4FGL_J2123.6+0535_daily_bin335.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473741/ft1_4FGL_J2123.6+0535_daily_bin335.fits outfile=/scratch/kocevski/473741/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin335.fits ra=320.921 dec=5.592 rad=12.0 tmin=326160001.0 tmax=326419201.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.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.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/473741/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin335.fits evtable="EVENTS" outfile="/scratch/kocevski/473741/ft1_filtered_4FGL_J2123.6+0535_daily_bin335.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/473741/ft1_filtered_4FGL_J2123.6+0535_daily_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/473741/ltcube_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.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/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits
.....................!
real 14.53
user 14.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473741/ft1_filtered_4FGL_J2123.6+0535_daily_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/473741/ltcube_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.fits outfile=/scratch/kocevski/473741/expmap_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.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/473741/ltcube_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.fits
.....................!
real 196.36
user 188.59
sys 5.35

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/473741/ft1_filtered_4FGL_J2123.6+0535_daily_bin335.fits scfile=/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits outfile=/scratch/kocevski/473741/cmap_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.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/473741/ft1_filtered_4FGL_J2123.6+0535_daily_bin335.fits scfile=/scratch/kocevski/473741/ft2_4FGL_J2123.6+0535_daily_bin335.fits outfile=/scratch/kocevski/473741/cmap_HighResolution_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.257       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.907       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22013E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.917       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0625       1.0000         .10000E-03   10000.    
    20 'norm      '    13.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.824       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89375       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91674       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=   7405.441     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3059 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.279        46.398        .31765E-05    .52480E-03
   2  norm          .10000E-03    2.0643        .78160E-07** at limit **
   3  Prefactor     13.964        6.7463        .38209E-07   -.50877E-04
   4  Prefactor     5.6373        19.068       -.27330E-06   -.37741E-04
   5  Prefactor     12.936        16.367        .20749E-08   -.47887E-04
   6  Prefactor     29.899        20.913        .13977E-06    .45687E-04
   7  Prefactor     .10000E-03    8.3757        .37272E-07** at limit **
   8  Prefactor     25.594        38.302       -.52648E-05   -.26926E-03
   9  Prefactor     .10000E-03    20.612       -.10557E-05** at limit **
  10  Prefactor     14.778        13.368       -.62691E-07   -.90945E-05
  11  Prefactor     .10001E-03    146.04        .50049E-05** at limit **
  12  Prefactor     5.7049        5.9888        .35846E-05   -.19059E-02
  13  Prefactor     .10000E-03    3.5243       -.32828E-06** at limit **
  14  Prefactor     .10000E-03    .64066       -.28559E-07** at limit **
  15  Prefactor     21.862        28.904       -.37248E-05   -.40672E-03
  16  Prefactor     .10000E-03    9.0296       -.39625E-06** at limit **
  17  Prefactor     .10000E-03    44.247        .35186E-05** at limit **
  18  Prefactor     .10001E-03    25.345        .42383E-05** at limit **
  19  norm          3.0647        3.1658       -.96908E-07   -.24503E-03
  20  norm          13.253        20.980       -.50633E-06   -.95392E-04
  21  Prefactor     .10000E-03    3.6294       -.20231E-07** at limit **
  22  Prefactor     .10000E-03    9.0303        .41684E-06** at limit **
  23  Prefactor     10.834        23.255       -.92842E-06   -.79855E-04
  24  Prefactor     .10001E-03    31.681       -.61488E-05** at limit **
  25  Normalizat    .89337        .24836        .58082E-06   -.62846E-04
  26  Prefactor     .91673        .10328       -.46605E-06    .48639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.279
  norm       = 0.0001
  Prefactor  = 13.964
  Prefactor  = 5.63733
  Prefactor  = 12.9358
  Prefactor  = 29.8989
  Prefactor  = 0.0001
  Prefactor  = 25.5942
  Prefactor  = 0.0001
  Prefactor  = 14.7776
  Prefactor  = 0.00010001
  Prefactor  = 5.70488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8618
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100007
  norm       = 3.06468
  norm       = 13.2529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8342
  Prefactor  = 0.000100013
  Normalizat = 0.893371
  Prefactor  = 0.916729
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.441     FROM HESSE     STATUS=OK           450 CALLS     3509 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.279        47.194        .20484E-03   -1.3742    
   2  norm          .10000E-03    2.0661        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.964        6.7538        .10719E-03   -1.4960    
   4  Prefactor     5.6373        19.070        .16925E-03   -1.5233    
   5  Prefactor     12.936        16.360        .11140E-03   -1.4988    
   6  Prefactor     29.899        20.927        .73263E-04   -1.4614    
   7  Prefactor     .10000E-03    8.3791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.594        38.546        .79155E-04   -1.4696    
   9  Prefactor     .10000E-03    20.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.778        13.382        .10419E-03   -1.4939    
  11  Prefactor     .10001E-03    152.69        .40282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7049        6.6641        .84123E-03   -1.5230    
  13  Prefactor     .10000E-03    3.5634        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .64428        .67207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.862        29.921        .85559E-04   -1.4772    
  16  Prefactor     .10000E-03    9.0349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    25.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0647        3.1544        .13658E-03   -1.5358    
  20  norm          13.253        20.972        .11005E-03   -1.4980    
  21  Prefactor     .10000E-03    3.6436        .16006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.834        23.379        .12178E-03   -1.5050    
  24  Prefactor     .10001E-03    32.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89337        .29782        .36796E-03   -.96693    
  26  Prefactor     .91673        .12370        .16823E-03   -.95559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24755e-09
Minuit parameter uncertainties:
  1  47.2119
  2  4.27331e-06
  3  6.75414
  4  19.091
  5  16.3653
  6  20.9317
  7  1.30714e-06
  8  38.5836
  9  0.00018229
  10  13.3847
  11  0.00249012
  12  6.66492
  13  2.77422e-05
  14  3.60212e-06
  15  29.9418
  16  4.53455e-05
  17  0.000908095
  18  0.0008781
  19  3.15456
  20  20.9841
  21  6.84478e-06
  22  4.99657e-05
  23  23.3989
  24  0.0013094
  25  0.298367
  26  0.123736
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.478e+01  1.338e+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.167e-01  1.237e-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.934e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 9.25e-06 +/- 8.38e-06

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) = 7404.07772621
delta logL = 1.36309904033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7403.95786007
delta logL = 1.48296517876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6375       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0912       1.0000          .0000       10.000    
     3 'Normalizat'    .92151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91070       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=   7403.958     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5989        7.9159        .36277E-02   -.28086E-03
   2  Index         1.0893        .40716        .26042       -.28040E-04
   3  Normalizat    .92130        .21854        .81941E-01    .50167E-04
   4  Prefactor     .91077        .10174        .45141E-01    .24665E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.59885
  Index      = 1.08929
  Normalizat = 0.9213
  Prefactor  = 0.910766
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.958     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5989        11.117        .14511E-03   -1.5157    
   2  Index         1.0893        .62011        .10590E-01   -.89809    
   3  Normalizat    .92130        .25832        .36274E-03   -.95716    
   4  Prefactor     .91077        .12052        .16870E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4843e-11
Minuit parameter uncertainties:
  1  11.1198
  2  0.624283
  3  0.258673
  4  0.120554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473741': 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) = 7403.95785411
delta logL = 1.4829711419

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  7.599e+00  1.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.089e+00  6.243e-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.108e-01  1.206e-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.213e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.09 +/- 0.62
Photon Flux (Free Index): 4.96e-09 +/- 5.75e-09
Energy Flux (Free Index): 5.69e-05 +/- 8.52e-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/473741/cmap_HighResolution_326160001_326419201_4FGL_J2123.6+0535_daily_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='5.69e-05', photon_flux_error='2.52e-08', dlogl='1.48e+00', energy_flux='9.25e-06', photon_flux2='4.96e-09', job_status='DONE', time_completed='2021-09-26 12:52:26.661977', photon_index_error2='0.62', photon_index2='1.09', ts='6.51', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='8.52e-05', EG='0.89', time_epoch_completed='1632685946.66', return_code='0', job_id='473741', GAL2='0.91', EG2='0.92', return_code2='0', energy_flux_error='8.38e-06', photon_flux_error2='5.75e-09', ts2='9.47', photon_index='2.39' WHERE bin_id='335' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:52:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 473741: <4FGL_J2123.6+0535_daily_bin335> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin335> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:35:52 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:39:41 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:39:41 2021
Terminated at Sun Sep 26 12:52:27 2021
Results reported at Sun Sep 26 12:52:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin335 320.921 5.592 326160001 326419201 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 :                                   741.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             370.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            995 sec.

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

