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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin200
RA = 320.921, Dec = 5.592
tmin = 291168001, tmax = 291427201
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='473529', job_status='RUN', time_executed='2021-09-26 12:37:50.787916', time_epoch_executed='1632685070.79' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473529/ft1_4FGL_J2123.6+0535_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473529/ft1_4FGL_J2123.6+0535_daily_bin200.fits outfile=/scratch/kocevski/473529/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin200.fits ra=320.921 dec=5.592 rad=12.0 tmin=291168001.0 tmax=291427201.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.49
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473529/ft1_filtered_4FGL_J2123.6+0535_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/473529/ltcube_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.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/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits
.....................!
real 15.65
user 15.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473529/ft1_filtered_4FGL_J2123.6+0535_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/473529/ltcube_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.fits outfile=/scratch/kocevski/473529/expmap_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.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/473529/ltcube_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.fits
.....................!
real 191.81
user 185.97
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/473529/ft1_filtered_4FGL_J2123.6+0535_daily_bin200.fits scfile=/scratch/kocevski/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits outfile=/scratch/kocevski/473529/cmap_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473529/ft1_filtered_4FGL_J2123.6+0535_daily_bin200.fits scfile=/scratch/kocevski/473529/ft2_4FGL_J2123.6+0535_daily_bin200.fits outfile=/scratch/kocevski/473529/cmap_HighResolution_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.071       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9206       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12970E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17345E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0824       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24510E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .38114       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0524       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=   8504.569     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2673 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.711        .22686E-05** at limit **
   2  norm          9.0649        7.4392       -.29873E-06    .60988E-04
   3  Prefactor     .10000E-03    1.3400        .97745E-07** at limit **
   4  Prefactor     .10000E-03    17.702       -.47221E-06** at limit **
   5  Prefactor     42.064        18.712        .43450E-06    .13758E-03
   6  Prefactor     13.600        18.821        .11682E-05    .17847E-03
   7  Prefactor     .10000E-03    16.590       -.10110E-05** at limit **
   8  Prefactor     4.9208        18.204        .12490E-06    .27264E-04
   9  Prefactor     .10000E-03    74.044        .82031E-05** at limit **
  10  Prefactor     14.747        17.416        .39972E-06    .37086E-04
  11  Prefactor     .10000E-03    14.475        .17115E-05** at limit **
  12  Prefactor     .10000E-03    3.4180        .95598E-07** at limit **
  13  Prefactor     18.163        9.4603        .23590E-06    .16152E-03
  14  Prefactor     3.6668        1.8354        .45802E-07   -.32181E-03
  15  Prefactor     .10000E-03    13.119       -.15323E-06** at limit **
  16  Prefactor     .10000E-03    15.852       -.31536E-06** at limit **
  17  Prefactor     69.032        62.372        .12576E-05    .83055E-05
  18  Prefactor     .10000E-03    39.136       -.21982E-05** at limit **
  19  norm          .10000E-03    1.1900        .30421E-06** at limit **
  20  norm          15.150        21.245        .29867E-06    .53777E-04
  21  Prefactor     2.9740        4.4915        .16520E-06    .98299E-04
  22  Prefactor     4.0795        8.7042       -.42595E-05   -.48295E-04
  23  Prefactor     .10001E-03    128.86       -.39143E-04** at limit **
  24  Prefactor     .10000E-03    15.924       -.58541E-06** at limit **
  25  Normalizat    .38147        .23997       -.56000E-05   -.35461E-03
  26  Prefactor     1.0523        .10574        .89058E-06   -.85242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.06491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.0639
  Prefactor  = 13.5996
  Prefactor  = 0.0001
  Prefactor  = 4.92078
  Prefactor  = 0.000100002
  Prefactor  = 14.7475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1634
  Prefactor  = 3.66678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.032
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 15.1501
  Prefactor  = 2.974
  Prefactor  = 4.07947
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Normalizat = 0.381469
  Prefactor  = 1.05233
 **********
 **   18 **HESSE 
 **********

 FCN=   8504.569     FROM HESSE     STATUS=OK           460 CALLS     3133 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0649        7.4334        .13311E-03   -1.5106    
   3  Prefactor     .10000E-03    1.3529        .10425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.064        18.651        .61804E-04   -1.4410    
   6  Prefactor     13.600        18.813        .10861E-03   -1.4970    
   7  Prefactor     .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9208        18.196        .18132E-03   -1.5264    
   9  Prefactor     .10000E-03    74.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.747        17.359        .10429E-03   -1.4940    
  11  Prefactor     .10000E-03    14.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4779        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.163        9.4289        .93980E-04   -1.4855    
  14  Prefactor     3.6668        1.8232        .83884E-04   -1.5325    
  15  Prefactor     .10000E-03    13.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.032        60.957        .24158E-03   -1.4044    
  18  Prefactor     .10000E-03    39.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1969        .18025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.150        20.464        .10300E-03   -1.4929    
  21  Prefactor     2.9740        4.4608        .23050E-03   -1.5363    
  22  Prefactor     4.0795        8.7094        .99769E-03   -1.5304    
  23  Prefactor     .10001E-03    123.52        .67364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .38147        .23293        .50547E-03   -1.1827    
  26  Prefactor     1.0523        .10765        .15056E-03   -.91005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91747e-09
