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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1611
RA = 320.921, Dec = 5.592
tmin = 656899201, tmax = 657158401
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='469721', job_status='RUN', time_executed='2021-12-08 07:37:32.475213', time_epoch_executed='1638977852.48' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469721/ft1_4FGL_J2123.6+0535_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469721/ft1_4FGL_J2123.6+0535_daily_bin1611.fits outfile=/scratch/kocevski/469721/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1611.fits ra=320.921 dec=5.592 rad=12.0 tmin=656899201.0 tmax=657158401.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.58
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469721/ft1_filtered_4FGL_J2123.6+0535_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/469721/ltcube_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.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/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits
.....................!
real 14.32
user 13.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469721/ft1_filtered_4FGL_J2123.6+0535_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/469721/ltcube_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.fits outfile=/scratch/kocevski/469721/expmap_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.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/469721/ltcube_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.fits
.....................!
real 191.96
user 186.48
sys 4.86

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/469721/ft1_filtered_4FGL_J2123.6+0535_daily_bin1611.fits scfile=/scratch/kocevski/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits outfile=/scratch/kocevski/469721/cmap_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469721/ft1_filtered_4FGL_J2123.6+0535_daily_bin1611.fits scfile=/scratch/kocevski/469721/ft2_4FGL_J2123.6+0535_daily_bin1611.fits outfile=/scratch/kocevski/469721/cmap_HighResolution_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .37944E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    91.881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3220       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5888       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16795E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.320       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.150       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87223       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=   7575.994     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3080 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.604       -.81415E-06** at limit **
   2  norm          .10071E-03    12.260        .46946E-05** at limit **
   3  Prefactor     .10000E-03    1.5752        .92249E-07** at limit **
   4  Prefactor     91.877        49.483        .65381E-06   -.40655E-04
   5  Prefactor     .10000E-03    6.1293        .10454E-06** at limit **
   6  Prefactor     8.3097        18.735        .71674E-06   -.37470E-04
   7  Prefactor     .10000E-03    10.433       -.85573E-06** at limit **
   8  Prefactor     .10000E-03    15.762       -.28386E-06** at limit **
   9  Prefactor     .10000E-03    24.220        .10846E-05** at limit **
  10  Prefactor     .10000E-03    6.8356        .16983E-06** at limit **
  11  Prefactor     26.893        47.108       -.26591E-05   -.14139E-03
  12  Prefactor     4.5895        7.1539        .32086E-06   -.11967E-03
  13  Prefactor     .10000E-03    3.9311        .11545E-06** at limit **
  14  Prefactor     .10000E-03    2.7338       -.18118E-05** at limit **
  15  Prefactor     .10000E-03    15.254       -.60551E-07** at limit **
  16  Prefactor     .10000E-03    17.874       -.79773E-06** at limit **
  17  Prefactor     .10000E-03    68.279        .15609E-05** at limit **
  18  Prefactor     .10000E-03    28.531        .93059E-06** at limit **
  19  norm          .10000E-03    1.3600        .58424E-06** at limit **
  20  norm          21.775        21.799       -.83304E-08   -.25177E-03
  21  Prefactor     .10000E-03    2.7559        .86140E-07** at limit **
  22  Prefactor     .10000E-03    11.226        .11286E-05** at limit **
  23  Prefactor     11.318        16.260        .56475E-07   -.43596E-04
  24  Prefactor     29.139        31.599        .89150E-06   -.77736E-04
  25  Normalizat    1.1340        .25028        .35917E-07   -.57812E-03
  26  Prefactor     .87197        .10218       -.13311E-05   -.14901E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.00010071
  Prefactor  = 0.0001
  Prefactor  = 91.8765
  Prefactor  = 0.0001
  Prefactor  = 8.30971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.893
  Prefactor  = 4.58948
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 21.7754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3179
  Prefactor  = 29.1395
  Normalizat = 1.13398
  Prefactor  = 0.871975
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.994     FROM HESSE     STATUS=OK           444 CALLS     3524 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10071E-03    57.445        .37259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5813        .10672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     91.877        49.494        .41924E-04   -1.3788    
   5  Prefactor     .10000E-03    6.1519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3097        18.748        .13897E-03   -1.5131    
   7  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.893        47.320        .77193E-04   -1.4670    
  12  Prefactor     4.5895        7.1285        .18791E-03   -1.5279    
  13  Prefactor     .10000E-03    3.9533        .16850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0061        .21053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    68.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0344        .18613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.775        21.286        .85836E-04   -1.4774    
  21  Prefactor     .10000E-03    2.7673        .14113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.318        16.258        .11907E-03   -1.5035    
  24  Prefactor     29.139        31.546        .74206E-04   -1.4628    
  25  Normalizat    1.1340        .29754        .34422E-03   -.88668    
  26  Prefactor     .87197        .12470        .17246E-03   -.97127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32031e-08
Minuit parameter uncertainties:
  1  1.98822e-05
  2  0.012785
  3  5.60737e-06
  4  49.5163
  5  2.22332e-05
  6  18.7616
  7  1.33872e-07
  8  3.4179e-05
  9  2.01095e-05
  10  1.27148e-05
  11  47.3857
  12  7.12984
  13  1.574e-05
  14  0.000132969
  15  1.9471e-05
  16  3.46557e-06
  17  2.94062e-05
  18  3.75149e-05
  19  4.45487e-06
  20  21.2932
  21  4.982e-06
  22  8.56767e-06
  23  16.2647
  24  31.564
  25  0.297982
  26  0.124738
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.271e-05  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:  8.720e-01  1.247e-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.134e+00  2.980e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469721/likelihoodResults_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.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) = 7575.99479704
delta logL = -0.000693816270541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7575.9941039
delta logL = -6.70045665174e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3652       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87190       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=   7575.994     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      263 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.266        .18142E-01** at limit **
   2  Index         1.8082        9.0096        .50000       -.67469E-06
   3  Normalizat    1.1340        .10006E-01    .34422E-03   -.15094E-04
   4  Prefactor     .87198        .44864E-02    .17246E-03   -.25116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80824
  Normalizat = 1.13398
  Prefactor  = 0.871977
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.994     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      290 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    230.65        .26295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8082        7.8684        .50000       -.69235    
   3  Normalizat    1.1340        .28740E-01    .13769E-04   -.88668    
   4  Prefactor     .87198        .12887E-01    .68983E-05   -.97127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95259e-08
Minuit parameter uncertainties:
  1  1.28956e-05
  2  793.295
  3  0.0287405
  4  0.0128872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469721': 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) = 7575.99410112
delta logL = 2.10668349609e-06

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.290e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.808e+00  7.933e+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:  8.720e-01  1.289e-02  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.134e+00  2.874e-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/469721/cmap_HighResolution_656899201_657158401_4FGL_J2123.6+0535_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-12-08 07:51:24.248244', job_id='469721', GAL2='0.87', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1638978684.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1611' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:51:24 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 469721: <4FGL_J2123.6+0535_daily_bin1611> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1611> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 07:35:26 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:35:28 2021
Terminated at Wed Dec  8 07:51:25 2021
Results reported at Wed Dec  8 07:51:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1611 320.921 5.592 656899201 657158401 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 :                                   830.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

