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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin909
RA = 320.921, Dec = 5.592
tmin = 474940801, tmax = 475200001
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='478783', job_status='RUN', time_executed='2021-09-26 12:55:44.457057', time_epoch_executed='1632686144.46' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478783/ft1_4FGL_J2123.6+0535_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478783/ft2_4FGL_J2123.6+0535_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478783/ft1_4FGL_J2123.6+0535_daily_bin909.fits outfile=/scratch/kocevski/478783/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin909.fits ra=320.921 dec=5.592 rad=12.0 tmin=474940801.0 tmax=475200001.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.62
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478783/ft2_4FGL_J2123.6+0535_daily_bin909.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/478783/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/478783/ft1_filtered_4FGL_J2123.6+0535_daily_bin909.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.53
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478783/ft1_filtered_4FGL_J2123.6+0535_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/478783/ft2_4FGL_J2123.6+0535_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/478783/ltcube_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.fits outfile=/scratch/kocevski/478783/expmap_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.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/478783/ltcube_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.fits
.....................!
real 194.63
user 188.71
sys 5.12

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/478783/ft1_filtered_4FGL_J2123.6+0535_daily_bin909.fits scfile=/scratch/kocevski/478783/ft2_4FGL_J2123.6+0535_daily_bin909.fits outfile=/scratch/kocevski/478783/cmap_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.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.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478783/ft1_filtered_4FGL_J2123.6+0535_daily_bin909.fits scfile=/scratch/kocevski/478783/ft2_4FGL_J2123.6+0535_daily_bin909.fits outfile=/scratch/kocevski/478783/cmap_HighResolution_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.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.65
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.635       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.610       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96496       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.603       1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25314E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.401       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.607       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92331       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87662       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=   8502.018     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3224 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.604        63.873       -.50683E-05   -.85084E-04
   2  norm          5.4484        8.4657        .97101E-06    .67344E-04
   3  Prefactor     .10000E-03    2.4848       -.11574E-07** at limit **
   4  Prefactor     20.435        34.953        .63309E-06    .38709E-05
   5  Prefactor     17.523        17.009        .92670E-06    .80564E-04
   6  Prefactor     .10000E-03    14.493        .88738E-06** at limit **
   7  Prefactor     .10000E-03    17.142        .10884E-05** at limit **
   8  Prefactor     15.033        27.243        .59777E-06    .23638E-04
   9  Prefactor     64.597        51.374       -.72998E-06   -.59649E-04
  10  Prefactor     .10000E-03    23.554        .40877E-06** at limit **
  11  Prefactor     29.805        27.468        .14021E-06    .20716E-03
  12  Prefactor     .10000E-03    3.0007        .11822E-06** at limit **
  13  Prefactor     .10000E-03    1.6330        .31287E-07** at limit **
  14  Prefactor     .10000E-03    1.1237       -.12333E-05** at limit **
  15  Prefactor     .10000E-03    7.4181        .13977E-06** at limit **
  16  Prefactor     .89452        13.749       -.10159E-05    .21473E-03
  17  Prefactor     .10000E-03    23.770        .49087E-08** at limit **
  18  Prefactor     33.646        49.073       -.12690E-05   -.78279E-04
  19  norm          .10000E-03    1.0993        .36506E-07** at limit **
  20  norm          .10002E-03    17.457        .18861E-05** at limit **
  21  Prefactor     .10000E-03    6.8450        .24810E-05** at limit **
  22  Prefactor     27.402        11.383        .22016E-06    .20763E-04
  23  Prefactor     18.615        20.777       -.17752E-05   -.23080E-03
  24  Prefactor     .10000E-03    15.457       -.14016E-05** at limit **
  25  Normalizat    .92322        .21682       -.30941E-05   -.14216E-03
  26  Prefactor     .87673        .93236E-01    .61554E-06   -.48473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6043
  norm       = 5.44835
  Prefactor  = 0.0001
  Prefactor  = 20.4346
  Prefactor  = 17.523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0335
  Prefactor  = 64.5969
  Prefactor  = 0.0001
  Prefactor  = 29.8048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.894523
  Prefactor  = 0.0001
  Prefactor  = 33.6461
  norm       = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 27.4015
  Prefactor  = 18.6146
  Prefactor  = 0.0001
  Normalizat = 0.923219
  Prefactor  = 0.876725
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.018     FROM HESSE     STATUS=OK           458 CALLS     3682 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.604        64.152        .77624E-04   -1.4676    
   2  norm          5.4484        8.4597        .17212E-03   -1.5241    
   3  Prefactor     .10000E-03    2.5233        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.435        34.983        .88596E-04   -1.4804    
   5  Prefactor     17.523        17.049        .95669E-04   -1.4871    
   6  Prefactor     .10000E-03    14.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.033        27.286        .10329E-03   -1.4932    
   9  Prefactor     64.597        51.618        .49927E-04   -1.4099    
  10  Prefactor     .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.805        26.944        .73445E-04   -1.4616    
  12  Prefactor     .10000E-03    3.0329        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6351        .11507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3109        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89452        64.527        .65131E-02   -1.5519    
  17  Prefactor     .10000E-03    23.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.646        52.045        .69128E-04   -1.4547    
  19  norm          .10000E-03    1.1327        .18839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    22.609        .96121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.402        11.403        .38266E-03   -1.4661    
  23  Prefactor     18.615        21.010        .92850E-04   -1.4845    
  24  Prefactor     .10000E-03    15.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92322        .25576        .35073E-03   -.95649    
  26  Prefactor     .87673        .11113        .16543E-03   -.96959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60101e-09
