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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1456
RA = 320.921, Dec = 5.592
tmin = 616723201, tmax = 616982401
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='480667', job_status='RUN', time_executed='2021-09-26 13:07:00.792607', time_epoch_executed='1632686820.79' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480667

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480667/ft1_4FGL_J2123.6+0535_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480667/ft2_4FGL_J2123.6+0535_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480667/ft1_4FGL_J2123.6+0535_daily_bin1456.fits outfile=/scratch/kocevski/480667/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1456.fits ra=320.921 dec=5.592 rad=12.0 tmin=616723201.0 tmax=616982401.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 2.53
user 2.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480667/ft1_filtered_4FGL_J2123.6+0535_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/480667/ft2_4FGL_J2123.6+0535_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/480667/ltcube_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.fits outfile=/scratch/kocevski/480667/expmap_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.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/480667/ltcube_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.fits
.....................!
real 156.08
user 151.39
sys 4.15

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/480667/ft1_filtered_4FGL_J2123.6+0535_daily_bin1456.fits scfile=/scratch/kocevski/480667/ft2_4FGL_J2123.6+0535_daily_bin1456.fits outfile=/scratch/kocevski/480667/cmap_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.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.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480667/ft1_filtered_4FGL_J2123.6+0535_daily_bin1456.fits scfile=/scratch/kocevski/480667/ft2_4FGL_J2123.6+0535_daily_bin1456.fits outfile=/scratch/kocevski/480667/cmap_HighResolution_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.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.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.108       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.313       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7725       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.423       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10027E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2265.009     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3107 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    67.267       -.73757E-06** at limit **
   2  norm          .10000E-03    9.7113        .56586E-06** at limit **
   3  Prefactor     36.937        1.2174       -.62429E-07    .44234E-03
   4  Prefactor     .13373E-03    131.11       -.12886E-04** at limit **
   5  Prefactor     43.202        1.0694       -.13302E-07    .22551E-03
   6  Prefactor     26.350        3.1328       -.32450E-06    .12692E-02
   7  Prefactor     .10139E-03    41.192       -.24438E-05** at limit **
   8  Prefactor     .10000E-03    20.097       -.69963E-05** at limit **
   9  Prefactor     .10355E-03    44.485        .21820E-05** at limit **
  10  Prefactor     37.102        1.2946       -.76412E-07    .23652E-03
  11  Prefactor     .10014E-03    115.62       -.11800E-04** at limit **
  12  Prefactor     28.760        1.0954       -.15368E-07    .92455E-03
  13  Prefactor     .10000E-03    5.1322        .33715E-05** at limit **
  14  Prefactor     6.1410        10.891       -.41506E-06   -.32838E-02
  15  Prefactor     .10251E-03    50.010        .45251E-06** at limit **
  16  Prefactor     .10210E-03    49.875        .54680E-06** at limit **
  17  Prefactor     .10684E-03    105.70       -.11010E-04** at limit **
  18  Prefactor     75.304        1.8315       -.99876E-07    .12110E-02
  19  norm          3.7697        5.2946       -.10701E-05   -.10795E-03
  20  norm          .10000E-03    13.893        .40363E-05** at limit **
  21  Prefactor     .10000E-03    17.306        .12449E-06** at limit **
  22  Prefactor     8.0188        2.1744       -.31700E-06   -.63540E-03
  23  Prefactor     .10289E-03    32.895       -.34314E-05** at limit **
  24  Prefactor     25.395        4.5576       -.49603E-06    .20016E-02
  25  Normalizat    .10000E-01    6.2542        .14827E-04** at limit **
  26  Prefactor     .93466        .99382E-01   -.62583E-06   -.34990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100571
  norm       = 0.0001
  Prefactor  = 36.9369
  Prefactor  = 0.00013373
  Prefactor  = 43.2018
  Prefactor  = 26.3499
  Prefactor  = 0.000101391
  Prefactor  = 0.0001
  Prefactor  = 0.000103549
  Prefactor  = 37.1024
  Prefactor  = 0.000100142
  Prefactor  = 28.7604
  Prefactor  = 0.0001
  Prefactor  = 6.14097
  Prefactor  = 0.000102508
  Prefactor  = 0.000102099
  Prefactor  = 0.00010684
  Prefactor  = 75.3041
  norm       = 3.76974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.0188
  Prefactor  = 0.000102888
  Prefactor  = 25.3953
  Normalizat = 0.01
  Prefactor  = 0.934665
 **********
 **   18 **HESSE 
 **********

 FCN=   2265.009     FROM HESSE     STATUS=OK           504 CALLS     3611 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    85.256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.937        74.763        .16485E-02   -1.4492    
   4  Prefactor     .13373E-03    424.00        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.202        26.167        .15247E-02   -1.4392    
   6  Prefactor     26.350        63.656        .19503E-02   -1.4681    
   7  Prefactor     .10139E-03    51.598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10355E-03    123.18        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.102        65.286        .16448E-02   -1.4489    
  11  Prefactor     .10014E-03    351.66        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.760        14.260        .18676E-02   -1.4635    
  13  Prefactor     .10000E-03    5.1154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1410        11.916        .40480E-02   -1.5212    
  15  Prefactor     .10251E-03    153.19        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10210E-03    152.09        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10684E-03    321.84        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     75.304        85.678        .11567E-02   -1.3970    
  19  norm          3.7697        5.6165        .51962E-02   -1.5320    
  20  norm          .10000E-03    13.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0188        71.052        .35348E-02   -1.5142    
  23  Prefactor     .10289E-03    56.254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.395        101.72        .19862E-02   -1.4700    
  25  Normalizat    .10000E-01    .55525        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .93466        .14771        .33671E-01   -.94940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25192e-07
