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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1308
RA = 320.921, Dec = 5.592
tmin = 578361601, tmax = 578620801
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='480431', job_status='RUN', time_executed='2021-09-26 13:03:56.666974', time_epoch_executed='1632686636.67' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480431

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480431/ft1_4FGL_J2123.6+0535_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480431/ft1_4FGL_J2123.6+0535_daily_bin1308.fits outfile=/scratch/kocevski/480431/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1308.fits ra=320.921 dec=5.592 rad=12.0 tmin=578361601.0 tmax=578620801.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.03
user 2.75
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480431/ft1_filtered_4FGL_J2123.6+0535_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/480431/ltcube_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.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/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits
.....................!
real 10.35
user 10.01
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480431/ft1_filtered_4FGL_J2123.6+0535_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/480431/ltcube_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.fits outfile=/scratch/kocevski/480431/expmap_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.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/480431/ltcube_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.fits
.....................!
real 155.70
user 150.84
sys 4.59

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/480431/ft1_filtered_4FGL_J2123.6+0535_daily_bin1308.fits scfile=/scratch/kocevski/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits outfile=/scratch/kocevski/480431/cmap_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.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.46
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480431/ft1_filtered_4FGL_J2123.6+0535_daily_bin1308.fits scfile=/scratch/kocevski/480431/ft2_4FGL_J2123.6+0535_daily_bin1308.fits outfile=/scratch/kocevski/480431/cmap_HighResolution_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.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.48
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11339E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3327       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7159       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7286       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3990       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4308       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15341E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89939       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95680       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=   7770.754     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3127 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.137        .12501E-05** at limit **
   2  norm          .10000E-03    2.3889       -.62947E-07** at limit **
   3  Prefactor     .10000E-03    1.1027       -.51729E-07** at limit **
   4  Prefactor     .10000E-03    9.6543        .42526E-07** at limit **
   5  Prefactor     33.334        17.242        .19304E-05   -.20299E-06
   6  Prefactor     .10000E-03    5.7735        .15733E-07** at limit **
   7  Prefactor     13.691        13.474       -.71835E-06    .13616E-04
   8  Prefactor     35.501        36.535       -.85076E-05   -.48170E-05
   9  Prefactor     .10000E-03    11.036       -.71003E-07** at limit **
  10  Prefactor     9.1316        16.362        .59979E-05    .42960E-05
  11  Prefactor     .10000E-03    16.760       -.93259E-07** at limit **
  12  Prefactor     .10000E-03    3.1537       -.19431E-06** at limit **
  13  Prefactor     5.3201        6.3659       -.21224E-05   -.29172E-03
  14  Prefactor     2.3328        2.5017        .30235E-05    .32647E-03
  15  Prefactor     26.172        33.192       -.31743E-04    .11837E-04
  16  Prefactor     12.109        42.527       -.43098E-04   -.88260E-05
  17  Prefactor     .10000E-03    38.405        .35491E-05** at limit **
  18  Prefactor     9.5127        99.626       -.72806E-04   -.47147E-05
  19  norm          3.7286        2.5473       -.49180E-06   -.30036E-03
  20  norm          5.5563        26.346        .68912E-05    .11799E-03
  21  Prefactor     6.1799        7.3591        .26180E-05    .21736E-03
  22  Prefactor     2.3997        7.9145       -.63228E-06   -.25922E-03
  23  Prefactor     3.4273        31.043       -.37436E-05   -.17187E-04
  24  Prefactor     .10000E-03    25.574       -.22412E-05** at limit **
  25  Normalizat    .89880        .24735        .15986E-04   -.24453E-03
  26  Prefactor     .95700        .10315       -.20976E-05    .80744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3342
  Prefactor  = 0.0001
  Prefactor  = 13.6912
  Prefactor  = 35.5012
  Prefactor  = 0.0001
  Prefactor  = 9.13156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32012
  Prefactor  = 2.33277
  Prefactor  = 26.1719
  Prefactor  = 12.1087
  Prefactor  = 0.0001
  Prefactor  = 9.51272
  norm       = 3.72859
  norm       = 5.5563
  Prefactor  = 6.1799
  Prefactor  = 2.39965
  Prefactor  = 3.42734
  Prefactor  = 0.0001
  Normalizat = 0.898799
  Prefactor  = 0.956995
 **********
 **   18 **HESSE 
 **********

 FCN=   7770.754     FROM HESSE     STATUS=OK           460 CALLS     3587 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3935        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1057        .90396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.334        17.257        .69433E-04   -1.4553    
   6  Prefactor     .10000E-03    5.7773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.691        13.475        .10825E-03   -1.4968    
   8  Prefactor     35.501        36.531        .67268E-04   -1.4516    
   9  Prefactor     .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1316        16.366        .13283E-03   -1.5104    
  11  Prefactor     .10000E-03    16.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2022        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.3201        6.3623        .17426E-03   -1.5247    
  14  Prefactor     2.3328        2.4778        .13009E-03   -1.5402    
  15  Prefactor     26.172        33.033        .78363E-04   -1.4684    
  16  Prefactor     12.109        42.486        .11525E-03   -1.5012    
  17  Prefactor     .10000E-03    38.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5127        96.422        .12856E-03   -1.5091    
  19  norm          3.7286        2.5304        .10506E-03   -1.5322    
  20  norm          5.5563        25.465        .17106E-03   -1.5236    
  21  Prefactor     6.1799        7.3013        .16159E-03   -1.5211    
  22  Prefactor     2.3997        7.8972        .26437E-03   -1.5398    
  23  Prefactor     3.4273        31.066        .21838E-03   -1.5338    
  24  Prefactor     .10000E-03    25.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89880        .29404        .37139E-03   -.96502    
  26  Prefactor     .95700        .12469        .16720E-03   -.94177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91343e-09
