/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 21 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin244
RA = 320.921, Dec = 5.592
tmin = 302572801, tmax = 302832001
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='473598', job_status='RUN', time_executed='2021-09-26 12:38:43.013928', time_epoch_executed='1632685123.01' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473598/ft1_4FGL_J2123.6+0535_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473598/ft2_4FGL_J2123.6+0535_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473598/ft1_4FGL_J2123.6+0535_daily_bin244.fits outfile=/scratch/kocevski/473598/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin244.fits ra=320.921 dec=5.592 rad=12.0 tmin=302572801.0 tmax=302832001.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.49
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473598/ft1_filtered_4FGL_J2123.6+0535_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/473598/ft2_4FGL_J2123.6+0535_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/473598/ltcube_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.fits outfile=/scratch/kocevski/473598/expmap_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.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/473598/ltcube_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.fits
.....................!
real 190.64
user 185.78
sys 4.52

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/473598/ft1_filtered_4FGL_J2123.6+0535_daily_bin244.fits scfile=/scratch/kocevski/473598/ft2_4FGL_J2123.6+0535_daily_bin244.fits outfile=/scratch/kocevski/473598/cmap_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473598/ft1_filtered_4FGL_J2123.6+0535_daily_bin244.fits scfile=/scratch/kocevski/473598/ft2_4FGL_J2123.6+0535_daily_bin244.fits outfile=/scratch/kocevski/473598/cmap_HighResolution_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .17980E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15699E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2512       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4889       1.0000         .10000E-03   10000.    
    20 'norm      '    38.288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8540       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.042       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91445       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=   6766.840     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3068 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.305        .48427E-06** at limit **
   2  norm          .10000E-03    4.6553        .30855E-07** at limit **
   3  Prefactor     .10000E-03    7.4303        .19151E-06** at limit **
   4  Prefactor     .10000E-03    18.828        .32939E-05** at limit **
   5  Prefactor     14.648        16.010        .49706E-06    .61934E-04
   6  Prefactor     21.122        25.055        .60907E-06    .50011E-04
   7  Prefactor     17.265        20.023        .25297E-06    .40247E-04
   8  Prefactor     .10000E-03    21.802        .19350E-06** at limit **
   9  Prefactor     .10000E-03    147.17       -.13154E-05** at limit **
  10  Prefactor     4.2404        57.258       -.26977E-05   -.38117E-04
  11  Prefactor     .10000E-03    15.873       -.23268E-05** at limit **
  12  Prefactor     .10000E-03    3.5767       -.12717E-06** at limit **
  13  Prefactor     7.7960        7.0502        .10232E-05   -.11713E-02
  14  Prefactor     5.0869        2.9585        .26615E-07   -.21298E-04
  15  Prefactor     .10000E-03    22.511       -.12271E-05** at limit **
  16  Prefactor     .10000E-03    32.391        .50647E-05** at limit **
  17  Prefactor     .10000E-03    21.057        .15009E-05** at limit **
  18  Prefactor     .10001E-03    27.254       -.65007E-05** at limit **
  19  norm          1.4895        1.5880        .24780E-07   -.13224E-05
  20  norm          38.291        23.204       -.48275E-06   -.53195E-04
  21  Prefactor     6.8552        8.1844        .11697E-05   -.84603E-03
  22  Prefactor     13.044        14.041       -.87451E-07   -.13047E-04
  23  Prefactor     .10000E-03    6.7152       -.17734E-07** at limit **
  24  Prefactor     .10000E-03    8.8163       -.22306E-06** at limit **
  25  Normalizat    1.0637        .25720       -.73331E-07    .13084E-05
  26  Prefactor     .91461        .10995       -.23667E-06    .51838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.6482
  Prefactor  = 21.1218
  Prefactor  = 17.2654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24039
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.79599
  Prefactor  = 5.0869
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.48954
  norm       = 38.2907
  Prefactor  = 6.85523
  Prefactor  = 13.0436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06375
  Prefactor  = 0.914606
 **********
 **   18 **HESSE 
 **********

 FCN=   6766.840     FROM HESSE     STATUS=OK           452 CALLS     3520 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6800        .17331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.648        16.028        .10464E-03   -1.4942    
   6  Prefactor     21.122        25.049        .87132E-04   -1.4788    
   7  Prefactor     17.265        20.018        .96399E-04   -1.4877    
   8  Prefactor     .10000E-03    21.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    149.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2404        58.344        .19542E-03   -1.5296    
  11  Prefactor     .10000E-03    16.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6166        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7960        8.1776        .71805E-03   -1.5149    
  14  Prefactor     5.0869        2.9629        .10330E-03   -1.5257    
  15  Prefactor     .10000E-03    22.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    28.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4895        1.5800        .10199E-03   -1.5464    
  20  norm          38.291        23.252        .64774E-04   -1.4470    
  21  Prefactor     6.8552        9.1608        .76626E-03   -1.5184    
  22  Prefactor     13.044        14.063        .11092E-03   -1.4985    
  23  Prefactor     .10000E-03    6.7213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.8218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0637        .31224        .35199E-03   -.90924    
  26  Prefactor     .91461        .13323        .17264E-03   -.95633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67228e-09