Minuit parameter uncertainties:
  1  64.3194
  2  8.46153
  3  7.57631e-06
  4  35.018
  5  17.0537
  6  9.33221e-05
  7  0.000112527
  8  27.3083
  9  51.6541
  10  8.82113e-05
  11  26.9552
  12  8.49844e-06
  13  1.58132e-06
  14  8.08905e-05
  15  1.96472e-05
  16  15.211
  17  5.01978e-06
  18  52.1154
  19  4.04651e-06
  20  0.00130756
  21  0.000106787
  22  11.4037
  23  21.0181
  24  0.000106097
  25  0.256101
  26  0.111155
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.821e-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.767e-01  1.112e-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.232e-01  2.561e-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: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478783/likelihoodResults_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.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) = 8502.01805146
delta logL = -0.000200616988877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8502.0178514
delta logL = -5.50830009161e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3032       1.0000          .0000       10.000    
     3 'Normalizat'    .92324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87673       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=   8502.018     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6766.2        .18142E-02** at limit **
   2  Index         2.3560        6.1497        .50000       -.25277E-04
   3  Normalizat    .92322        .10232        .35073E-03   -.13497E-03
   4  Prefactor     .87673        .47496E-01    .16543E-03   -.11886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.35605
  Normalizat = 0.923216
  Prefactor  = 0.876727
 **********
 **   18 **HESSE 
 **********

 FCN=   8502.018     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    24.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3560        6.1749        .50000       -.55717    
   3  Normalizat    .92322        .23056        .14029E-04   -.95649    
   4  Prefactor     .87673        .10716        .33085E-04   -.96959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0074e-09
Minuit parameter uncertainties:
  1  0.00116845
  2  4.51404
  3  0.230804
  4  0.107186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478783': 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) = 8502.01785105
delta logL = -2.03945091926e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.168e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.356e+00  4.514e+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:  8.767e-01  1.072e-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.232e-01  2.308e-01  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/478783/cmap_HighResolution_474940801_475200001_4FGL_J2123.6+0535_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-26 13:11:23.010504', job_id='478783', GAL2='0.88', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632687083.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='909' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 478783: <4FGL_J2123.6+0535_daily_bin909> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin909> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:17 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:55: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 12:55:27 2021
Terminated at Sun Sep 26 13:11:23 2021
Results reported at Sun Sep 26 13:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin909 320.921 5.592 474940801 475200001 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 :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            966 sec.

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

