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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin880
RA = 320.921, Dec = 5.592
tmin = 467424001, tmax = 467683201
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='477666', job_status='RUN', time_executed='2021-09-26 12:54:05.797327', time_epoch_executed='1632686045.8' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='880'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477666/ft1_4FGL_J2123.6+0535_daily_bin880.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477666/ft1_4FGL_J2123.6+0535_daily_bin880.fits outfile=/scratch/kocevski/477666/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin880.fits ra=320.921 dec=5.592 rad=12.0 tmin=467424001.0 tmax=467683201.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.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.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/477666/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin880.fits evtable="EVENTS" outfile="/scratch/kocevski/477666/ft1_filtered_4FGL_J2123.6+0535_daily_bin880.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477666/ft1_filtered_4FGL_J2123.6+0535_daily_bin880.fits" evtable="EVENTS" scfile=/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits sctable="SC_DATA" outfile=/scratch/kocevski/477666/ltcube_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.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/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits
.....................!
real 13.28
user 12.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477666/ft1_filtered_4FGL_J2123.6+0535_daily_bin880.fits evtable="EVENTS" scfile=/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits sctable="SC_DATA" expcube=/scratch/kocevski/477666/ltcube_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.fits outfile=/scratch/kocevski/477666/expmap_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.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/477666/ltcube_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.fits
.....................!
real 191.41
user 185.75
sys 5.11

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/477666/ft1_filtered_4FGL_J2123.6+0535_daily_bin880.fits scfile=/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits outfile=/scratch/kocevski/477666/cmap_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477666/ft1_filtered_4FGL_J2123.6+0535_daily_bin880.fits scfile=/scratch/kocevski/477666/ft2_4FGL_J2123.6+0535_daily_bin880.fits outfile=/scratch/kocevski/477666/cmap_HighResolution_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.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.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2348       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.211       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0862       1.0000         .10000E-03   10000.    
    20 'norm      '    .77166       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3865       1.0000         .10000E-03   10000.    
    23 'Prefactor '    68.072       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .59443       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0759       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=   6620.550     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     3046 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2352        43.473        .75392E-06    .15422E-06
   2  norm          .10000E-03    6.7587       -.32691E-06** at limit **
   3  Prefactor     .10000E-03    3.8440        .24238E-06** at limit **
   4  Prefactor     .10000E-03    20.113        .56471E-06** at limit **
   5  Prefactor     13.940        13.227        .73570E-06   -.10035E-04
   6  Prefactor     18.201        25.335        .56277E-06   -.28328E-05
   7  Prefactor     .10000E-03    16.170        .22007E-06** at limit **
   8  Prefactor     .10000E-03    19.150       -.19879E-06** at limit **
   9  Prefactor     19.170        86.791        .35401E-05    .94845E-04
  10  Prefactor     24.364        32.938        .47888E-06   -.62181E-04
  11  Prefactor     .10000E-03    21.754        .31723E-06** at limit **
  12  Prefactor     .10000E-03    3.4783       -.64246E-06** at limit **
  13  Prefactor     5.8483        8.2360        .52623E-05    .30468E-04
  14  Prefactor     1.8314        2.5959        .48418E-06    .13191E-05
  15  Prefactor     .10000E-03    14.445        .43149E-07** at limit **
  16  Prefactor     21.214        26.997       -.70669E-08    .10626E-04
  17  Prefactor     37.886        85.241       -.22121E-06   -.12502E-04
  18  Prefactor     .10000E-03    19.401       -.38021E-07** at limit **
  19  norm          1.0851        2.5972        .23266E-06   -.26490E-03
  20  norm          .77968        10.967        .17444E-05   -.38157E-03
  21  Prefactor     .10000E-03    4.2617       -.13887E-06** at limit **
  22  Prefactor     8.3866        10.243        .15873E-05   -.59730E-05
  23  Prefactor     68.081        31.386        .30111E-06   -.53725E-05
  24  Prefactor     .10000E-03    20.039       -.15138E-06** at limit **
  25  Normalizat    .59435        .29361       -.11738E-05   -.12437E-03
  26  Prefactor     1.0759        .12385       -.76780E-06   -.92868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23519
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9398
  Prefactor  = 18.2013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1695
  Prefactor  = 24.364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8483
  Prefactor  = 1.83141
  Prefactor  = 0.0001
  Prefactor  = 21.2142
  Prefactor  = 37.8859
  Prefactor  = 0.0001
  norm       = 1.08505
  norm       = 0.779682
  Prefactor  = 0.0001
  Prefactor  = 8.3866
  Prefactor  = 68.0813
  Prefactor  = 0.0001
  Normalizat = 0.59435
  Prefactor  = 1.07589
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.550     FROM HESSE     STATUS=OK           456 CALLS     3502 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2352        43.466        .19581E-03   -1.5296    
   2  norm          .10000E-03    6.8425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9023        .15575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.940        13.221        .53641E-03   -1.4961    
   6  Prefactor     18.201        25.259        .93887E-04   -1.4854    
   7  Prefactor     .10000E-03    16.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.170        85.580        .91744E-04   -1.4832    
  10  Prefactor     24.364        32.882        .81145E-04   -1.4720    
  11  Prefactor     .10000E-03    21.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5205        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8483        8.2609        .83031E-03   -1.5224    
  14  Prefactor     1.8314        2.5689        .14715E-03   -1.5437    
  15  Prefactor     .10000E-03    14.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.214        26.979        .86968E-04   -1.4786    
  17  Prefactor     37.886        83.198        .65120E-04   -1.4476    
  18  Prefactor     .10000E-03    19.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0851        2.4451        .16675E-03   -1.5500    
  20  norm          .77968        55.446        .48711E-02   -1.5531    
  21  Prefactor     .10000E-03    4.2856        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3866        10.237        .69215E-03   -1.5129    
  23  Prefactor     68.081        31.318        .48649E-04   -1.4056    
  24  Prefactor     .10000E-03    20.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .59435        .31812        .45705E-03   -1.0822    
  26  Prefactor     1.0759        .13817        .15980E-03   -.90241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72857e-09
