/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 17 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin414
RA = 320.921, Dec = 5.592
tmin = 346636801, tmax = 346896001
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='474877', job_status='RUN', time_executed='2021-09-26 12:41:28.206131', time_epoch_executed='1632685288.21' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474877

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474877/ft1_4FGL_J2123.6+0535_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474877/ft1_4FGL_J2123.6+0535_daily_bin414.fits outfile=/scratch/kocevski/474877/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin414.fits ra=320.921 dec=5.592 rad=12.0 tmin=346636801.0 tmax=346896001.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.44
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474877/ft1_filtered_4FGL_J2123.6+0535_daily_bin414.fits" evtable="EVENTS" scfile=/scratch/kocevski/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits sctable="SC_DATA" outfile=/scratch/kocevski/474877/ltcube_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.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/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits
.....................!
real 14.51
user 14.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474877/ft1_filtered_4FGL_J2123.6+0535_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/474877/ltcube_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.fits outfile=/scratch/kocevski/474877/expmap_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.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/474877/ltcube_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.fits
.....................!
real 192.76
user 186.46
sys 5.80

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/474877/ft1_filtered_4FGL_J2123.6+0535_daily_bin414.fits scfile=/scratch/kocevski/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits outfile=/scratch/kocevski/474877/cmap_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474877/ft1_filtered_4FGL_J2123.6+0535_daily_bin414.fits scfile=/scratch/kocevski/474877/ft2_4FGL_J2123.6+0535_daily_bin414.fits outfile=/scratch/kocevski/474877/cmap_HighResolution_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.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.61
user 0.42
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6700       1.0000         .10000E-03   10000.    
    19 'norm      '    .83239       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2737       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.893       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90418       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=   7694.640     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3072 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.295        .80014E-05** at limit **
   2  norm          .10000E-03    7.6606        .13873E-05** at limit **
   3  Prefactor     .10000E-03    5.2469       -.32156E-06** at limit **
   4  Prefactor     .10000E-03    13.306       -.41788E-05** at limit **
   5  Prefactor     7.2108        17.698       -.68996E-06   -.36900E-04
   6  Prefactor     .10002E-03    38.499        .26456E-05** at limit **
   7  Prefactor     8.9223        19.573       -.21879E-04   -.42503E-04
   8  Prefactor     .10000E-03    12.645        .89452E-06** at limit **
   9  Prefactor     9.6846        46.875        .15416E-05   -.41867E-05
  10  Prefactor     9.2160        21.314        .14027E-05   -.19571E-05
  11  Prefactor     .10000E-03    31.840        .66032E-05** at limit **
  12  Prefactor     .10000E-03    5.0350        .24927E-06** at limit **
  13  Prefactor     .10000E-03    2.5556        .50744E-07** at limit **
  14  Prefactor     .10000E-03    .76123        .33260E-08** at limit **
  15  Prefactor     .10000E-03    8.7631       -.72750E-05** at limit **
  16  Prefactor     26.233        31.450        .18087E-05   -.13496E-04
  17  Prefactor     .10000E-03    27.067       -.84363E-05** at limit **
  18  Prefactor     5.6811        72.921        .31321E-04    .11410E-04
  19  norm          .83180        1.6691       -.81822E-06   -.20847E-02
  20  norm          .10000E-03    7.7544        .23873E-05** at limit **
  21  Prefactor     6.2740        8.0619       -.31399E-05   -.32506E-03
  22  Prefactor     .10000E-03    9.8945        .19764E-05** at limit **
  23  Prefactor     22.895        18.555       -.16785E-06   -.25965E-04
  24  Prefactor     .10000E-03    10.779        .48744E-05** at limit **
  25  Normalizat    .85629        .21757       -.10892E-05    .46900E-04
  26  Prefactor     .90435        .92650E-01    .98098E-06   -.25806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.21079
  Prefactor  = 0.000100022
  Prefactor  = 8.92226
  Prefactor  = 0.0001
  Prefactor  = 9.68461
  Prefactor  = 9.21598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2331
  Prefactor  = 0.0001
  Prefactor  = 5.68106
  norm       = 0.831802
  norm       = 0.0001
  Prefactor  = 6.27404
  Prefactor  = 0.0001
  Prefactor  = 22.8954
  Prefactor  = 0.0001
  Normalizat = 0.856286
  Prefactor  = 0.904345
 **********
 **   18 **HESSE 
 **********

 FCN=   7694.640     FROM HESSE     STATUS=OK           454 CALLS     3526 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.8117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2108        17.680        .14936E-03   -1.5171    
   6  Prefactor     .10002E-03    39.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9223        19.518        .13387E-03   -1.5110    
   8  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6846        47.323        .12878E-03   -1.5085    
  10  Prefactor     9.2160        21.366        .13201E-03   -1.5101    
  11  Prefactor     .10000E-03    31.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5642        .13693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1804        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.233        31.394        .78217E-04   -1.4683    
  17  Prefactor     .10000E-03    27.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6811        71.756        .16870E-03   -1.5231    
  19  norm          .83180        1.4991        .15332E-02   -1.5526    
  20  norm          .10000E-03    7.7655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2740        8.0059        .16026E-03   -1.5207    
  22  Prefactor     .10000E-03    10.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.895        18.587        .83717E-04   -1.4751    
  24  Prefactor     .10000E-03    10.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .85629        .25936        .34664E-03   -.98014    
  26  Prefactor     .90435        .11241        .15665E-03   -.95989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06587e-09
