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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1216
RA = 320.921, Dec = 5.592
tmin = 554515201, tmax = 554774401
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='480281', job_status='RUN', time_executed='2021-09-26 13:03:35.922878', time_epoch_executed='1632686615.92' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480281/ft1_4FGL_J2123.6+0535_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480281/ft1_4FGL_J2123.6+0535_daily_bin1216.fits outfile=/scratch/kocevski/480281/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1216.fits ra=320.921 dec=5.592 rad=12.0 tmin=554515201.0 tmax=554774401.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.46
user 2.99
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480281/ft1_filtered_4FGL_J2123.6+0535_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/480281/ltcube_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.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/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits
.....................!
real 10.57
user 10.25
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480281/ft1_filtered_4FGL_J2123.6+0535_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/480281/ltcube_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.fits outfile=/scratch/kocevski/480281/expmap_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.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/480281/ltcube_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.fits
.....................!
real 161.79
user 156.23
sys 5.11

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/480281/ft1_filtered_4FGL_J2123.6+0535_daily_bin1216.fits scfile=/scratch/kocevski/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits outfile=/scratch/kocevski/480281/cmap_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480281/ft1_filtered_4FGL_J2123.6+0535_daily_bin1216.fits scfile=/scratch/kocevski/480281/ft2_4FGL_J2123.6+0535_daily_bin1216.fits outfile=/scratch/kocevski/480281/cmap_HighResolution_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.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.49
user 0.30
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    160.84       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.205       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19973E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    442.13       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    236.48       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38807E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    447.33       1.0000         .10000E-03   10000.    
    19 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14929E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .52298       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63314       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=   1036.429     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3204 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    112.44       -.40110E-06** at limit **
   2  norm          12.913        43.883       -.48871E-05    .23487E-04
   3  Prefactor     6.3206        9.4183        .14080E-06    .66974E-04
   4  Prefactor     82.873        142.76       -.17962E-05    .20303E-04
   5  Prefactor     160.92        281.83        .21165E-05    .15833E-05
   6  Prefactor     21.003        216.65       -.10085E-04   -.16446E-04
   7  Prefactor     .10001E-03    221.42       -.14961E-04** at limit **
   8  Prefactor     .10000E-03    156.27       -.98641E-06** at limit **
   9  Prefactor     .10000E-03    199.34        .54488E-06** at limit **
  10  Prefactor     .10000E-03    50.968       -.11795E-05** at limit **
  11  Prefactor     .10000E-03    69.296        .40398E-05** at limit **
  12  Prefactor     .10000E-03    126.66       -.73837E-05** at limit **
  13  Prefactor     441.28        964.27       -.10828E-04   -.10263E-04
  14  Prefactor     .10000E-03    6.2234        .61172E-05** at limit **
  15  Prefactor     236.55        148.90        .12310E-05   -.80132E-04
  16  Prefactor     12.699        185.33       -.23483E-05    .11168E-05
  17  Prefactor     .10001E-03    1228.4       -.87523E-05** at limit **
  18  Prefactor     447.10        359.79       -.79255E-06   -.28801E-04
  19  norm          .10000E-03    15.715       -.11041E-05** at limit **
  20  norm          .10000E-03    75.742       -.10202E-05** at limit **
  21  Prefactor     .10000E-03    26.523       -.18768E-05** at limit **
  22  Prefactor     .10000E-03    183.56        .47929E-05** at limit **
  23  Prefactor     .10000E-03    60.360        .67250E-07** at limit **
  24  Prefactor     .10000E-03    63.501        .13299E-06** at limit **
  25  Normalizat    .52176        .68209       -.36113E-04   -.22043E-04
  26  Prefactor     .63364        .27314        .14696E-04   -.23420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.9131
  Prefactor  = 6.32063
  Prefactor  = 82.8729
  Prefactor  = 160.922
  Prefactor  = 21.0033
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 441.282
  Prefactor  = 0.000100002
  Prefactor  = 236.552
  Prefactor  = 12.6988
  Prefactor  = 0.000100013
  Prefactor  = 447.103
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.521756
  Prefactor  = 0.633637
 **********
 **   18 **HESSE 
 **********

 FCN=   1036.429     FROM HESSE     STATUS=OK           440 CALLS     3644 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.913        43.889        .11138E-03   -1.4989    
   3  Prefactor     6.3206        9.3747        .10747E-03   -1.5205    
   4  Prefactor     82.873        142.06        .44124E-04   -1.3885    
   5  Prefactor     160.92        281.80        .15899E-03   -1.3164    
   6  Prefactor     21.003        217.20        .86981E-04   -1.4791    
   7  Prefactor     .10001E-03    223.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    156.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    199.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    127.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     441.28        964.14        .97291E-04   -1.1475    
  14  Prefactor     .10000E-03    6.7105        .16070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     236.55        148.13        .13162E-03   -1.2620    
  16  Prefactor     12.699        182.21        .11306E-03   -1.4995    
  17  Prefactor     .10001E-03    1230.4        .21277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     447.10        359.36        .96751E-04   -1.1447    
  19  norm          .10000E-03    15.725        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    75.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.563        .16202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    190.09        .42025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    63.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .52176        .69924        .42538E-03   -1.1142    
  26  Prefactor     .63364        .28345        .16115E-03   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99044e-10