Minuit parameter uncertainties:
  1  6.31603e-05
  2  1.26064e-05
  3  5.85193e-06
  4  1.53353e-05
  5  17.2592
  6  2.08963e-05
  7  13.4782
  8  36.5538
  9  1.73965e-06
  10  16.3743
  11  4.81203e-05
  12  2.21767e-05
  13  6.36308
  14  2.47793
  15  33.0565
  16  42.5924
  17  1.10109e-06
  18  60.6984
  19  2.53051
  20  23.8067
  21  7.30235
  22  7.90065
  23  20.6512
  24  4.06896e-05
  25  0.294566
  26  0.124726
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.570e-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:  8.988e-01  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/480431/likelihoodResults_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.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) = 7770.58319258
delta logL = 0.170990725345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7770.5758627
delta logL = 0.178320607673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.867       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7218       1.0000          .0000       10.000    
     3 'Normalizat'    .91159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95351       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.

 FCN=   7770.576     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.847        23.508        .30384E-02    .18465E-03
   2  Index         1.7233        1.0204        .27684       -.48674E-04
   3  Normalizat    .91219        .21999        .83311E-01    .47470E-04
   4  Prefactor     .95329        .10188        .45683E-01    .90724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8469
  Index      = 1.72327
  Normalizat = 0.912186
  Prefactor  = 0.953287
 **********
 **   18 **HESSE 
 **********

 FCN=   7770.576     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.847        17.436        .60768E-03   -1.5049    
   2  Index         1.7233        .97373        .16335E-01   -.71464    
   3  Normalizat    .91219        .26029        .36884E-03   -.96033    
   4  Prefactor     .95329        .12145        .16745E-03   -.94303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61353e-09
Minuit parameter uncertainties:
  1  17.4446
  2  0.984858
  3  0.260653
  4  0.121481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480431': 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) = 7770.57585731
delta logL = 0.178326001951

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.533e-01  1.215e-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.122e-01  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/480431/cmap_HighResolution_578361601_578620801_4FGL_J2123.6+0535_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-26 13:15:35.593649', job_id='480431', GAL2='0.95', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1632687335.59', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.78e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1308' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 480431: <4FGL_J2123.6+0535_daily_bin1308> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1308> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:32 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:01:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:01:59 2021
Terminated at Sun Sep 26 13:15:35 2021
Results reported at Sun Sep 26 13:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1308 320.921 5.592 578361601 578620801 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 :                                   696.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            903 sec.

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

