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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin243
RA = 320.921, Dec = 5.592
tmin = 302313601, tmax = 302572801
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='473597', job_status='RUN', time_executed='2021-09-26 12:38:47.337165', time_epoch_executed='1632685127.34' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473597/ft1_4FGL_J2123.6+0535_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473597/ft1_4FGL_J2123.6+0535_daily_bin243.fits outfile=/scratch/kocevski/473597/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin243.fits ra=320.921 dec=5.592 rad=12.0 tmin=302313601.0 tmax=302572801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473597/ft1_filtered_4FGL_J2123.6+0535_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/473597/ltcube_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.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/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits
.....................!
real 13.54
user 13.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473597/ft1_filtered_4FGL_J2123.6+0535_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/473597/ltcube_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.fits outfile=/scratch/kocevski/473597/expmap_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.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/473597/ltcube_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.fits
.....................!
real 189.95
user 185.28
sys 4.30

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/473597/ft1_filtered_4FGL_J2123.6+0535_daily_bin243.fits scfile=/scratch/kocevski/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits outfile=/scratch/kocevski/473597/cmap_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473597/ft1_filtered_4FGL_J2123.6+0535_daily_bin243.fits scfile=/scratch/kocevski/473597/ft2_4FGL_J2123.6+0535_daily_bin243.fits outfile=/scratch/kocevski/473597/cmap_HighResolution_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20791E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.669       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31422       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.140       1.0000         .10000E-03   10000.    
    19 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45458E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38545       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82433       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0269       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=   6722.908     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3184 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.396       -.28289E-05** at limit **
   2  norm          .10000E-03    5.7103       -.13871E-06** at limit **
   3  Prefactor     11.633        7.5331       -.66607E-06   -.52679E-04
   4  Prefactor     .10000E-03    64.212       -.47277E-05** at limit **
   5  Prefactor     18.296        16.332       -.17277E-05   -.40673E-03
   6  Prefactor     .10000E-03    8.0962       -.80306E-07** at limit **
   7  Prefactor     .10000E-03    6.6717       -.41023E-07** at limit **
   8  Prefactor     .10000E-03    15.988        .60093E-05** at limit **
   9  Prefactor     .10000E-03    31.932       -.28679E-05** at limit **
  10  Prefactor     16.668        23.471       -.30464E-06   -.50085E-04
  11  Prefactor     3.0497        114.30       -.46502E-04    .52547E-04
  12  Prefactor     .31275        3.5463       -.16976E-05    .23207E-03
  13  Prefactor     .10000E-03    11.740        .79804E-08** at limit **
  14  Prefactor     .10000E-03    .97796        .35245E-06** at limit **
  15  Prefactor     .10001E-03    171.44        .18600E-04** at limit **
  16  Prefactor     .10000E-03    27.451        .71914E-05** at limit **
  17  Prefactor     .10000E-03    23.095       -.35567E-05** at limit **
  18  Prefactor     21.069        48.426       -.63486E-04   -.22974E-03
  19  norm          .10000E-03    1.6410       -.29497E-06** at limit **
  20  norm          29.956        24.997        .84464E-05   -.55831E-03
  21  Prefactor     .10331E-03    6.0787        .97601E-05** at limit **
  22  Prefactor     .36546        7.5950       -.65836E-06    .46920E-05
  23  Prefactor     8.9514        11.426        .44104E-07   -.16229E-03
  24  Prefactor     .10000E-03    14.740       -.35980E-05** at limit **
  25  Normalizat    .82530        .25691        .86524E-05   -.49079E-03
  26  Prefactor     1.0266        .10921       -.71741E-06   -.40988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6333
  Prefactor  = 0.0001
  Prefactor  = 18.2959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.6682
  Prefactor  = 3.04975
  Prefactor  = 0.312745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.0689
  norm       = 0.0001
  norm       = 29.9563
  Prefactor  = 0.000103305
  Prefactor  = 0.365455
  Prefactor  = 8.95141
  Prefactor  = 0.0001
  Normalizat = 0.825296
  Prefactor  = 1.0266
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.908     FROM HESSE     STATUS=OK           460 CALLS     3644 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.633        7.5385        .11744E-03   -1.5026    
   4  Prefactor     .10000E-03    65.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.296        16.363        .46809E-03   -1.4852    
   6  Prefactor     .10000E-03    8.1088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.668        23.487        .98100E-04   -1.4891    
  11  Prefactor     3.0497        114.37        .23065E-03   -1.5359    
  12  Prefactor     .31275        38.435        .28232E-02   -1.5596    
  13  Prefactor     .10000E-03    12.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .98507        .78958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    179.27        .42807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.069        51.156        .87114E-04   -1.4790    
  19  norm          .10000E-03    1.6984        .20428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.956        24.957        .73203E-04   -1.4613    
  21  Prefactor     .10331E-03    7.2540        .59849E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36546        89.339        .43230E-02   -1.5587    
  23  Prefactor     8.9514        11.426        .13394E-03   -1.5109    
  24  Prefactor     .10000E-03    14.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82530        .29532        .38409E-03   -.99137    
  26  Prefactor     1.0266        .12782        .16215E-03   -.91848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99918e-09
Minuit parameter uncertainties:
  1  0.000102729
  2  2.78988e-05
  3  7.53913
  4  0.000322735
  5  16.3673
  6  1.65577e-05
  7  5.96756e-06
  8  0.000277839
  9  0.000200674
  10  23.5002
  11  37.4295
  12  6.93753
  13  8.79783e-05
  14  3.24127e-05
  15  0.0023589
  16  0.000330428
  17  0.000161918
  18  51.2625
  19  3.85237e-05
  20  24.9654
  21  0.00979401
  22  11.4436
  23  11.4292
  24  0.000152735
  25  0.295896
  26  0.127858
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.253e-01  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/473597/likelihoodResults_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.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) = 6722.77918012
delta logL = 0.129053420814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6722.77436288
delta logL = 0.133870660157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0041       1.0000          .0000       10.000    
     3 'Normalizat'    .83664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0218       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=   6722.774     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.427        32.462        .79443E-04   -.45507E-04
   2  Index         2.0039        .67008        .92381E-02   -.34704E-04
   3  Normalizat    .83699        .26996        .38159E-03   -.77461E-06
   4  Prefactor     1.0217        .12678        .16246E-03    .66590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4267
  Index      = 2.00394
  Normalizat = 0.836987
  Prefactor  = 1.02167
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.774     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.427        32.142        .31777E-05   -1.4699    
   2  Index         2.0039        .66335        .36953E-03   -.64252    
   3  Normalizat    .83699        .27007        .15264E-04   -.98711    
   4  Prefactor     1.0217        .12683        .32493E-04   -.92011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90397e-11
Minuit parameter uncertainties:
  1  32.1638
  2  0.66642
  3  0.270506
  4  0.126871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473597': 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) = 6722.77436195
delta logL = 0.133871591513

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.543e+01  3.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.004e+00  6.664e-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.022e+00  1.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.370e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/473597/cmap_HighResolution_302313601_302572801_4FGL_J2123.6+0535_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-26 12:52:07.518213', job_id='473597', GAL2='1.02', fit_tolerance='1e-08', EG2='0.84', EG='0.83', time_epoch_completed='1632685927.52', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.34e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='243' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:52:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 473597: <4FGL_J2123.6+0535_daily_bin243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin243 320.921 5.592 302313601 302572801 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 :                                   794.29 sec.
    Max Memory :                                 1163 MB
    Average Memory :                             326.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            989 sec.

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

