/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 91 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin940
RA = 320.921, Dec = 5.592
tmin = 482976001, tmax = 483235201
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='478828', job_status='RUN', time_executed='2021-09-26 12:57:21.465665', time_epoch_executed='1632686241.47' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478828/ft1_4FGL_J2123.6+0535_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478828/ft1_4FGL_J2123.6+0535_daily_bin940.fits outfile=/scratch/kocevski/478828/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin940.fits ra=320.921 dec=5.592 rad=12.0 tmin=482976001.0 tmax=483235201.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 4.20
user 3.93
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478828/ft1_filtered_4FGL_J2123.6+0535_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/478828/ltcube_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.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/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits
.....................!
real 13.95
user 13.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478828/ft1_filtered_4FGL_J2123.6+0535_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/478828/ltcube_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.fits outfile=/scratch/kocevski/478828/expmap_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.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/478828/ltcube_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.fits
.....................!
real 191.40
user 186.09
sys 4.72

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/478828/ft1_filtered_4FGL_J2123.6+0535_daily_bin940.fits scfile=/scratch/kocevski/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits outfile=/scratch/kocevski/478828/cmap_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478828/ft1_filtered_4FGL_J2123.6+0535_daily_bin940.fits scfile=/scratch/kocevski/478828/ft2_4FGL_J2123.6+0535_daily_bin940.fits outfile=/scratch/kocevski/478828/cmap_HighResolution_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1236       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.508       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4555       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27442E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.013       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1797       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86757       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=   7519.615     FROM MIGRAD    STATUS=CONVERGED   1131 CALLS     3176 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    295.97        .36285E-03** at limit **
   2  norm          2.1236        6.6187        .28298E-03   -.12912E-03
   3  Prefactor     .10000E-03    1.3603        .98617E-03** at limit **
   4  Prefactor     .10000E-03    33.336        .18142E-02** at limit **
   5  Prefactor     14.510        16.156        .10516E-03   -.13730E-04
   6  Prefactor     3.4514        49.148        .10878E-02    .32645E-04
   7  Prefactor     .10000E-03    59.513        .18142E-02** at limit **
   8  Prefactor     .10000E-03    15.267        .18142E-02** at limit **
   9  Prefactor     .10000E-03    14.807        .18142E-02** at limit **
  10  Prefactor     .10000E-03    45.827        .18142E-02** at limit **
  11  Prefactor     .10000E-03    12.197        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.5136        .10398E-02** at limit **
  13  Prefactor     .10000E-03    7.0287        .36285E-03** at limit **
  14  Prefactor     .65356        1.3076        .15513E-02    .52662E-02
  15  Prefactor     .10000E-03    139.42        .36285E-03** at limit **
  16  Prefactor     .10000E-03    28.658        .18142E-02** at limit **
  17  Prefactor     .10000E-03    38.144        .18142E-02** at limit **
  18  Prefactor     .10000E-03    42.493        .14902    ** at limit **
  19  norm          .10001E-03    3.6867        .16444E-02** at limit **
  20  norm          10.189        20.598        .12546E-03    .96872E-04
  21  Prefactor     .10000E-03    2.5376        .13475E-02** at limit **
  22  Prefactor     .10000E-03    7.2330        .18142E-02** at limit **
  23  Prefactor     21.011        19.629        .87377E-04    .30186E-04
  24  Prefactor     .10000E-03    17.144        .18142E-02** at limit **
  25  Normalizat    1.1794        .27416        .32491E-03    .12723E-03
  26  Prefactor     .86766        .12226        .17013E-03    .95478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.12357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5099
  Prefactor  = 3.45138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.653562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.000100007
  norm       = 10.1894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0107
  Prefactor  = 0.0001
  Normalizat = 1.17941
  Prefactor  = 0.867655
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.615     FROM HESSE     STATUS=OK           444 CALLS     3620 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    295.99        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1236        6.6181        .11319E-04   -1.5417    
   3  Prefactor     .10000E-03    1.3603        .19723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.510        16.156        .42063E-05   -1.4946    
   6  Prefactor     3.4514        49.038        .21756E-03   -1.5336    
   7  Prefactor     .10000E-03    59.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.845        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5137        .20796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0291        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65356        1.3062        .31026E-03   -1.5546    
  15  Prefactor     .10000E-03    139.43        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.994        .14783       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    3.7099        .32889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.189        20.595        .50182E-05   -1.5069    
  21  Prefactor     .10000E-03    2.5376        .26950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.011        19.628        .34951E-05   -1.4791    
  24  Prefactor     .10000E-03    17.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1794        .27435        .12996E-04   -.87242    
  26  Prefactor     .86766        .12238        .34026E-04   -.97281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91601e-09
Minuit parameter uncertainties:
  1  0.00033787
  2  6.62038
  3  3.34523e-07
  4  0.000139709
  5  16.161
  6  26.0445
  7  0.000130334
  8  4.36353e-05
  9  3.54173e-05
  10  9.13861e-05
  11  9.10934e-07
  12  6.93353e-08
  13  1.80633e-06
  14  1.30621
  15  0.00019203
  16  5.42632e-05
  17  1.05376e-05
  18  0.000896902
  19  0.000311472
  20  20.6091
  21  1.40485e-07
  22  2.22637e-06
  23  19.6336
  24  1.90232e-05
  25  0.274689
  26  0.122418
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.139e-05  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.677e-01  1.224e-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.179e+00  2.747e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478828/likelihoodResults_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.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) = 7519.61545798
delta logL = -0.000103898927591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7519.615354
delta logL = 8.20627974463e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6897       1.0000          .0000       10.000    
     3 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86766       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=   7519.615     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      256 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.981        .90712E-02** at limit **
   2  Index         2.6804        5.1115        .50000        .15596E-05
   3  Normalizat    1.1794        .40319E-02    .73418E-01    .30044E-04
   4  Prefactor     .86766        .18504E-02    .44591E-01    .19759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68038
  Normalizat = 1.1794
  Prefactor  = 0.867656
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.615     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1433.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6804        8.6128        .50000       -.48242    
   3  Normalizat    1.1794        .31220E-01    .32491E-03   -.87242    
   4  Prefactor     .86766        .14343E-01    .17013E-03   -.97281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02097e-07
Minuit parameter uncertainties:
  1  9.50464e-05
  2  910.175
  3  0.0312201
  4  0.0143432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478828': 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) = 7519.61535399
delta logL = 8.71050360729e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.505e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.680e+00  9.102e+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:  8.677e-01  1.434e-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.179e+00  3.122e-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/478828/cmap_HighResolution_482976001_483235201_4FGL_J2123.6+0535_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-26 13:11:48.469771', job_id='478828', GAL2='0.87', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632687108.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='8.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='940' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 478828: <4FGL_J2123.6+0535_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin940 320.921 5.592 482976001 483235201 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            988 sec.

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

