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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1377
RA = 320.921, Dec = 5.592
tmin = 596246401, tmax = 596505601
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='480541', job_status='RUN', time_executed='2021-09-26 13:06:36.435835', time_epoch_executed='1632686796.44' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480541/ft1_4FGL_J2123.6+0535_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480541/ft1_4FGL_J2123.6+0535_daily_bin1377.fits outfile=/scratch/kocevski/480541/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1377.fits ra=320.921 dec=5.592 rad=12.0 tmin=596246401.0 tmax=596505601.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 4.09
user 3.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480541/ft1_filtered_4FGL_J2123.6+0535_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/480541/ltcube_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.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/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits
.....................!
real 12.50
user 12.14
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480541/ft1_filtered_4FGL_J2123.6+0535_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/480541/ltcube_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.fits outfile=/scratch/kocevski/480541/expmap_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.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/480541/ltcube_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.fits
.....................!
real 156.25
user 151.87
sys 3.92

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/480541/ft1_filtered_4FGL_J2123.6+0535_daily_bin1377.fits scfile=/scratch/kocevski/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits outfile=/scratch/kocevski/480541/cmap_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480541/ft1_filtered_4FGL_J2123.6+0535_daily_bin1377.fits scfile=/scratch/kocevski/480541/ft2_4FGL_J2123.6+0535_daily_bin1377.fits outfile=/scratch/kocevski/480541/cmap_HighResolution_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.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.49
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4839       1.0000         .10000E-03   10000.    
     2 'norm      '    10.346       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1598       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.517       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6190       1.0000         .10000E-03   10000.    
    20 'norm      '    38.464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78617       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=   6420.277     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3065 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4595        79.061       -.56073E-04   -.12889E-04
   2  norm          10.349        10.219        .38022E-05    .11993E-03
   3  Prefactor     .10000E-03    2.1885        .84926E-07** at limit **
   4  Prefactor     .10000E-03    10.411        .69794E-07** at limit **
   5  Prefactor     11.229        17.378       -.41769E-06   -.35521E-04
   6  Prefactor     .10000E-03    7.7569        .96045E-07** at limit **
   7  Prefactor     .10000E-03    13.615        .26576E-06** at limit **
   8  Prefactor     5.1597        81.054       -.19664E-05   -.19918E-04
   9  Prefactor     .10000E-03    30.598        .44125E-05** at limit **
  10  Prefactor     22.738        20.652       -.44965E-06   -.84274E-06
  11  Prefactor     .10000E-03    51.014       -.62013E-05** at limit **
  12  Prefactor     6.2951        6.6242        .21326E-05   -.31773E-03
  13  Prefactor     1.9708        6.7909        .21671E-05   -.71323E-03
  14  Prefactor     .10000E-03    .88380       -.10920E-07** at limit **
  15  Prefactor     2.4472        34.293        .13601E-05   -.62550E-04
  16  Prefactor     .10000E-03    90.228       -.14388E-05** at limit **
  17  Prefactor     .10000E-03    31.264       -.48132E-05** at limit **
  18  Prefactor     23.498        41.255       -.20145E-04   -.11656E-04
  19  norm          1.6168        2.4124       -.62255E-06   -.92608E-03
  20  norm          38.464        23.097        .20071E-05    .27254E-04
  21  Prefactor     .10000E-03    3.0372        .53836E-06** at limit **
  22  Prefactor     .10000E-03    4.9822        .63926E-07** at limit **
  23  Prefactor     11.057        15.202       -.29456E-07   -.21772E-04
  24  Prefactor     .10000E-03    54.020        .84116E-05** at limit **
  25  Normalizat    1.0716        .24014        .12597E-05    .24447E-05
  26  Prefactor     .78587        .10216        .78807E-06    .96775E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.45949
  norm       = 10.3488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15972
  Prefactor  = 0.0001
  Prefactor  = 22.7384
  Prefactor  = 0.0001
  Prefactor  = 6.2951
  Prefactor  = 1.97077
  Prefactor  = 0.0001
  Prefactor  = 2.44722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4982
  norm       = 1.61676
  norm       = 38.4636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0568
  Prefactor  = 0.0001
  Normalizat = 1.07155
  Prefactor  = 0.785871
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.277     FROM HESSE     STATUS=OK           458 CALLS     3523 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4595        79.231        .13013E-03   -1.5093    
   2  norm          10.349        10.167        .12457E-03   -1.5064    
   3  Prefactor     .10000E-03    2.2153        .11573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.229        17.351        .11954E-03   -1.5038    
   6  Prefactor     .10000E-03    7.7683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1597        80.053        .17698E-03   -1.5254    
   9  Prefactor     .10000E-03    30.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.738        20.662        .84000E-04   -1.4754    
  11  Prefactor     .10000E-03    51.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2951        6.5639        .16000E-03   -1.5206    
  13  Prefactor     1.9708        6.6681        .29524E-03   -1.5427    
  14  Prefactor     .10000E-03    .89316        .73503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4472        34.378        .26012E-03   -1.5395    
  16  Prefactor     .10000E-03    90.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.498        41.443        .82599E-04   -1.4738    
  19  norm          1.6168        2.3909        .13899E-03   -1.5454    
  20  norm          38.464        23.019        .64626E-04   -1.4467    
  21  Prefactor     .10000E-03    3.0498        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9937        .17466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.057        15.219        .12045E-03   -1.5043    
  24  Prefactor     .10000E-03    54.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0716        .28928        .32151E-03   -.90670    
  26  Prefactor     .78587        .12345        .16858E-03   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59099e-09
