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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1277
RA = 320.921, Dec = 5.592
tmin = 570326401, tmax = 570585601
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='480381', job_status='RUN', time_executed='2021-09-26 13:04:10.599279', time_epoch_executed='1632686650.6' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480381/ft1_4FGL_J2123.6+0535_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480381/ft1_4FGL_J2123.6+0535_daily_bin1277.fits outfile=/scratch/kocevski/480381/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1277.fits ra=320.921 dec=5.592 rad=12.0 tmin=570326401.0 tmax=570585601.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.98
user 2.68
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480381/ft1_filtered_4FGL_J2123.6+0535_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/480381/ltcube_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits outfile=/scratch/kocevski/480381/expmap_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.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/480381/ltcube_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits
.....................!
real 156.89
user 150.69
sys 5.41

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/480381/ft1_filtered_4FGL_J2123.6+0535_daily_bin1277.fits scfile=/scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits outfile=/scratch/kocevski/480381/cmap_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.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.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480381/ft1_filtered_4FGL_J2123.6+0535_daily_bin1277.fits scfile=/scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits outfile=/scratch/kocevski/480381/cmap_HighResolution_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.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.49
user 0.33
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/480381/ft1_filtered_4FGL_J2123.6+0535_daily_bin1277.fits', '/scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits', expMap='/scratch/kocevski/480381/expmap_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits', expCube='/scratch/kocevski/480381/ltcube_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/480381/Model_4FGL_J2123.6+0535_daily_bin1277.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/480381/ft1_filtered_4FGL_J2123.6+0535_daily_bin1277.fits
Spacecraft file(s): /scratch/kocevski/480381/ft2_4FGL_J2123.6+0535_daily_bin1277.fits
Exposure map: /scratch/kocevski/480381/expmap_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits
Exposure cube: /scratch/kocevski/480381/ltcube_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/480381/Model_4FGL_J2123.6+0535_daily_bin1277.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7359.63949444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53417E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68421E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72375E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    75.589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14875E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0102       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67324E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    102.82       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2885       1.0000         .10000E-03   10000.    
    20 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12612E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30150E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96671       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98092       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=   7359.580     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     2747 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.541        .29064E-06** at limit **
   2  norm          1.4460        10.050       -.11972E-05   -.37300E-04
   3  Prefactor     .10006E-03    24.321        .91987E-05** at limit **
   4  Prefactor     39.611        49.131        .31178E-06    .42201E-04
   5  Prefactor     .10000E-03    12.850       -.57381E-06** at limit **
   6  Prefactor     .10000E-03    5.9862       -.76579E-07** at limit **
   7  Prefactor     5.5561        10.236       -.13366E-06    .17666E-04
   8  Prefactor     .10000E-03    31.018       -.31093E-06** at limit **
   9  Prefactor     39.019        108.34        .13881E-05    .28238E-04
  10  Prefactor     75.651        37.146        .36426E-07    .22341E-04
  11  Prefactor     20.929        177.05        .42010E-05   -.17613E-04
  12  Prefactor     3.7173        7.0932       -.13537E-06   -.37807E-04
  13  Prefactor     .10000E-03    4.4843       -.16625E-06** at limit **
  14  Prefactor     5.9872        5.7194       -.30192E-07   -.22884E-04
  15  Prefactor     .10002E-03    322.65       -.36888E-05** at limit **
  16  Prefactor     2.6152        563.79       -.13994E-04   -.29667E-04
  17  Prefactor     .10000E-03    27.560        .10209E-06** at limit **
  18  Prefactor     104.52        84.495       -.24752E-05   -.28080E-03
  19  norm          5.2906        3.2175       -.47571E-07   -.48110E-03
  20  norm          .10000E-03    37.992       -.77350E-07** at limit **
  21  Prefactor     .10000E-03    15.638        .14110E-06** at limit **
  22  Prefactor     .10000E-03    6.9792       -.63831E-07** at limit **
  23  Prefactor     .10000E-03    13.901       -.95973E-07** at limit **
  24  Prefactor     .10000E-03    16.657       -.86962E-07** at limit **
  25  Normalizat    .96172        .30737       -.46795E-05   -.31963E-04
  26  Prefactor     .98236        .11655        .28277E-05    .83220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.44602
  Prefactor  = 0.000100063
  Prefactor  = 39.6113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5561
  Prefactor  = 0.0001
  Prefactor  = 39.0191
  Prefactor  = 75.6506
  Prefactor  = 20.929
  Prefactor  = 3.71732
  Prefactor  = 0.0001
  Prefactor  = 5.98722
  Prefactor  = 0.000100023
  Prefactor  = 2.61516
  Prefactor  = 0.0001
  Prefactor  = 104.52
  norm       = 5.29061
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.961718
  Prefactor  = 0.98236
 **********
 **   18 **HESSE 
 **********

 FCN=   7359.580     FROM HESSE     STATUS=OK           448 CALLS     3195 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.607        .21124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4460        10.119        .35697E-03   -1.5467    
   3  Prefactor     .10006E-03    30.002        .40090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.611        49.060        .60550E-04   -1.4448    
   5  Prefactor     .10000E-03    13.241        .42833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5561        10.229        .17083E-03   -1.5236    
   8  Prefactor     .10000E-03    31.376        .20961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.019        108.29        .69428E-04   -1.4458    
  10  Prefactor     75.651        37.145        .46184E-04   -1.3966    
  11  Prefactor     20.929        173.33        .95009E-04   -1.4793    
  12  Prefactor     3.7173        7.0765        .20948E-03   -1.5322    
  13  Prefactor     .10000E-03    4.5294        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9872        5.6713        .16306E-03   -1.5219    
  15  Prefactor     .10002E-03    326.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6152        561.92        .16615E-03   -1.5385    
  17  Prefactor     .10000E-03    27.561        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     104.52        86.290        .19826E-03   -1.3660    
  19  norm          5.2906        3.2200        .11102E-03   -1.5248    
  20  norm          .10000E-03    38.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.664        .21388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96172        .35985        .41246E-03   -.94324    
  26  Prefactor     .98236        .14035        .17335E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57705e-09
