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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin975
RA = 320.921, Dec = 5.592
tmin = 492048001, tmax = 492307201
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='478881', job_status='RUN', time_executed='2021-09-26 12:57:49.779151', time_epoch_executed='1632686269.78' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478881/ft1_4FGL_J2123.6+0535_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478881/ft2_4FGL_J2123.6+0535_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478881/ft1_4FGL_J2123.6+0535_daily_bin975.fits outfile=/scratch/kocevski/478881/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin975.fits ra=320.921 dec=5.592 rad=12.0 tmin=492048001.0 tmax=492307201.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.72
user 3.44
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478881/ft1_filtered_4FGL_J2123.6+0535_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/478881/ft2_4FGL_J2123.6+0535_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/478881/ltcube_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.fits outfile=/scratch/kocevski/478881/expmap_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.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/478881/ltcube_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.fits
.....................!
real 192.31
user 185.15
sys 5.98

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/478881/ft1_filtered_4FGL_J2123.6+0535_daily_bin975.fits scfile=/scratch/kocevski/478881/ft2_4FGL_J2123.6+0535_daily_bin975.fits outfile=/scratch/kocevski/478881/cmap_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478881/ft1_filtered_4FGL_J2123.6+0535_daily_bin975.fits scfile=/scratch/kocevski/478881/ft2_4FGL_J2123.6+0535_daily_bin975.fits outfile=/scratch/kocevski/478881/cmap_HighResolution_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    186.51       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.556       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    99.714       1.0000         .10000E-03   10000.    
    11 'Prefactor '    133.91       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48279E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .39625       1.0000         .10000E-03   10000.    
    20 'norm      '    53.732       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.248       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74443       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81551       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=   2179.994     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3191 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.61        .21379E-06** at limit **
   2  norm          .10000E-03    18.251        .12047E-06** at limit **
   3  Prefactor     .10000E-03    8.8901       -.35214E-06** at limit **
   4  Prefactor     .10000E-03    31.542        .39838E-07** at limit **
   5  Prefactor     .10000E-03    63.063        .20388E-05** at limit **
   6  Prefactor     .10000E-03    186.64        .75313E-05** at limit **
   7  Prefactor     186.47        116.96        .11732E-05   -.22402E-04
   8  Prefactor     16.131        207.16        .94942E-05    .16108E-04
   9  Prefactor     24.259        117.08        .12009E-05   -.50232E-05
  10  Prefactor     99.708        82.498        .20194E-06   -.17610E-04
  11  Prefactor     133.86        79.939       -.84934E-06   -.11078E-04
  12  Prefactor     .10000E-03    7.5552        .76895E-06** at limit **
  13  Prefactor     .10000E-03    15.993        .33783E-06** at limit **
  14  Prefactor     .10000E-03    1.4232        .37106E-06** at limit **
  15  Prefactor     .10000E-03    617.56       -.14534E-04** at limit **
  16  Prefactor     4.2910        87.236        .32979E-06   -.28190E-05
  17  Prefactor     .10000E-03    100.34       -.25885E-07** at limit **
  18  Prefactor     .10000E-03    64.633        .88901E-06** at limit **
  19  norm          .41180        8.3015       -.11825E-06   -.39678E-04
  20  norm          53.685        53.514       -.42134E-06   -.52493E-05
  21  Prefactor     .10000E-03    5.6449        .20648E-06** at limit **
  22  Prefactor     10.245        16.172        .63014E-07   -.16248E-04
  23  Prefactor     .10000E-03    14.627        .10153E-06** at limit **
  24  Prefactor     .10000E-03    29.760       -.39904E-07** at limit **
  25  Normalizat    .74527        .45995        .29617E-05   -.66648E-04
  26  Prefactor     .81519        .20091       -.35600E-05    .25499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 186.467
  Prefactor  = 16.1312
  Prefactor  = 24.2586
  Prefactor  = 99.7085
  Prefactor  = 133.861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.29096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.411795
  norm       = 53.6846
  Prefactor  = 0.0001
  Prefactor  = 10.2452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.745274
  Prefactor  = 0.815186
 **********
 **   18 **HESSE 
 **********

 FCN=   2179.994     FROM HESSE     STATUS=OK           452 CALLS     3643 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0442        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    189.40        .20924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     186.47        116.48        .14783E-03   -1.2968    
   8  Prefactor     16.131        213.22        .49216E-03   -1.4904    
   9  Prefactor     24.259        117.52        .81201E-04   -1.4723    
  10  Prefactor     99.708        82.463        .40259E-04   -1.3708    
  11  Prefactor     133.86        80.377        .17400E-03   -1.3389    
  12  Prefactor     .10000E-03    7.5858        .12558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4373        .54486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    603.94        .81593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2910        87.510        .19376E-03   -1.5294    
  17  Prefactor     .10000E-03    100.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .41180        8.5232        .25210E-03   -1.5580    
  20  norm          53.685        53.034        .54719E-04   -1.4241    
  21  Prefactor     .10000E-03    5.6570        .10839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.245        16.187        .12516E-03   -1.5068    
  23  Prefactor     .10000E-03    14.644        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74527        .49294        .39058E-03   -1.0213    
  26  Prefactor     .81519        .21230        .17388E-03   -.99171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67612e-10