Minuit parameter uncertainties:
  1  54.8519
  2  10.169
  3  5.11766e-06
  4  4.22044e-06
  5  17.3585
  6  9.70814e-06
  7  1.9889e-05
  8  40.712
  9  2.77254e-05
  10  20.6686
  11  6.70977e-05
  12  6.56462
  13  6.67061
  14  1.7053e-06
  15  18.357
  16  0.000126244
  17  6.56261e-06
  18  41.4934
  19  2.391
  20  23.0246
  21  5.25791e-05
  22  8.50225e-07
  23  15.2238
  24  4.37619e-05
  25  0.289705
  26  0.123498
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.274e+01  2.067e+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:  7.859e-01  1.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.072e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/480541/likelihoodResults_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.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) = 6419.22584605
delta logL = 1.05109644836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.17979118
delta logL = 1.09715131889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.770       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6639       1.0000          .0000       10.000    
     3 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77199       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=   6419.180     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.755        32.653        .60597E-04    .90165E-04
   2  Index         1.6644        .41003        .74143E-02    .67252E-04
   3  Normalizat    1.1046        .26420        .31715E-03    .82748E-03
   4  Prefactor     .77171        .12131        .16980E-03    .13194E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.755
  Index      = 1.66439
  Normalizat = 1.10456
  Prefactor  = 0.771711
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.180     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.755        32.824        .12119E-04   -1.4384    
   2  Index         1.6644        .41221        .29657E-03   -.73034    
   3  Normalizat    1.1046        .26440        .63431E-04   -.89605    
   4  Prefactor     .77171        .12140        .33959E-04   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15784e-09
Minuit parameter uncertainties:
  1  32.8375
  2  0.41306
  3  0.264714
  4  0.121442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480541': 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) = 6419.17978712
delta logL = 1.09715538437

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.375e+01  3.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.664e+00  4.131e-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:  7.717e-01  1.214e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.105e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.66 +/- 0.41
Photon Flux (Free Index): 3.15e-08 +/- 2.82e-08
Energy Flux (Free Index): 5.77e-05 +/- 6.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/480541/cmap_HighResolution_596246401_596505601_4FGL_J2123.6+0535_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='5.77e-05', photon_flux_error='3.89e-08', dlogl='1.10e+00', energy_flux='1.42e-05', photon_flux2='3.15e-08', job_status='DONE', time_completed='2021-09-26 13:17:15.904290', photon_index_error2='0.41', photon_index2='1.66', ts='1.87', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='6.40e-05', EG='1.07', time_epoch_completed='1632687435.9', return_code='0', job_id='480541', GAL2='0.77', EG2='1.10', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.82e-08', ts2='4.07', photon_index='2.39' WHERE bin_id='1377' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:17:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 480541: <4FGL_J2123.6+0535_daily_bin1377> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1377> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:44 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:03:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:03:04 2021
Terminated at Sun Sep 26 13:17:16 2021
Results reported at Sun Sep 26 13:17:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1377 320.921 5.592 596246401 596505601 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 :                                   634.34 sec.
    Max Memory :                                 1156 MB
    Average Memory :                             239.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            992 sec.

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

