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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1215
RA = 320.921, Dec = 5.592
tmin = 554256001, tmax = 554515201
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='480279', job_status='RUN', time_executed='2021-09-26 13:04:02.490046', time_epoch_executed='1632686642.49' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480279

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480279/ft1_4FGL_J2123.6+0535_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480279/ft1_4FGL_J2123.6+0535_daily_bin1215.fits outfile=/scratch/kocevski/480279/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1215.fits ra=320.921 dec=5.592 rad=12.0 tmin=554256001.0 tmax=554515201.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.76
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480279/ft1_filtered_4FGL_J2123.6+0535_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/480279/ltcube_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.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/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits
.....................!
real 13.05
user 12.61
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480279/ft1_filtered_4FGL_J2123.6+0535_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/480279/ltcube_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.fits outfile=/scratch/kocevski/480279/expmap_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.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/480279/ltcube_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.fits
.....................!
real 190.30
user 184.51
sys 5.43

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/480279/ft1_filtered_4FGL_J2123.6+0535_daily_bin1215.fits scfile=/scratch/kocevski/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits outfile=/scratch/kocevski/480279/cmap_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480279/ft1_filtered_4FGL_J2123.6+0535_daily_bin1215.fits scfile=/scratch/kocevski/480279/ft2_4FGL_J2123.6+0535_daily_bin1215.fits outfile=/scratch/kocevski/480279/cmap_HighResolution_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    149.46       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.948       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5001       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .50293       1.0000         .10000E-03   10000.    
    20 'norm      '    .35185E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.720       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63129       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92137       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=   3371.645     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3798 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.665        .58151E-07** at limit **
   2  norm          11.758        22.440        .38082E-06    .21759E-05
   3  Prefactor     7.5067        7.6491        .16699E-06    .68096E-05
   4  Prefactor     .10000E-03    67.893       -.68813E-06** at limit **
   5  Prefactor     39.668        49.871        .30618E-06   -.58028E-05
   6  Prefactor     .10000E-03    43.719        .37252E-06** at limit **
   7  Prefactor     .10000E-03    30.719        .12618E-06** at limit **
   8  Prefactor     .10000E-03    58.421       -.21614E-06** at limit **
   9  Prefactor     149.39        113.95       -.32091E-07   -.20740E-04
  10  Prefactor     59.371        51.656        .46629E-07   -.12442E-05
  11  Prefactor     18.986        62.496       -.43695E-06    .96984E-05
  12  Prefactor     11.763        17.424        .34593E-05   -.17866E-04
  13  Prefactor     .10000E-03    130.36        .53517E-06** at limit **
  14  Prefactor     3.4996        4.4531        .14401E-06    .66964E-05
  15  Prefactor     23.208        54.305       -.26376E-06    .97412E-07
  16  Prefactor     .10000E-03    28.977        .14716E-06** at limit **
  17  Prefactor     .10000E-03    249.38       -.71473E-06** at limit **
  18  Prefactor     .10000E-03    246.21       -.36771E-06** at limit **
  19  norm          .49899        5.7009        .24253E-06   -.10635E-03
  20  norm          .10000E-03    301.80       -.16227E-06** at limit **
  21  Prefactor     .10000E-03    22.875        .83097E-07** at limit **
  22  Prefactor     .10000E-03    20.015        .18846E-06** at limit **
  23  Prefactor     62.716        58.722       -.41844E-06   -.44508E-05
  24  Prefactor     .10000E-03    60.782        .17582E-08** at limit **
  25  Normalizat    .63094        .39826       -.16033E-05   -.75674E-05
  26  Prefactor     .92152        .15471        .22977E-06   -.22087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.7577
  Prefactor  = 7.50674
  Prefactor  = 0.0001
  Prefactor  = 39.6684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 149.393
  Prefactor  = 59.371
  Prefactor  = 18.9863
  Prefactor  = 11.763
  Prefactor  = 0.000100003
  Prefactor  = 3.49957
  Prefactor  = 23.208
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.498987
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.716
  Prefactor  = 0.0001
  Normalizat = 0.630944
  Prefactor  = 0.921522
 **********
 **   18 **HESSE 
 **********

 FCN=   3371.645     FROM HESSE     STATUS=OK           454 CALLS     4252 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.758        22.447        .11682E-03   -1.5022    
   3  Prefactor     7.5067        7.6173        .14635E-03   -1.5160    
   4  Prefactor     .10000E-03    68.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.668        49.826        .63632E-04   -1.4447    
   6  Prefactor     .10000E-03    43.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    58.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     149.39        113.74        .16483E-03   -1.3257    
  10  Prefactor     59.371        51.588        .52071E-04   -1.4165    
  11  Prefactor     18.986        62.275        .92012E-04   -1.4836    
  12  Prefactor     11.763        17.453        .11680E-03   -1.5022    
  13  Prefactor     .10000E-03    131.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4996        4.4129        .10515E-03   -1.5334    
  15  Prefactor     23.208        54.163        .83154E-04   -1.4744    
  16  Prefactor     .10000E-03    29.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    249.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    247.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .49899        11.014        .26255E-02   -1.5567    
  20  norm          .10000E-03    307.88        .42642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.716        58.659        .50668E-04   -1.4122    
  24  Prefactor     .10000E-03    60.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .63094        .43307        .45166E-03   -1.0669    
  26  Prefactor     .92152        .17541        .16525E-03   -.95393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59992e-08