Minuit parameter uncertainties:
  1  9.2097e-05
  2  7.65208
  3  0.00275931
  4  49.1105
  5  0.000145548
  6  1.63171e-05
  7  10.2318
  8  0.000130256
  9  108.839
  10  37.1561
  11  120.937
  12  7.07808
  13  1.85237e-05
  14  5.67184
  15  0.00551798
  16  77.4143
  17  3.88205e-05
  18  86.3943
  19  3.22015
  20  0.000354789
  21  0.000281412
  22  1.58209e-05
  23  5.46892e-05
  24  3.66901e-05
  25  0.36076
  26  0.140399
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  7.565e+01  3.716e+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.824e-01  1.404e-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:  9.617e-01  3.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.34
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 7.00e-08
Energy Flux (Fixed Index): 4.74e-05 +/- 2.33e-05

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) = 7358.98549162
delta logL = 0.595001040509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7358.98536578
delta logL = 0.595126875031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.719       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9864       1.0000          .0000       10.000    
     3 'Normalizat'    1.0208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96373       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=   7358.985     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      300 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.561        48.859        .40258E-04    .16701E-03
   2  Index         1.9851        .34381        .61070E-02    .94855E-04
   3  Normalizat    1.0211        .32102        .40149E-03    .98768E-04
   4  Prefactor     .96374        .13614        .17475E-03    .21291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.561
  Index      = 1.98507
  Normalizat = 1.02108
  Prefactor  = 0.963739
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.985     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.561        48.683        .80516E-05   -1.3709    
   2  Index         1.9851        .34235        .24428E-03   -.64724    
   3  Normalizat    1.0211        .32118        .16059E-04   -.92327    
   4  Prefactor     .96374        .13622        .34951E-04   -.93948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10849e-10
Minuit parameter uncertainties:
  1  48.7023
  2  0.342773
  3  0.321789
  4  0.136265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480381': 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) = 7358.98535057
delta logL = 0.595142086363

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.956e+01  4.870e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.985e+00  3.428e-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.637e-01  1.363e-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:  1.021e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.52
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.99 +/- 0.34
Photon Flux (Free Index): 1.03e-07 +/- 6.42e-08
Energy Flux (Free Index): 7.38e-05 +/- 4.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/480381/cmap_HighResolution_570326401_570585601_4FGL_J2123.6+0535_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='7.38e-05', photon_flux_error='7.00e-08', dlogl='5.95e-01', energy_flux='4.74e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-26 13:13:49.230706', photon_index_error2='0.34', photon_index2='1.99', ts='7.34', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.97e-05', EG='0.96', time_epoch_completed='1632687229.23', return_code='0', job_id='480381', GAL2='0.96', EG2='1.02', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='6.42e-08', ts2='8.52', photon_index='2.39' WHERE bin_id='1277' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:13:49 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1277 320.921 5.592 570326401 570585601 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 :                                   573.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            801 sec.

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

