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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1291
RA = 320.921, Dec = 5.592
tmin = 573955201, tmax = 574214401
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='480404', job_status='RUN', time_executed='2021-09-26 13:04:37.339849', time_epoch_executed='1632686677.34' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480404/ft1_4FGL_J2123.6+0535_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480404/ft1_4FGL_J2123.6+0535_daily_bin1291.fits outfile=/scratch/kocevski/480404/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1291.fits ra=320.921 dec=5.592 rad=12.0 tmin=573955201.0 tmax=574214401.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 2.98
user 2.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480404/ft1_filtered_4FGL_J2123.6+0535_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/480404/ltcube_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.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/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits
.....................!
real 10.54
user 10.22
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480404/ft1_filtered_4FGL_J2123.6+0535_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/480404/ltcube_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.fits outfile=/scratch/kocevski/480404/expmap_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.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/480404/ltcube_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.fits
.....................!
real 155.46
user 150.75
sys 4.44

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/480404/ft1_filtered_4FGL_J2123.6+0535_daily_bin1291.fits scfile=/scratch/kocevski/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits outfile=/scratch/kocevski/480404/cmap_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.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.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480404/ft1_filtered_4FGL_J2123.6+0535_daily_bin1291.fits scfile=/scratch/kocevski/480404/ft2_4FGL_J2123.6+0535_daily_bin1291.fits outfile=/scratch/kocevski/480404/cmap_HighResolution_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9253       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6604       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19899E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13266E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.670       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8007       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.849       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64756E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96916       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=   6910.800     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3088 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9236        23.744       -.90069E-06   -.37691E-05
   2  norm          1.6595        4.0352        .62715E-05    .90034E-04
   3  Prefactor     .10000E-03    9.5447        .14876E-06** at limit **
   4  Prefactor     27.322        27.652        .16227E-06    .23099E-04
   5  Prefactor     .10000E-03    10.211        .66695E-06** at limit **
   6  Prefactor     17.464        30.182        .51264E-07    .40975E-04
   7  Prefactor     11.028        23.341        .25863E-07    .15234E-04
   8  Prefactor     .10000E-03    17.684        .30838E-06** at limit **
   9  Prefactor     .10000E-03    35.245        .11719E-05** at limit **
  10  Prefactor     .10000E-03    15.032       -.61069E-06** at limit **
  11  Prefactor     .10001E-03    84.590        .57044E-07** at limit **
  12  Prefactor     5.8095        5.6202       -.15902E-07   -.99530E-03
  13  Prefactor     .10000E-03    15.033       -.51402E-06** at limit **
  14  Prefactor     .10000E-03    .88983        .21211E-06** at limit **
  15  Prefactor     .10000E-03    57.582       -.29033E-06** at limit **
  16  Prefactor     .10000E-03    19.107       -.16542E-05** at limit **
  17  Prefactor     .10000E-03    17.361        .74896E-06** at limit **
  18  Prefactor     30.663        39.872        .60397E-06    .13552E-03
  19  norm          .10000E-03    .43627       -.39141E-08** at limit **
  20  norm          6.7985        15.464        .27084E-06    .99730E-06
  21  Prefactor     9.7283        9.7537       -.15447E-06    .14732E-03
  22  Prefactor     16.845        17.102        .81413E-07    .64202E-04
  23  Prefactor     .10001E-03    89.418       -.43008E-04** at limit **
  24  Prefactor     .10000E-03    17.290        .70718E-06** at limit **
  25  Normalizat    1.0567        .24777        .22853E-05    .40217E-03
  26  Prefactor     .96928        .11073       -.14316E-05    .28922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92362
  norm       = 1.65953
  Prefactor  = 0.0001
  Prefactor  = 27.3225
  Prefactor  = 0.0001
  Prefactor  = 17.4642
  Prefactor  = 11.0277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.80946
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6628
  norm       = 0.0001
  norm       = 6.79847
  Prefactor  = 9.72829
  Prefactor  = 16.8451
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 1.05674
  Prefactor  = 0.969276
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.800     FROM HESSE     STATUS=OK           454 CALLS     3542 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9236        23.806        .15245E-03   -1.5182    
   2  norm          1.6595        6.2704        .16370E-02   -1.5450    
   3  Prefactor     .10000E-03    9.9159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.322        27.653        .76636E-04   -1.4662    
   5  Prefactor     .10000E-03    67.675        .50426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.464        30.170        .95838E-04   -1.4872    
   7  Prefactor     11.028        23.324        .12066E-03   -1.5044    
   8  Prefactor     .10000E-03    17.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    85.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8095        5.7404        .83270E-03   -1.5226    
  13  Prefactor     .10000E-03    15.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .89897        .76606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.663        39.897        .72348E-04   -1.4600    
  19  norm          .10000E-03    .43793        .53610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7985        15.510        .76928E-03   -1.5186    
  21  Prefactor     9.7283        9.7269        .12847E-03   -1.5084    
  22  Prefactor     16.845        17.133        .48787E-03   -1.4887    
  23  Prefactor     .10001E-03    116.89        .61874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0567        .29896        .35773E-03   -.91153    
  26  Prefactor     .96928        .13490        .17118E-03   -.93761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86396e-09
Minuit parameter uncertainties:
  1  23.8382
  2  6.27288
  3  3.85635e-05
  4  27.6664
  5  3.39381e-05
  6  30.1959
  7  23.3432
  8  2.31572e-05
  9  0.000168557
  10  1.26838e-06
  11  0.00132392
  12  5.74094
  13  0.000292229
  14  1.74339e-05
  15  0.000479185
  16  9.63884e-05
  17  7.02234e-05
  18  39.9314
  19  4.55587e-09
  20  15.5194
  21  9.72849
  22  17.138
  23  0.00194988
  24  6.03526e-05
  25  0.299439
  26  0.13495
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.268e-06  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.693e-01  1.350e-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.057e+00  2.994e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480404/likelihoodResults_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.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) = 6910.8000834
delta logL = -0.000315985728776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6910.79976741
delta logL = 7.44421413401e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3768       1.0000          .0000       10.000    
     3 'Normalizat'    1.0567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96930       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=   6910.800     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.241        .90712E-02** at limit **
   2  Index         2.3636        6.1816        .50000        .75735E-05
   3  Normalizat    1.0567        .23674        .80808E-01    .32267E-04
   4  Prefactor     .96928        .10971        .45882E-01    .21606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36363
  Normalizat = 1.05673
  Prefactor  = 0.969279
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.800     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3636        6.1592        .50000       -.55539    
   3  Normalizat    1.0567        .28618        .35773E-03   -.91153    
   4  Prefactor     .96928        .13289        .17118E-03   -.93761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36732e-11
Minuit parameter uncertainties:
  1  2.46041e-05
  2  4.88556
  3  0.2866
  4  0.132936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480404': 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) = 6910.79976737
delta logL = 4.68817233923e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.460e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.364e+00  4.886e+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:  9.693e-01  1.329e-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.057e+00  2.866e-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/480404/cmap_HighResolution_573955201_574214401_4FGL_J2123.6+0535_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-26 13:15:23.763505', job_id='480404', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632687323.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1291' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:23 PDT 2021


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

Job <4FGL_J2123.6+0535_daily_bin1291> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:30 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:01:44 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:44 2021
Terminated at Sun Sep 26 13:15:24 2021
Results reported at Sun Sep 26 13:15:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1291 320.921 5.592 573955201 574214401 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 :                                   642.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            894 sec.

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