Minuit parameter uncertainties:
  1  27.161
  2  1.24122e-05
  3  1.01269e-05
  4  2.20006e-05
  5  13.224
  6  25.2741
  7  2.73921e-05
  8  3.55372e-05
  9  81.2012
  10  32.906
  11  9.04152e-05
  12  2.60646e-05
  13  8.26248
  14  2.56909
  15  5.07629e-05
  16  26.9943
  17  83.454
  18  2.81827e-05
  19  2.44533
  20  13.1618
  21  2.64451e-06
  22  10.2388
  23  31.3251
  24  2.61421e-06
  25  0.319108
  26  0.138211
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.076e+00  1.382e-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.943e-01  3.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/477666/likelihoodResults_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.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) = 6620.09857295
delta logL = 0.451126206593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6620.0814424
delta logL = 0.468256758732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7820       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3062       1.0000          .0000       10.000    
     3 'Normalizat'    .52604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0964       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6620.081     FROM MIGRAD    STATUS=FAILED       104 CALLS      300 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7202        323.14        .64062E-03    .12199E-03
   2  Index         3.3088        6.6489        .60259E-02    .63983E-03
   3  Normalizat    .52627        .31323        .48423E-03   -.46251E-05
   4  Prefactor     1.0963        .14989        .15843E-03   -.20164E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6620.081     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      396 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7202        323.14        .35326E-03    .12199E-03
   2  Index         3.3088        6.6489        .10391E-02    .63983E-03
   3  Normalizat    .52627        .31323        .78997E-03   -.46251E-05
   4  Prefactor     1.0963        .14989        .23998E-03   -.20164E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6620.081     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      426 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7202        24.275        .12812E-03   -.21296E-05
   2  Index         3.3088        1.2926        .12052E-02    .24985E-04
   3  Normalizat    .52627        .30822        .19369E-04   -.46956E-05
   4  Prefactor     1.0963        .13934        .63372E-05   -.20451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.72017
  Index      = 3.30883
  Normalizat = 0.526272
  Prefactor  = 1.0963
 **********
 **   18 **HESSE 
 **********

 FCN=   6620.081     FROM HESSE     STATUS=OK            25 CALLS      451 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7202        21.872        .51250E-05   -1.5084    
   2  Index         3.3088        1.1669        .24104E-03   -.34504    
   3  Normalizat    .52627        .30797        .38738E-05   -1.1121    
   4  Prefactor     1.0963        .13911        .12674E-05   -.89585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29982e-13
Minuit parameter uncertainties:
  1  21.8901
  2  1.17917
  3  0.308974
  4  0.139157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477666': 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) = 6620.08143746
delta logL = 0.468261701317

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.720e+00  2.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.309e+00  1.179e+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:  1.096e+00  1.392e-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.263e-01  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 320.921 5.592
Photon Index (Free Index): 3.31 +/- 1.18
Photon Flux (Free Index): 9.39e-08 +/- 8.44e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.51e-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/477666/cmap_HighResolution_467424001_467683201_4FGL_J2123.6+0535_daily_bin880.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='4.68e-01', photon_flux2='9.39e-08', job_status='DONE', time_completed='2021-09-26 13:07:00.639782', photon_index_error2='1.18', photon_index2='3.31', ts='0.66', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.51e-05', EG='0.59', time_epoch_completed='1632686820.64', return_code='0', job_id='477666', GAL2='1.10', EG2='0.53', return_code2='0', photon_flux_error2='8.44e-08', ts2='1.70', photon_index='2.39' WHERE bin_id='880' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:07:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 477666: <4FGL_J2123.6+0535_daily_bin880> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin880> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 12:50:31 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:53: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:53:56 2021
Terminated at Sun Sep 26 13:07:01 2021
Results reported at Sun Sep 26 13:07:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin880 320.921 5.592 467424001 467683201 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 :                                   772.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            990 sec.

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