Minuit parameter uncertainties:
  1  1.62833e-05
  2  1.33281e-05
  3  3.09985e-05
  4  3.54063e-06
  5  0.000297465
  6  0.00158535
  7  116.62
  8  117.813
  9  107.127
  10  82.5576
  11  80.443
  12  3.57771e-05
  13  1.86556e-05
  14  6.85151e-06
  15  0.00328672
  16  38.8205
  17  2.14486e-05
  18  9.99705e-05
  19  3.74705
  20  53.0808
  21  5.11822e-06
  22  16.1944
  23  1.87585e-06
  24  5.51931e-05
  25  0.495926
  26  0.21251
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.971e+01  8.256e+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:  8.152e-01  2.125e-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:  7.453e-01  4.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.88e-07 +/- 1.55e-07
Energy Flux (Fixed Index): 6.24e-05 +/- 5.17e-05

TS (Fixed Index): 2.29
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 5.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478881/likelihoodResults_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.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) = 2179.98673255
delta logL = 0.00711458926025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2179.98195091
delta logL = 0.0118962279766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.598       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4899       1.0000          .0000       10.000    
     3 'Normalizat'    .73514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81868       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=   2179.982     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      265 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.566        100.49        .42217E-04   -.56552E-05
   2  Index         2.4903        .69122        .46137E-02   -.73923E-05
   3  Normalizat    .73456        .44547        .39313E-03    .18407E-04
   4  Prefactor     .81901        .20827        .17350E-03   -.70466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.5663
  Index      = 2.49029
  Normalizat = 0.73456
  Prefactor  = 0.819009
 **********
 **   18 **HESSE 
 **********

 FCN=   2179.982     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.566        96.834        .84434E-05   -1.3802    
   2  Index         2.4903        .66565        .18455E-03   -.52584    
   3  Normalizat    .73456        .44527        .15725E-04   -1.0254    
   4  Prefactor     .81901        .20812        .34700E-04   -.99031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45227e-11
Minuit parameter uncertainties:
  1  97.0033
  2  0.668311
  3  0.447496
  4  0.208324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478881': 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) = 2179.98194954
delta logL = 0.011897601189

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  9.057e+01  9.700e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.490e+00  6.683e-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:  8.190e-01  2.083e-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:  7.346e-01  4.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.49 +/- 0.67
Photon Flux (Free Index): 2.01e-07 +/- 1.81e-07
Energy Flux (Free Index): 5.90e-05 +/- 5.19e-05

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/478881/cmap_HighResolution_492048001_492307201_4FGL_J2123.6+0535_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-02', comment='SUCCESS', photon_flux='1.88e-07', energy_flux2='5.90e-05', photon_flux_error='1.55e-07', dlogl='1.19e-02', energy_flux='6.24e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-09-26 13:05:39.562975', photon_index_error2='0.67', photon_index2='2.49', ts='2.29', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='5.08e-07', energy_flux_error2='5.19e-05', EG='0.75', time_epoch_completed='1632686739.56', return_code='0', job_id='478881', GAL2='0.82', EG2='0.73', return_code2='0', energy_flux_error='5.17e-05', photon_flux_error2='1.81e-07', ts2='2.31', photon_index='2.39' WHERE bin_id='975' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:05:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 478881: <4FGL_J2123.6+0535_daily_bin975> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin975> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:27 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:55:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:55:52 2021
Terminated at Sun Sep 26 13:05:40 2021
Results reported at Sun Sep 26 13:05:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin975 320.921 5.592 492048001 492307201 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 :                                   466.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            613 sec.

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

