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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin468
RA = 320.921, Dec = 5.592
tmin = 360633601, tmax = 360892801
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='474962', job_status='RUN', time_executed='2021-09-26 12:44:06.386934', time_epoch_executed='1632685446.39' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474962/ft1_4FGL_J2123.6+0535_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474962/ft2_4FGL_J2123.6+0535_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474962/ft1_4FGL_J2123.6+0535_daily_bin468.fits outfile=/scratch/kocevski/474962/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin468.fits ra=320.921 dec=5.592 rad=12.0 tmin=360633601.0 tmax=360892801.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.83
user 2.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474962/ft2_4FGL_J2123.6+0535_daily_bin468.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/474962/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/474962/ft1_filtered_4FGL_J2123.6+0535_daily_bin468.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.46
user 0.31
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474962/ft1_filtered_4FGL_J2123.6+0535_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/474962/ft2_4FGL_J2123.6+0535_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/474962/ltcube_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.fits outfile=/scratch/kocevski/474962/expmap_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.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/474962/ltcube_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.fits
.....................!
real 157.11
user 152.02
sys 4.65

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/474962/ft1_filtered_4FGL_J2123.6+0535_daily_bin468.fits scfile=/scratch/kocevski/474962/ft2_4FGL_J2123.6+0535_daily_bin468.fits outfile=/scratch/kocevski/474962/cmap_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474962/ft1_filtered_4FGL_J2123.6+0535_daily_bin468.fits scfile=/scratch/kocevski/474962/ft2_4FGL_J2123.6+0535_daily_bin468.fits outfile=/scratch/kocevski/474962/cmap_HighResolution_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.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.50
user 0.32
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.513       1.0000         .10000E-03   10000.    
     2 'norm      '    .56186E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4449       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.883       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24541E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2424       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4854       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.432       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68572       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.946       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.097       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .52144       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0318       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=   9489.299     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2731 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.513        16.431        .11136E-06   -.54060E-04
   2  norm          .10062E-03    5.9818        .18086E-05** at limit **
   3  Prefactor     5.0029        4.4134        .13778E-05    .54171E-03
   4  Prefactor     .10000E-03    83.235       -.80426E-05** at limit **
   5  Prefactor     8.6610        13.114        .83982E-06    .25659E-04
   6  Prefactor     11.248        15.052        .22529E-06   -.19399E-04
   7  Prefactor     .10000E-03    6.5473       -.55043E-07** at limit **
   8  Prefactor     2.4361        72.593        .72941E-06   -.39306E-05
   9  Prefactor     26.891        37.681       -.88358E-06   -.16670E-04
  10  Prefactor     .10000E-03    6.7461       -.22049E-07** at limit **
  11  Prefactor     .10000E-03    112.69        .91473E-05** at limit **
  12  Prefactor     4.2394        4.2989        .74578E-07   -.51700E-04
  13  Prefactor     .20571        4.3871        .52275E-06   -.20193E-03
  14  Prefactor     1.4874        1.6399       -.25415E-06   -.78851E-03
  15  Prefactor     .10000E-03    8.9028       -.77003E-07** at limit **
  16  Prefactor     .10000E-03    23.390       -.10863E-05** at limit **
  17  Prefactor     .10000E-03    24.379       -.58883E-07** at limit **
  18  Prefactor     .10000E-03    31.906        .15910E-05** at limit **
  19  norm          .10000E-03    .54085       -.42999E-07** at limit **
  20  norm          11.433        15.461        .22426E-06   -.17175E-04
  21  Prefactor     .68968        4.8666        .33748E-06   -.91063E-04
  22  Prefactor     13.946        10.578        .54300E-07   -.28750E-04
  23  Prefactor     .10000E-03    15.222        .82478E-08** at limit **
  24  Prefactor     50.098        26.258        .33149E-07   -.17766E-04
  25  Normalizat    .52137        .20827       -.67300E-06   -.14314E-03
  26  Prefactor     1.0318        .91354E-01   -.34396E-07   -.30691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5126
  norm       = 0.000100618
  Prefactor  = 5.00294
  Prefactor  = 0.0001
  Prefactor  = 8.66103
  Prefactor  = 11.2475
  Prefactor  = 0.0001
  Prefactor  = 2.43609
  Prefactor  = 26.8909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23937
  Prefactor  = 0.205705
  Prefactor  = 1.48743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4331
  Prefactor  = 0.689684
  Prefactor  = 13.9463
  Prefactor  = 0.0001
  Prefactor  = 50.0976
  Normalizat = 0.521374
  Prefactor  = 1.0318
 **********
 **   18 **HESSE 
 **********

 FCN=   9489.299     FROM HESSE     STATUS=OK           470 CALLS     3201 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.513        16.434        .10514E-03   -1.4946    
   2  norm          .10062E-03    5.4133        .61562E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0029        4.4416        .89903E-03   -1.5261    
   4  Prefactor     .10000E-03    83.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6610        13.077        .68095E-03   -1.5119    
   6  Prefactor     11.248        15.035        .11946E-03   -1.5037    
   7  Prefactor     .10000E-03    6.5506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4361        72.336        .26164E-03   -1.5396    
   9  Prefactor     26.891        37.632        .77265E-04   -1.4670    
  10  Prefactor     .10000E-03    6.7601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    114.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2394        4.2845        .19048E-03   -1.5296    
  13  Prefactor     .20571        39.234        .37490E-02   -1.5617    
  14  Prefactor     1.4874        1.6279        .12443E-03   -1.5464    
  15  Prefactor     .10000E-03    8.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .54680        .69894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.433        15.375        .11848E-03   -1.5032    
  21  Prefactor     .68968        13.262        .39514E-02   -1.5542    
  22  Prefactor     13.946        10.556        .10726E-03   -1.4961    
  23  Prefactor     .10000E-03    15.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     50.098        26.222        .56659E-04   -1.4291    
  25  Normalizat    .52137        .22420        .43564E-03   -1.1143    
  26  Prefactor     1.0318        .10203        .15112E-03   -.91677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28097e-08
