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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin177
RA = 320.921, Dec = 5.592
tmin = 285206401, tmax = 285465601
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='473493', job_status='RUN', time_executed='2021-09-26 12:38:16.012234', time_epoch_executed='1632685096.01' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473493/ft1_4FGL_J2123.6+0535_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473493/ft1_4FGL_J2123.6+0535_daily_bin177.fits outfile=/scratch/kocevski/473493/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin177.fits ra=320.921 dec=5.592 rad=12.0 tmin=285206401.0 tmax=285465601.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.52
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/473493/ltcube_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.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/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits
.....................!
real 15.46
user 15.03
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/473493/ltcube_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits outfile=/scratch/kocevski/473493/expmap_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.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/473493/ltcube_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits
.....................!
real 192.92
user 187.44
sys 4.92

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/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits scfile=/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits outfile=/scratch/kocevski/473493/cmap_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits scfile=/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits outfile=/scratch/kocevski/473493/cmap_HighResolution_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.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.58
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits', '/scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits', expMap='/scratch/kocevski/473493/expmap_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits', expCube='/scratch/kocevski/473493/ltcube_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473493/Model_4FGL_J2123.6+0535_daily_bin177.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/473493/ft1_filtered_4FGL_J2123.6+0535_daily_bin177.fits
Spacecraft file(s): /scratch/kocevski/473493/ft2_4FGL_J2123.6+0535_daily_bin177.fits
Exposure map: /scratch/kocevski/473493/expmap_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits
Exposure cube: /scratch/kocevski/473493/ltcube_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473493/Model_4FGL_J2123.6+0535_daily_bin177.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5957.08451416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    18.869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11531E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4027       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3446       1.0000         .10000E-03   10000.    
    19 'norm      '    .39349E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.174       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69923       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1183       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=   5953.448     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2633 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.585        .27903E-04** at limit **
   2  norm          18.871        11.156        .20398E-06   -.12235E-03
   3  Prefactor     .10000E-03    4.6835        .17894E-07** at limit **
   4  Prefactor     32.563        72.329        .48762E-05    .88306E-05
   5  Prefactor     .10000E-03    28.159       -.42982E-05** at limit **
   6  Prefactor     51.627        31.776        .11143E-05   -.14884E-03
   7  Prefactor     .10000E-03    70.181        .20738E-04** at limit **
   8  Prefactor     .10000E-03    16.139        .43646E-05** at limit **
   9  Prefactor     .10000E-03    19.420       -.13341E-05** at limit **
  10  Prefactor     .10000E-03    7.8020       -.70596E-07** at limit **
  11  Prefactor     .10000E-03    92.419       -.48535E-04** at limit **
  12  Prefactor     .10018E-03    4.6573       -.26788E-05** at limit **
  13  Prefactor     21.601        12.211        .77794E-06    .61239E-03
  14  Prefactor     2.4007        2.5386       -.43165E-06   -.18939E-02
  15  Prefactor     36.661        41.283        .16082E-05    .42467E-04
  16  Prefactor     .10000E-03    21.453        .11183E-04** at limit **
  17  Prefactor     .10000E-03    46.985        .51083E-05** at limit **
  18  Prefactor     8.3717        139.02        .74894E-04    .59806E-04
  19  norm          .43216E-01    1.1961       -.32091E-06    .14562E-03
  20  norm          .10000E-03    33.920       -.19810E-04** at limit **
  21  Prefactor     17.634        13.590       -.56057E-05   -.49236E-04
  22  Prefactor     .10000E-03    5.5475        .34138E-07** at limit **
  23  Prefactor     29.181        26.616        .16534E-05    .95197E-05
  24  Prefactor     .10000E-03    25.588        .79000E-05** at limit **
  25  Normalizat    .69912        .31401       -.66206E-05    .27059E-03
  26  Prefactor     1.1183        .13346        .93156E-06    .52911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.8705
  Prefactor  = 0.0001
  Prefactor  = 32.5626
  Prefactor  = 0.0001
  Prefactor  = 51.6269
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100183
  Prefactor  = 21.6011
  Prefactor  = 2.40071
  Prefactor  = 36.6615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.37169
  norm       = 0.0432158
  norm       = 0.000100001
  Prefactor  = 17.6344
  Prefactor  = 0.0001
  Prefactor  = 29.181
  Prefactor  = 0.0001
  Normalizat = 0.699124
  Prefactor  = 1.11826
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.448     FROM HESSE     STATUS=OK           454 CALLS     3087 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.871        11.152        .92203E-04   -1.4839    
   3  Prefactor     .10000E-03    4.7452        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.563        72.257        .70223E-04   -1.4566    
   5  Prefactor     .10000E-03    28.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.627        31.644        .55817E-04   -1.4270    
   7  Prefactor     .10000E-03    70.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    91.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    17.722        .31248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.601        12.013        .86182E-04   -1.4778    
  14  Prefactor     2.4007        2.5410        .60089E-03   -1.5398    
  15  Prefactor     36.661        41.240        .66192E-04   -1.4496    
  16  Prefactor     .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3717        138.27        .13878E-03   -1.5129    
  19  norm          .43216E-01    25.310        .15942E-02   -1.5666    
  20  norm          .10000E-03    34.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.634        13.534        .95373E-04   -1.4868    
  22  Prefactor     .10000E-03    5.5563        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.181        26.607        .74175E-04   -1.4627    
  24  Prefactor     .10000E-03    25.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .69912        .34291        .44948E-03   -1.0393    
  26  Prefactor     1.1183        .14901        .16826E-03   -.88885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19337e-08
