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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin316
RA = 320.921, Dec = 5.592
tmin = 321235201, tmax = 321494401
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='473711', job_status='RUN', time_executed='2021-09-26 12:40:11.256458', time_epoch_executed='1632685211.26' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473711/ft1_4FGL_J2123.6+0535_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473711/ft2_4FGL_J2123.6+0535_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473711/ft1_4FGL_J2123.6+0535_daily_bin316.fits outfile=/scratch/kocevski/473711/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin316.fits ra=320.921 dec=5.592 rad=12.0 tmin=321235201.0 tmax=321494401.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.60
user 3.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473711/ft1_filtered_4FGL_J2123.6+0535_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/473711/ft2_4FGL_J2123.6+0535_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/473711/ltcube_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.fits outfile=/scratch/kocevski/473711/expmap_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.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/473711/ltcube_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.fits
.....................!
real 191.74
user 186.93
sys 4.40

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/473711/ft1_filtered_4FGL_J2123.6+0535_daily_bin316.fits scfile=/scratch/kocevski/473711/ft2_4FGL_J2123.6+0535_daily_bin316.fits outfile=/scratch/kocevski/473711/cmap_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473711/ft1_filtered_4FGL_J2123.6+0535_daily_bin316.fits scfile=/scratch/kocevski/473711/ft2_4FGL_J2123.6+0535_daily_bin316.fits outfile=/scratch/kocevski/473711/cmap_HighResolution_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.380       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5695       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .95639       1.0000         .10000E-03   10000.    
    20 'norm      '    24.955       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.804       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .57134       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96838       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=   5312.066     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3156 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.115       -.27778E-05** at limit **
   2  norm          15.381        10.681        .19017E-07   -.68839E-04
   3  Prefactor     4.0327        6.1795       -.86638E-06   -.38629E-03
   4  Prefactor     .10000E-03    13.339       -.19311E-07** at limit **
   5  Prefactor     38.754        19.430       -.10060E-05    .44320E-05
   6  Prefactor     4.3191        256.30       -.11979E-04   -.93512E-04
   7  Prefactor     7.8918        126.12        .94235E-05    .10318E-04
   8  Prefactor     .10000E-03    10.294       -.21808E-08** at limit **
   9  Prefactor     .10000E-03    66.295        .90930E-05** at limit **
  10  Prefactor     28.741        25.836       -.27387E-05    .85218E-04
  11  Prefactor     .10000E-03    17.066        .55209E-07** at limit **
  12  Prefactor     .10000E-03    5.9938       -.13327E-06** at limit **
  13  Prefactor     .10000E-03    5.8752       -.11176E-06** at limit **
  14  Prefactor     .10000E-03    1.0563        .80479E-07** at limit **
  15  Prefactor     36.565        36.196       -.85772E-05    .15912E-03
  16  Prefactor     .10000E-03    34.095        .46374E-06** at limit **
  17  Prefactor     .10000E-03    98.059        .19462E-04** at limit **
  18  Prefactor     .10001E-03    89.005       -.26496E-04** at limit **
  19  norm          .95650        2.4620       -.12135E-05   -.11882E-02
  20  norm          24.948        22.906        .23661E-06    .11569E-03
  21  Prefactor     .10000E-03    19.466        .12939E-06** at limit **
  22  Prefactor     .10000E-03    6.1574        .65199E-07** at limit **
  23  Prefactor     .10000E-03    9.4896        .39233E-08** at limit **
  24  Prefactor     24.806        29.167       -.60536E-05    .11241E-03
  25  Normalizat    .57117        .29711        .86705E-05    .47749E-04
  26  Prefactor     .96849        .12588       -.11037E-05    .27988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.3808
  Prefactor  = 4.03267
  Prefactor  = 0.0001
  Prefactor  = 38.7537
  Prefactor  = 4.31913
  Prefactor  = 7.89181
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.7414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.5646
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100009
  norm       = 0.956504
  norm       = 24.9483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.806
  Normalizat = 0.571166
  Prefactor  = 0.968492
 **********
 **   18 **HESSE 
 **********

 FCN=   5312.066     FROM HESSE     STATUS=OK           448 CALLS     3604 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.381        10.660        .10213E-03   -1.4923    
   3  Prefactor     4.0327        6.1994        .20079E-03   -1.5306    
   4  Prefactor     .10000E-03    13.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.754        19.399        .64385E-04   -1.4462    
   6  Prefactor     4.3191        163.08        .18831E-03   -1.5292    
   7  Prefactor     7.8918        80.476        .14451E-03   -1.5146    
   8  Prefactor     .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.741        25.723        .74745E-04   -1.4635    
  11  Prefactor     .10000E-03    17.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1592        .34803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9420        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0809        .73105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.565        36.094        .66276E-04   -1.4498    
  16  Prefactor     .10000E-03    34.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    97.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    87.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .95650        2.4599        .16739E-03   -1.5512    
  20  norm          24.948        22.680        .80188E-04   -1.4709    
  21  Prefactor     .10000E-03    20.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1700        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.5061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.806        29.132        .80431E-04   -1.4711    
  25  Normalizat    .57117        .32048        .41957E-03   -1.0922    
  26  Prefactor     .96849        .13983        .15386E-03   -.93787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22672e-09