Minuit parameter uncertainties:
  1  8.1089e-06
  2  22.4633
  3  7.61825
  4  6.26367e-05
  5  49.8782
  6  9.28997e-05
  7  7.80396e-07
  8  0.000130414
  9  113.907
  10  51.6268
  11  62.4889
  12  17.4608
  13  0.00124258
  14  4.41332
  15  54.2778
  16  3.77572e-05
  17  0.000835126
  18  0.000599353
  19  4.68923
  20  0.000101153
  21  2.75974e-05
  22  1.04786e-05
  23  58.7129
  24  6.73132e-05
  25  0.435431
  26  0.175515
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.309e-01  4.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 9.72e-08
Energy Flux (Fixed Index): 3.72e-05 +/- 3.23e-05

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

Saving results to:
/scratch/kocevski/480279/likelihoodResults_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.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) = 3371.60568621
delta logL = 0.0389328998313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3371.60229828
delta logL = 0.0423208219422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.978       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6456       1.0000          .0000       10.000    
     3 'Normalizat'    .60485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93093       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=   3371.602     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      282 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.984        79.543        .59781E-04    .10281E-03
   2  Index         2.6457        1.1208        .53108E-02    .65335E-04
   3  Normalizat    .60531        .40394        .46044E-03    .12129E-03
   4  Prefactor     .93074        .17645        .16453E-03    .51259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.9843
  Index      = 2.64571
  Normalizat = 0.605305
  Prefactor  = 0.930745
 **********
 **   18 **HESSE 
 **********

 FCN=   3371.602     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.984        68.990        .11956E-04   -1.4366    
   2  Index         2.6457        .97314        .21243E-03   -.49026    
   3  Normalizat    .60531        .40138        .18418E-04   -1.0776    
   4  Prefactor     .93074        .17514        .32906E-04   -.95075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9958e-10
Minuit parameter uncertainties:
  1  69.1128
  2  0.981213
  3  0.403331
  4  0.175243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480279': 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) = 3371.60229747
delta logL = 0.0423216398494

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.498e+01  6.911e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.646e+00  9.812e-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.307e-01  1.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.053e-01  4.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.65 +/- 0.98
Photon Flux (Free Index): 1.30e-07 +/- 1.22e-07
Energy Flux (Free Index): 3.27e-05 +/- 3.12e-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/480279/cmap_HighResolution_554256001_554515201_4FGL_J2123.6+0535_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-02', comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.27e-05', photon_flux_error='9.72e-08', dlogl='4.23e-02', energy_flux='3.72e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-26 13:13:30.857429', photon_index_error2='0.98', photon_index2='2.65', ts='1.89', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='3.17e-07', energy_flux_error2='3.12e-05', EG='0.63', time_epoch_completed='1632687210.86', return_code='0', job_id='480279', GAL2='0.93', EG2='0.61', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='1.22e-07', ts2='1.98', photon_index='2.39' WHERE bin_id='1215' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 480279: <4FGL_J2123.6+0535_daily_bin1215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1215 320.921 5.592 554256001 554515201 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 :                                   566.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            793 sec.

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

