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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin986
RA = 320.921, Dec = 5.592
tmin = 494899201, tmax = 495158401
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='478896', job_status='RUN', time_executed='2021-09-26 12:57:46.921395', time_epoch_executed='1632686266.92' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478896/ft1_4FGL_J2123.6+0535_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478896/ft2_4FGL_J2123.6+0535_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478896/ft1_4FGL_J2123.6+0535_daily_bin986.fits outfile=/scratch/kocevski/478896/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin986.fits ra=320.921 dec=5.592 rad=12.0 tmin=494899201.0 tmax=495158401.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.66
user 3.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478896/ft1_filtered_4FGL_J2123.6+0535_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/478896/ft2_4FGL_J2123.6+0535_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/478896/ltcube_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.fits outfile=/scratch/kocevski/478896/expmap_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.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/478896/ltcube_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.fits
.....................!
real 191.91
user 185.84
sys 5.27

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/478896/ft1_filtered_4FGL_J2123.6+0535_daily_bin986.fits scfile=/scratch/kocevski/478896/ft2_4FGL_J2123.6+0535_daily_bin986.fits outfile=/scratch/kocevski/478896/cmap_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478896/ft1_filtered_4FGL_J2123.6+0535_daily_bin986.fits scfile=/scratch/kocevski/478896/ft2_4FGL_J2123.6+0535_daily_bin986.fits outfile=/scratch/kocevski/478896/cmap_HighResolution_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3143       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.914       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4867       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.988       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0427       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2021       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1967       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71201       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=   6449.658     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3087 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.387       -.12295E-05** at limit **
   2  norm          .10000E-03    6.0236       -.17434E-06** at limit **
   3  Prefactor     1.3146        4.1891        .15681E-05    .55095E-04
   4  Prefactor     .10000E-03    17.589       -.55715E-06** at limit **
   5  Prefactor     27.701        18.548        .33826E-06   -.32853E-05
   6  Prefactor     .10000E-03    19.559       -.47760E-07** at limit **
   7  Prefactor     .10000E-03    12.487        .11934E-06** at limit **
   8  Prefactor     14.260        23.451        .53493E-07   -.56050E-05
   9  Prefactor     29.251        52.733        .75087E-06    .15765E-04
  10  Prefactor     11.075        21.628        .60950E-06   -.34499E-05
  11  Prefactor     14.068        33.293        .92528E-06    .82000E-05
  12  Prefactor     2.4914        6.1739        .12627E-05    .18476E-04
  13  Prefactor     10.287        9.1152        .90873E-07   -.43608E-04
  14  Prefactor     .10000E-03    .82501        .14530E-06** at limit **
  15  Prefactor     21.919        29.775        .49894E-06    .44475E-05
  16  Prefactor     5.4946        43.767        .11899E-05    .15292E-04
  17  Prefactor     .10000E-03    20.301        .34264E-06** at limit **
  18  Prefactor     27.021        46.599        .14819E-05    .88918E-04
  19  norm          .10000E-03    .84474        .31732E-07** at limit **
  20  norm          .10000E-03    10.270        .51725E-06** at limit **
  21  Prefactor     .10000E-03    5.0405        .13798E-05** at limit **
  22  Prefactor     5.0431        7.5058        .25564E-05    .75687E-04
  23  Prefactor     4.2062        22.112        .15563E-05   -.13069E-05
  24  Prefactor     .10000E-03    71.662        .86051E-06** at limit **
  25  Normalizat    1.1963        .26409       -.41820E-05    .40784E-04
  26  Prefactor     .71217        .10507        .14090E-05   -.30079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.31459
  Prefactor  = 0.000100001
  Prefactor  = 27.7007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2602
  Prefactor  = 29.251
  Prefactor  = 11.0746
  Prefactor  = 14.0679
  Prefactor  = 2.49139
  Prefactor  = 10.2871
  Prefactor  = 0.0001
  Prefactor  = 21.9187
  Prefactor  = 5.49461
  Prefactor  = 0.0001
  Prefactor  = 27.0211
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04308
  Prefactor  = 4.20623
  Prefactor  = 0.000100001
  Normalizat = 1.19629
  Prefactor  = 0.712167
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.658     FROM HESSE     STATUS=OK           456 CALLS     3543 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.0562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3146        4.1921        .28238E-03   -1.5479    
   4  Prefactor     .10000E-03    17.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.701        18.570        .76120E-04   -1.4655    
   6  Prefactor     .10000E-03    19.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.260        23.435        .10606E-03   -1.4953    
   9  Prefactor     29.251        52.786        .74089E-04   -1.4626    
  10  Prefactor     11.075        21.636        .12039E-03   -1.5042    
  11  Prefactor     14.068        33.273        .10681E-03   -1.4958    
  12  Prefactor     2.4914        6.1259        .25900E-03   -1.5392    
  13  Prefactor     10.287        9.0698        .12494E-03   -1.5066    
  14  Prefactor     .10000E-03    .82796        .71046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.919        29.805        .85564E-04   -1.4771    
  16  Prefactor     5.4946        43.680        .17154E-03   -1.5239    
  17  Prefactor     .10000E-03    20.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.021        46.711        .77115E-04   -1.4668    
  19  norm          .10000E-03    .85338        .72028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0550        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0431        7.5990        .89532E-03   -1.5259    
  23  Prefactor     4.2062        22.087        .19659E-03   -1.5298    
  24  Prefactor     .10000E-03    72.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1963        .30259        .31174E-03   -.86718    
  26  Prefactor     .71217        .12202        .17330E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45709e-10