Minuit parameter uncertainties:
  1  0.000252628
  2  43.9992
  3  9.37684
  4  142.648
  5  284.206
  6  135.724
  7  0.00246912
  8  0.000219313
  9  0.00065179
  10  0.000138593
  11  0.000476042
  12  0.000970933
  13  1003.61
  14  0.000224561
  15  148.363
  16  96.5602
  17  0.00829437
  18  361.198
  19  4.89887e-05
  20  0.000285629
  21  0.000124068
  22  4.36121e-06
  23  0.000162945
  24  0.000132814
  25  0.711558
  26  0.284096
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.386e-04  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:  6.336e-01  2.841e-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:  5.218e-01  7.116e-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: 4.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480281/likelihoodResults_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.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) = 1036.4294845
delta logL = -9.14701390684e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1036.42939397
delta logL = -9.32938519327e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6913       1.0000          .0000       10.000    
     3 'Normalizat'    .52161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63369       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=   1036.429     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      281 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10275E-03    4.4285        .16163E-01** at limit **
   2  Index         3.5798        8.0182        .50000        .50113E-05
   3  Normalizat    .52175        .53290E-02    .42549E-03    .30847E-04
   4  Prefactor     .63364        .22387E-02    .16114E-03    .58655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102748
  Index      = 3.5798
  Normalizat = 0.521747
  Prefactor  = 0.633642
 **********
 **   18 **HESSE 
 **********

 FCN=   1036.429     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10275E-03    1617.3        .32965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5798        6.9713        .50000       -.28801    
   3  Normalizat    .52175        .11101        .17020E-04   -1.1142    
   4  Prefactor     .63364        .46580E-01    .32227E-04   -1.0619    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8268e-07
Minuit parameter uncertainties:
  1  0.137207
  2  2707.06
  3  0.111054
  4  0.0465824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480281': 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) = 1036.42939387
delta logL = -8.33702188174e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.027e-04  1.372e-01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.580e+00  2.707e+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:  6.336e-01  4.658e-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:  5.217e-01  1.111e-01  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/480281/cmap_HighResolution_554515201_554774401_4FGL_J2123.6+0535_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-02', job_status='DONE', photon_flux_upper_limit='4.41e-07', time_completed='2021-09-26 13:09:06.083994', job_id='480281', GAL2='0.63', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632686946.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='-8.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1216' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 480281: <4FGL_J2123.6+0535_daily_bin1216> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1216> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:18 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:00:25 2021
Terminated at Sun Sep 26 13:09:06 2021
Results reported at Sun Sep 26 13:09:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1216 320.921 5.592 554515201 554774401 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 :                                   327.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            528 sec.

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