Minuit parameter uncertainties:
  1  0.0139786
  2  4.44486e-06
  3  74.9531
  4  0.240902
  5  26.1739
  6  63.8212
  7  0.0169603
  8  1.68661e-05
  9  0.0419061
  10  65.4117
  11  0.01424
  12  14.2619
  13  2.57138e-05
  14  11.921
  15  0.0392995
  16  0.035828
  17  0.0943488
  18  85.8189
  19  5.6173
  20  5.15989e-05
  21  2.01889e-05
  22  47.8147
  23  0.0255176
  24  101.956
  25  9.73424e-07
  26  0.147774
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.710e+01  6.541e+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.347e-01  1.478e-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.000e-02  9.734e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/480667/likelihoodResults_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.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) = 2265.00846331
delta logL = 4.88487712573e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2265.0084311
delta logL = 8.10570695648e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.813       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4079       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93449       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=   2265.008     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      269 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.771        69.826        .66054E-04    .34078E-04
   2  Index         2.4062        1.2808        .91916E-02   -.31874E-05
   3  Normalizat    .10000E-01    6.2281        .12926E-01** at limit **
   4  Prefactor     .93457        .96221E-01    .14880E-03    .31134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.7712
  Index      = 2.40622
  Normalizat = 0.01
  Prefactor  = 0.934573
 **********
 **   18 **HESSE 
 **********

 FCN=   2265.008     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.771        68.405        .13211E-04   -1.4494    
   2  Index         2.4062        1.2552        .36766E-03   -.54539    
   3  Normalizat    .10000E-01    6.2337        .25853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93457        .95498E-01    .59520E-05   -.94943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38648e-11
Minuit parameter uncertainties:
  1  68.5513
  2  1.27397
  3  3.05779e-05
  4  0.0955156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480667': 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) = 2265.00842832
delta logL = 8.38356036184e-05

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.677e+01  6.855e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.406e+00  1.274e+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:  9.346e-01  9.552e-02  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.000e-02  3.058e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/480667/cmap_HighResolution_616723201_616982401_4FGL_J2123.6+0535_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-02', job_status='DONE', photon_flux_upper_limit='3.88e-07', time_completed='2021-09-26 13:13:27.382866', job_id='480667', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632687207.38', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.38e-05', ts2='0.46', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1456' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:13:27 PDT 2021


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

Job <4FGL_J2123.6+0535_daily_bin1456> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:55 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:04: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:04:04 2021
Terminated at Sun Sep 26 13:13:28 2021
Results reported at Sun Sep 26 13:13:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1456 320.921 5.592 616723201 616982401 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 :                                   382.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             233.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            753 sec.

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

