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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin955
RA = 320.921, Dec = 5.592
tmin = 486864001, tmax = 487123201
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='478852', job_status='RUN', time_executed='2021-09-26 12:56:32.021461', time_epoch_executed='1632686192.02' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478852/ft1_4FGL_J2123.6+0535_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478852/ft2_4FGL_J2123.6+0535_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478852/ft1_4FGL_J2123.6+0535_daily_bin955.fits outfile=/scratch/kocevski/478852/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin955.fits ra=320.921 dec=5.592 rad=12.0 tmin=486864001.0 tmax=487123201.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.53
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478852/ft2_4FGL_J2123.6+0535_daily_bin955.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/478852/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin955.fits evtable="EVENTS" outfile="/scratch/kocevski/478852/ft1_filtered_4FGL_J2123.6+0535_daily_bin955.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.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478852/ft1_filtered_4FGL_J2123.6+0535_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/478852/ft2_4FGL_J2123.6+0535_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/478852/ltcube_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.fits outfile=/scratch/kocevski/478852/expmap_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.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/478852/ltcube_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.fits
.....................!
real 192.59
user 186.38
sys 5.70

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/478852/ft1_filtered_4FGL_J2123.6+0535_daily_bin955.fits scfile=/scratch/kocevski/478852/ft2_4FGL_J2123.6+0535_daily_bin955.fits outfile=/scratch/kocevski/478852/cmap_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478852/ft1_filtered_4FGL_J2123.6+0535_daily_bin955.fits scfile=/scratch/kocevski/478852/ft2_4FGL_J2123.6+0535_daily_bin955.fits outfile=/scratch/kocevski/478852/cmap_HighResolution_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.1275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25591E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59397E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29626E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .30615       1.0000         .10000E-03   10000.    
    20 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6681       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15389E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15018       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4152       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75606       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=   7268.814     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3207 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.327       -.51765E-05** at limit **
   2  norm          8.1261        9.3413       -.27139E-06   -.95745E-04
   3  Prefactor     3.6468        3.7100       -.24518E-06   -.44229E-03
   4  Prefactor     .10002E-03    189.56        .77693E-04** at limit **
   5  Prefactor     .10000E-03    5.0819       -.23556E-07** at limit **
   6  Prefactor     42.469        25.552       -.57252E-05   -.10335E-03
   7  Prefactor     .10000E-03    8.6866        .31727E-06** at limit **
   8  Prefactor     .10001E-03    95.047        .83433E-04** at limit **
   9  Prefactor     58.597        63.587       -.57271E-05   -.68710E-04
  10  Prefactor     .10000E-03    7.3650       -.48322E-07** at limit **
  11  Prefactor     .10000E-03    16.840        .22117E-05** at limit **
  12  Prefactor     .10014E-03    2.5428        .15655E-06** at limit **
  13  Prefactor     .10000E-03    5.6545       -.69585E-06** at limit **
  14  Prefactor     .10000E-03    .76843        .58685E-07** at limit **
  15  Prefactor     .10000E-03    12.907       -.95334E-05** at limit **
  16  Prefactor     22.098        27.485       -.17885E-04    .69384E-05
  17  Prefactor     .10000E-03    44.472        .11377E-04** at limit **
  18  Prefactor     .10000E-03    12.443        .88957E-05** at limit **
  19  norm          .31791        1.2628       -.77929E-06    .21610E-03
  20  norm          .10000E-03    10.133       -.84028E-06** at limit **
  21  Prefactor     2.6693        5.3379       -.84897E-06   -.28488E-03
  22  Prefactor     .10000E-03    4.8413        .16975E-07** at limit **
  23  Prefactor     .10003E-03    81.948       -.84890E-04** at limit **
  24  Prefactor     .10656E-03    26.588       -.10895E-05** at limit **
  25  Normalizat    1.4148        .23448        .38128E-05    .21398E-03
  26  Prefactor     .75609        .99056E-01   -.37924E-06    .28455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.12614
  Prefactor  = 3.64685
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 42.4694
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 58.5966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.31791
  norm       = 0.0001
  Prefactor  = 2.66929
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.000106564
  Normalizat = 1.41483
  Prefactor  = 0.756095
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.814     FROM HESSE     STATUS=OK           458 CALLS     3665 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.1261        9.3291        .14063E-03   -1.5138    
   3  Prefactor     3.6468        3.7022        .16063E-03   -1.5326    
   4  Prefactor     .10002E-03    194.58        .42911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.469        25.644        .61522E-04   -1.4404    
   7  Prefactor     .10000E-03    8.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    96.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.597        63.878        .52419E-04   -1.4175    
  10  Prefactor     .10000E-03    7.3776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10014E-03    40.961        .25492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.390        .38147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .78681        .72953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.098        27.539        .85246E-04   -1.4767    
  17  Prefactor     .10000E-03    44.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .31791        5.1457        .17443E-02   -1.5595    
  20  norm          .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6693        5.3214        .24951E-03   -1.5381    
  22  Prefactor     .10000E-03    4.8550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10003E-03    83.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10656E-03    29.516        .11921       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4148        .28139        .30085E-03   -.80201    
  26  Prefactor     .75609        .11988        .18021E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56807e-09
Minuit parameter uncertainties:
  1  6.94525e-06
  2  9.33077
  3  3.70247
  4  0.00361707
  5  1.23113e-05
  6  25.6505
  7  3.25973e-05
  8  0.00176964
  9  63.9524
  10  2.45717e-06
  11  3.36107e-05
  12  0.00475949
  13  0.00032085
  14  5.13745e-06
  15  1.24108e-05
  16  27.5553
  17  1.3808e-05
  18  5.85497e-06
  19  2.55789
  20  1.01689e-05
  21  5.32236
  22  4.52757e-07
  23  0.00337307
  24  0.0278517
  25  0.281703
  26  0.119926
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.457e-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:  7.561e-01  1.199e-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.415e+00  2.817e-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: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478852/likelihoodResults_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.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) = 7268.81440488
delta logL = -0.00064555433346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7268.81376222
delta logL = -2.89579475066e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3740       1.0000          .0000       10.000    
     3 'Normalizat'    1.4147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75601       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=   7268.814     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10190E-03    122.34        .18142E-02** at limit **
   2  Index         2.2877        6.0738        .50000        .13894E-04
   3  Normalizat    1.4148        .22555E-01    .30085E-03   -.23240E-04
   4  Prefactor     .75610        .10291E-01    .18021E-03    .45231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101901
  Index      = 2.28768
  Normalizat = 1.41483
  Prefactor  = 0.756095
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.814     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10190E-03    491.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2877        8.8337        .50000       -.57337    
   3  Normalizat    1.4148        .48338E-01    .12034E-04   -.80201    
   4  Prefactor     .75610        .22054E-01    .72086E-05   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7144e-08
Minuit parameter uncertainties:
  1  0.0616771
  2  1178.06
  3  0.0483391
  4  0.0220542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478852': 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) = 7268.81375906
delta logL = 2.63878064288e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.019e-04  6.168e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.288e+00  1.178e+03  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:  7.561e-01  2.205e-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:  1.415e+00  4.834e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/478852/cmap_HighResolution_486864001_487123201_4FGL_J2123.6+0535_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-26 13:10:38.973319', job_id='478852', GAL2='0.76', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632687038.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='955' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 478852: <4FGL_J2123.6+0535_daily_bin955> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin955> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:25 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:55:46 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:46 2021
Terminated at Sun Sep 26 13:10:39 2021
Results reported at Sun Sep 26 13:10:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin955 320.921 5.592 486864001 487123201 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 :                                   845.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            914 sec.

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