Minuit parameter uncertainties:
  1  2.96197e-05
  2  7.43414
  3  7.00081e-06
  4  6.13661e-05
  5  18.6539
  6  18.821
  7  6.18629e-06
  8  18.216
  9  0.00070259
  10  17.3649
  11  1.74855e-05
  12  1.23136e-05
  13  9.42962
  14  1.8232
  15  7.25889e-05
  16  6.02476e-05
  17  61.0122
  18  0.000473343
  19  0.000176656
  20  20.4731
  21  4.46129
  22  8.71207
  23  0.00235628
  24  0.000103358
  25  0.233527
  26  0.107674
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.475e+01  1.736e+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:  1.052e+00  1.077e-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:  3.815e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 9.23e-06 +/- 1.09e-05

TS (Fixed Index): 1.07
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473529/likelihoodResults_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.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) = 8504.53599052
delta logL = 0.0327687988047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8504.52846337
delta logL = 0.0402959423245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.042       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1248       1.0000          .0000       10.000    
     3 'Normalizat'    .39029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0499       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=   8504.528     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.009        697.82        .24255E-02    .21313E-03
   2  Index         2.1221        5.7364        .25117        .19078E-04
   3  Normalizat    .39059        .84309E-01    .11278        .74396E-04
   4  Prefactor     1.0498        .30592E-01    .39916E-01   -.82855E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0087
  Index      = 2.12211
  Normalizat = 0.39059
  Prefactor  = 1.0498
 **********
 **   18 **HESSE 
 **********

 FCN=   8504.528     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.009        20.783        .48510E-03   -1.4883    
   2  Index         2.1221        .91240        .12074E-01   -.61331    
   3  Normalizat    .39059        .22039        .49970E-03   -1.1779    
   4  Prefactor     1.0498        .10610        .15071E-03   -.91087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72492e-10
Minuit parameter uncertainties:
  1  20.7921
  2  0.920144
  3  0.220884
  4  0.106119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473529': 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) = 8504.52845653
delta logL = 0.0403027812044

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.701e+01  2.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.122e+00  9.201e-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:  1.050e+00  1.061e-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:  3.906e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.12 +/- 0.92
Photon Flux (Free Index): 2.13e-08 +/- 3.46e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.62e-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/473529/cmap_HighResolution_291168001_291427201_4FGL_J2123.6+0535_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.11e-05', photon_flux_error='3.27e-08', dlogl='4.03e-02', energy_flux='9.23e-06', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-09-26 12:52:06.076786', photon_index_error2='0.92', photon_index2='2.12', ts='1.07', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.62e-05', EG='0.38', time_epoch_completed='1632685926.08', return_code='0', job_id='473529', GAL2='1.05', EG2='0.39', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.46e-08', ts2='1.15', photon_index='2.39' WHERE bin_id='200' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 473529: <4FGL_J2123.6+0535_daily_bin200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin200 320.921 5.592 291168001 291427201 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 :                                   850.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            993 sec.

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