Minuit parameter uncertainties:
  1  7.01083e-05
  2  10.6612
  3  6.20034
  4  4.11268e-06
  5  19.4018
  6  53.236
  7  50.4899
  8  2.99797e-06
  9  0.00049372
  10  25.733
  11  8.2129e-07
  12  3.27429e-05
  13  2.78789e-05
  14  7.21513e-06
  15  36.1157
  16  2.93898e-05
  17  0.00106789
  18  0.00179029
  19  2.46013
  20  22.6882
  21  8.99312e-05
  22  1.54401e-05
  23  1.0133e-06
  24  29.1484
  25  0.321522
  26  0.139884
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.874e+01  2.573e+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.685e-01  1.399e-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.712e-01  3.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.61e-05

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

Saving results to:
/scratch/kocevski/473711/likelihoodResults_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.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) = 5311.7638025
delta logL = 0.302531875587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.74444368
delta logL = 0.321890691007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.517       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1437       1.0000          .0000       10.000    
     3 'Normalizat'    .52728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98277       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=   5311.744     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      316 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.520        34.537        .11804E-03    .28257E-03
   2  Index         3.1437        1.6425        .49942E-02    .19590E-03
   3  Normalizat    .52651        .30093        .43606E-03   -.89685E-05
   4  Prefactor     .98314        .14009        .15281E-03    .27984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5196
  Index      = 3.14374
  Normalizat = 0.526508
  Prefactor  = 0.983139
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.744     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.520        22.036        .47218E-05   -1.5029    
   2  Index         3.1437        1.0595        .19977E-03   -.38036    
   3  Normalizat    .52651        .29870        .17443E-04   -1.1120    
   4  Prefactor     .98314        .13904        .30561E-04   -.93294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45125e-10
Minuit parameter uncertainties:
  1  22.0516
  2  1.06893
  3  0.299613
  4  0.139094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473711': 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) = 5311.74444004
delta logL = 0.321894332636

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.152e+01  2.205e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.144e+00  1.069e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.831e-01  1.391e-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.265e-01  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 320.921 5.592
Photon Index (Free Index): 3.14 +/- 1.07
Photon Flux (Free Index): 8.16e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.21e-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/473711/cmap_HighResolution_321235201_321494401_4FGL_J2123.6+0535_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.53e-05', photon_flux_error='4.84e-08', dlogl='3.22e-01', energy_flux='1.80e-05', photon_flux2='8.16e-08', job_status='DONE', time_completed='2021-09-26 12:51:55.387574', photon_index_error2='1.07', photon_index2='3.14', ts='1.94', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.21e-05', EG='0.57', time_epoch_completed='1632685915.39', return_code='0', job_id='473711', GAL2='0.98', EG2='0.53', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.52e-08', ts2='2.65', photon_index='2.39' WHERE bin_id='316' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 473711: <4FGL_J2123.6+0535_daily_bin316> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin316 320.921 5.592 321235201 321494401 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 :                                   700.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            967 sec.

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