Minuit parameter uncertainties:
  1  6.45165e-05
  2  11.1535
  3  6.55184e-06
  4  72.4522
  5  0.000168432
  6  31.6546
  7  0.000491332
  8  1.52023e-05
  9  3.29216e-06
  10  2.31091e-06
  11  0.000537731
  12  0.00359971
  13  12.0148
  14  2.54109
  15  41.272
  16  2.54492e-05
  17  2.65878e-05
  18  68.2314
  19  2.09015
  20  0.000455858
  21  13.5368
  22  2.35286e-06
  23  26.6181
  24  2.07538e-05
  25  0.343968
  26  0.149066
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.311e-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:  1.118e+00  1.491e-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:  6.991e-01  3.440e-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: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473493/likelihoodResults_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.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) = 5953.44840638
delta logL = -0.000609098292443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5953.44779728
delta logL = -3.91082721762e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3718       1.0000          .0000       10.000    
     3 'Normalizat'    .69913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1183       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=   5953.448     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      258 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.276        .18142E-01** at limit **
   2  Index         1.8625        5.9300        .50000        .88539E-07
   3  Normalizat    .69912        .10907E-01    .44948E-03    .22258E-04
   4  Prefactor     1.1183        .50989E-02    .16826E-03    .64931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86253
  Normalizat = 0.69912
  Prefactor  = 1.11826
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.448     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    228.12        .23431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8625        8.7754        .50000       -.67833    
   3  Normalizat    .69912        .33610E-01    .17979E-04   -1.0393    
   4  Prefactor     1.1183        .15712E-01    .67305E-05   -.88885    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.45823e-10
Minuit parameter uncertainties:
  1  3.39095e-05
  2  894.4
  3  0.0336106
  4  0.0157124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473493': 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) = 5953.44779604
delta logL = 1.23651716422e-06

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.391e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.863e+00  8.944e+02  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:  1.118e+00  1.571e-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:  6.991e-01  3.361e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/473493/cmap_HighResolution_285206401_285465601_4FGL_J2123.6+0535_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-26 12:49:57.145021', job_id='473493', GAL2='1.12', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632685797.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='177' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:49:57 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin177 320.921 5.592 285206401 285465601 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 :                                   698.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            867 sec.

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