Minuit parameter uncertainties:
  1  0.000638533
  2  7.26234e-06
  3  4.19302
  4  0.00021621
  5  18.5738
  6  5.47334e-05
  7  6.54323e-05
  8  23.4499
  9  52.8702
  10  21.651
  11  33.3167
  12  6.12746
  13  9.07101
  14  3.711e-07
  15  29.8251
  16  31.0151
  17  0.000157508
  18  46.7747
  19  1.83856e-06
  20  5.93649e-06
  21  8.59646e-06
  22  7.60046
  23  19.2882
  24  0.000538137
  25  0.303032
  26  0.122071
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.107e+01  2.165e+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:  7.122e-01  1.221e-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.196e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478896/likelihoodResults_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.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) = 6449.63374629
delta logL = 0.0242092416174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6449.62827537
delta logL = 0.029680166147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9265       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6491       1.0000          .0000       10.000    
     3 'Normalizat'    1.1902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71379       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=   6449.628     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9212        22.408        .13415E-03    .76100E-04
   2  Index         2.6494        1.2003        .97235E-02    .30623E-04
   3  Normalizat    1.1903        .27356        .31242E-03   -.10493E-02
   4  Prefactor     .71375        .12026        .17312E-03   -.17902E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.92121
  Index      = 2.64937
  Normalizat = 1.1903
  Prefactor  = 0.713753
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.628     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9212        20.378        .53661E-05   -1.5111    
   2  Index         2.6494        1.0935        .38894E-03   -.48943    
   3  Normalizat    1.1903        .27379        .62485E-04   -.86903    
   4  Prefactor     .71375        .12031        .34624E-04   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97312e-09
Minuit parameter uncertainties:
  1  20.3941
  2  1.10504
  3  0.274122
  4  0.120355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478896': 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) = 6449.62827527
delta logL = 0.0296802667845

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.921e+00  2.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.649e+00  1.105e+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:  7.138e-01  1.204e-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.190e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 320.921 5.592

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/478896/cmap_HighResolution_494899201_495158401_4FGL_J2123.6+0535_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-26 13:10:28.996603', job_id='478896', GAL2='0.71', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1632687029.0', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.97e-02', ts2='0.39', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='986' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:10:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 478896: <4FGL_J2123.6+0535_daily_bin986> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin986> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:28 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:56:00 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:56:00 2021
Terminated at Sun Sep 26 13:10:29 2021
Results reported at Sun Sep 26 13:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin986 320.921 5.592 494899201 495158401 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            901 sec.

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