Minuit parameter uncertainties:
  1  3.91535e-05
  2  2.56873e-07
  3  8.15343e-06
  4  0.000352992
  5  16.0325
  6  25.0613
  7  20.0256
  8  1.32619e-05
  9  0.000339081
  10  31.4949
  11  0.000228505
  12  6.57146e-06
  13  8.17882
  14  2.96298
  15  0.000136304
  16  0.000708414
  17  0.000169875
  18  0.000835502
  19  1.58
  20  23.2578
  21  9.16267
  22  14.0663
  23  5.68908e-07
  24  1.60119e-05
  25  0.312786
  26  0.133281
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.240e+00  3.149e+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.146e-01  1.333e-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.064e+00  3.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/473598/likelihoodResults_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.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) = 6765.73084906
delta logL = 1.10877977395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6765.71223053
delta logL = 1.12739829499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47368       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9357       1.0000          .0000       10.000    
     3 'Normalizat'    .89753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96351       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=   6765.712     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      314 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47010        4.2171        .84718E-02   -.11746E-03
   2  Index         4.9396        2.1712        .11657        .54475E-04
   3  Normalizat    .89818        .56948E-01    .85746E-01   -.25653E-04
   4  Prefactor     .96327        .26197E-01    .45809E-01   -.11667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470097
  Index      = 4.93962
  Normalizat = 0.898179
  Prefactor  = 0.963272
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.712     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      347 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47010        10.780        .38402E-03   -1.5571    
   2  Index         4.9396        3.9438        .41995E-02   -.12076E-01
   3  Normalizat    .89818        .22401        .37966E-03   -.96524    
   4  Prefactor     .96327        .10076        .16864E-03   -.93964    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4182e-11
Minuit parameter uncertainties:
  1  4.50265
  2  4.54411
  3  0.224246
  4  0.100783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473598': 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) = 6765.71222503
delta logL = 1.12740380431

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.701e-01  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  4.940e+00  4.544e+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.633e-01  1.008e-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.982e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 320.921 5.592
Photon Index (Free Index): 4.94 +/- 4.54
Photon Flux (Free Index): 1.19e-07 +/- 8.25e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.36e-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/473598/cmap_HighResolution_302572801_302832001_4FGL_J2123.6+0535_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='1.13e+00', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-26 12:52:05.484231', photon_index_error2='4.54', photon_index2='4.94', ts='0.02', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.36e-05', EG='1.06', time_epoch_completed='1632685925.48', return_code='0', job_id='473598', GAL2='0.96', EG2='0.90', return_code2='102', photon_flux_error2='8.25e-08', ts2='2.58', photon_index='2.39' WHERE bin_id='244' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 473598: <4FGL_J2123.6+0535_daily_bin244> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin244> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:35:39 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:38:13 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:38:13 2021
Terminated at Sun Sep 26 12:52:05 2021
Results reported at Sun Sep 26 12:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin244 320.921 5.592 302572801 302832001 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            986 sec.

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