Minuit parameter uncertainties:
  1  16.4387
  2  0.00365867
  3  4.44186
  4  0.000317652
  5  13.0813
  6  15.0399
  7  4.04356e-06
  8  26.5842
  9  37.6653
  10  3.08733e-06
  11  0.000307674
  12  4.28483
  13  5.68418
  14  1.62794
  15  1.70492e-06
  16  3.48722e-05
  17  5.48818e-06
  18  1.88857e-05
  19  1.08738e-06
  20  15.3803
  21  6.04973
  22  10.5571
  23  1.22464e-05
  24  26.2277
  25  0.224587
  26  0.102053
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.087e-06  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.032e+00  1.021e-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:  5.214e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474962/likelihoodResults_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.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): 102
logL (Free Index) = 9489.2996671
delta logL = -0.000704953839886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9489.29896223
delta logL = -8.93451215234e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3684       1.0000          .0000       10.000    
     3 'Normalizat'    .52130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0318       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=   9489.299     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10266E-03    6.0792        .18142E-01** at limit **
   2  Index         2.2793        5.9299        .50000        .21165E-04
   3  Normalizat    .52137        .40944E-02    .43564E-03    .15867E-04
   4  Prefactor     1.0318        .19684E-02    .15112E-03    .65752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102663
  Index      = 2.27929
  Normalizat = 0.521375
  Prefactor  = 1.0318
 **********
 **   18 **HESSE 
 **********

 FCN=   9489.299     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10266E-03    66.661        .25750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2793        7.9140        .50000       -.57537    
   3  Normalizat    .52137        .13635E-01    .17425E-04   -1.1143    
   4  Prefactor     1.0318        .65548E-02    .60446E-05   -.91677    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.69432e-09
Minuit parameter uncertainties:
  1  0.0266781
  2  356.229
  3  0.0136347
  4  0.00655481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474962': 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): 102
logL (Free Index) = 9489.2989617
delta logL = 4.41885276814e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.027e-04  2.668e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.279e+00  3.562e+02  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.032e+00  6.555e-03  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:  5.214e-01  1.363e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

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/474962/cmap_HighResolution_360633601_360892801_4FGL_J2123.6+0535_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-26 12:56:54.713239', job_id='474962', GAL2='1.03', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632686214.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='468' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:56:54 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin468 320.921 5.592 360633601 360892801 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 :                                   764.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            981 sec.

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