Minuit parameter uncertainties:
  1  1.84953e-05
  2  7.5894e-06
  3  7.53956e-06
  4  1.76684e-06
  5  17.6932
  6  0.00187727
  7  19.5324
  8  1.63499e-05
  9  42.8706
  10  21.3832
  11  8.00682e-05
  12  1.61084e-05
  13  1.28029e-06
  14  2.16807e-05
  15  1.22321e-05
  16  31.4142
  17  2.31251e-05
  18  40.4402
  19  1.49918
  20  4.11114e-05
  21  8.00726
  22  4.24332e-05
  23  18.5921
  24  1.09982e-05
  25  0.259742
  26  0.11244
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.216e+00  2.138e+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.043e-01  1.124e-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.563e-01  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/474877/likelihoodResults_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.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) = 7693.27450945
delta logL = 1.36576206589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7693.254853
delta logL = 1.38541852046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49539       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7801       1.0000          .0000       10.000    
     3 'Normalizat'    .74946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93684       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=   7693.255     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      292 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48530        4.4308        .88863E-02    .16682E-02
   2  Index         4.7905        2.2230        .12105        .20958E-03
   3  Normalizat    .74942        .49616E-01    .83193E-01    .58406E-04
   4  Prefactor     .93698        .23048E-01    .34870E-01    .50599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.485302
  Index      = 4.79049
  Normalizat = 0.749424
  Prefactor  = 0.936982
 **********
 **   18 **HESSE 
 **********

 FCN=   7693.255     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      327 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48530        10.816        .40650E-03   -1.5569    
   2  Index         4.7905        3.9153        .44515E-02   -.41915E-01
   3  Normalizat    .74942        .18581        .36838E-03   -1.0197    
   4  Prefactor     .93698        .85610E-01    .15408E-03   -.94861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63169e-11
Minuit parameter uncertainties:
  1  4.58264
  2  4.49949
  3  0.185969
  4  0.085622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474877': 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): 102
logL (Free Index) = 7693.25483904
delta logL = 1.38543247598

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.853e-01  4.583e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  4.790e+00  4.499e+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.370e-01  8.562e-02  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:  7.494e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 320.921 5.592
Photon Index (Free Index): 4.79 +/- 4.50
Photon Flux (Free Index): 9.05e-08 +/- 5.97e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.04e-05

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/474877/cmap_HighResolution_346636801_346896001_4FGL_J2123.6+0535_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.39e+00', photon_flux2='9.05e-08', job_status='DONE', time_completed='2021-09-26 12:55:47.970268', photon_index_error2='4.50', photon_index2='4.79', ts='0.21', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.04e-05', EG='0.86', time_epoch_completed='1632686147.97', return_code='0', job_id='474877', GAL2='0.94', EG2='0.75', return_code2='102', photon_flux_error2='5.97e-08', ts2='3.22', photon_index='2.39' WHERE bin_id='414' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 474877: <4FGL_J2123.6+0535_daily_bin414> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin414> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 12:40:26 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:40:58 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:40:58 2021
Terminated at Sun Sep 26 12:55:48 2021
Results reported at Sun Sep 26 12:55:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin414 320.921 5.592 346636801 346896001 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 :                                   855.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            922 sec.

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

