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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1185
RA = 320.921, Dec = 5.592
tmin = 546480001, tmax = 546739201
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='479196', job_status='RUN', time_executed='2021-09-26 12:57:47.781013', time_epoch_executed='1632686267.78' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479196/ft1_4FGL_J2123.6+0535_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479196/ft2_4FGL_J2123.6+0535_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479196/ft1_4FGL_J2123.6+0535_daily_bin1185.fits outfile=/scratch/kocevski/479196/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1185.fits ra=320.921 dec=5.592 rad=12.0 tmin=546480001.0 tmax=546739201.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.22
user 3.68
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479196/ft1_filtered_4FGL_J2123.6+0535_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/479196/ft2_4FGL_J2123.6+0535_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/479196/ltcube_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.fits outfile=/scratch/kocevski/479196/expmap_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.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/479196/ltcube_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.fits
.....................!
real 192.36
user 186.29
sys 5.27

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/479196/ft1_filtered_4FGL_J2123.6+0535_daily_bin1185.fits scfile=/scratch/kocevski/479196/ft2_4FGL_J2123.6+0535_daily_bin1185.fits outfile=/scratch/kocevski/479196/cmap_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479196/ft1_filtered_4FGL_J2123.6+0535_daily_bin1185.fits scfile=/scratch/kocevski/479196/ft2_4FGL_J2123.6+0535_daily_bin1185.fits outfile=/scratch/kocevski/479196/cmap_HighResolution_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.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.39
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 476.202183502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 475.530385332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3851       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29867E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    124.92       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21293E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14252E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5970       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28132E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2774       1.0000         .10000E-03   10000.    
    19 'norm      '    .10444E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .27018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83465E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29936E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .39574E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.3994       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .26700       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   475.5208     FROM MIGRAD    STATUS=CONVERGED    228 CALLS      438 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3851        1.0113         .0000         .0000    
   2  norm          4.3602        1.0067         .0000         .0000    
   3  Prefactor     29.711        .99208        .28733E-05    .23178E-04
   4  Prefactor     .10000E-03    .21028       -.22050E-04** at limit **
   5  Prefactor     4.8763        1.0054         .0000         .0000    
   6  Prefactor     .10007E-03    .23147       -.10015E-03** at limit **
   7  Prefactor     .10025E-03    .27157       -.90781E-04** at limit **
   8  Prefactor     3.4965        1.0106         .0000         .0000    
   9  Prefactor     149.27        1.0918       -.16125E-04   -.82807E-02
  10  Prefactor     .10000E-03    .25431       -.22788E-05** at limit **
  11  Prefactor     .10000E-03    .20676       -.24190E-04** at limit **
  12  Prefactor     .36277E-01    .37903        .29143E-04   -.32942E-03
  13  Prefactor     1.0108        1.3216         .0000         .0000    
  14  Prefactor     2.8291        1.0644        .19009E-04   -.29015E-04
  15  Prefactor     70.439        .96401        .97334E-06   -.22935E-01
  16  Prefactor     35.241        .92473        .60777E-04   -.19583E-02
  17  Prefactor     .17244E-02    .24743       -.15667E-04** at limit **
  18  Prefactor     .10000E-03    .24133        .38608E-05** at limit **
  19  norm          .10000E-03    .20571       -.49861E-06** at limit **
  20  norm          .10000E-03    .26489        .31787E-05** at limit **
  21  Prefactor     .10000E-03    .20571        .16100E-05** at limit **
  22  Prefactor     .10000E-03    .22241        .31231E-04** at limit **
  23  Prefactor     .10000E-03    .21030       -.65616E-06** at limit **
  24  Prefactor     .10000E-03    .28272       -.33288E-06** at limit **
  25  Normalizat    2.4005        1.0115        .26507E-04   -.38097E-04
  26  Prefactor     .26818        .57357       -.24996E-04   -.40572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38508
  norm       = 4.36023
  Prefactor  = 29.7114
  Prefactor  = 0.0001
  Prefactor  = 4.87629
  Prefactor  = 0.000100072
  Prefactor  = 0.000100249
  Prefactor  = 3.49649
  Prefactor  = 149.275
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0362769
  Prefactor  = 1.01076
  Prefactor  = 2.82907
  Prefactor  = 70.4393
  Prefactor  = 35.2412
  Prefactor  = 0.00172435
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.40051
  Prefactor  = 0.268182
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   475.5208     FROM HESSE     STATUS=FAILED         9 CALLS      447 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     549.43        545.97         .0000       -1.5340    
   2  norm          4.3602        1.0067         .0000       -1.5290    
   3  Prefactor     29.711        .99208        .28733E-05   -1.4617    
   4  Prefactor     .10000E-03    .21028       -.22050E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8763        1.0054         .0000       -1.5266    
   6  Prefactor     .10007E-03    .23147       -.10015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10025E-03    .27157       -.90781E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4965        1.0106         .0000       -1.5334    
   9  Prefactor     149.27        1.0918       -.16125E-04   -1.3258    
  10  Prefactor     .10000E-03    .25431       -.22788E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20676       -.24190E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36277E-01    .37903        .29143E-04   -1.5746    
  13  Prefactor     1.0108        1.3216         .0000       -1.5507    
  14  Prefactor     2.8291        1.0644        .19009E-04   -1.5372    
  15  Prefactor     70.439        .96401        .97334E-06   -1.4027    
  16  Prefactor     35.241        .92473        .60777E-04   -1.4520    
  17  Prefactor     .17244E-02    .24743       -.15667E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .24133        .38608E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571       -.49861E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .26489        .31787E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571        .16100E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .22241        .31231E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .21030       -.65616E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .28272       -.33288E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    2.4005        1.0115        .26507E-04   -.54851    
  26  Prefactor     .26818        .57357       -.24996E-04   -1.2418    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.73787e-10
Minuit parameter uncertainties:
  1  1.01135
  2  1.00673
  3  0.992081
  4  1.38164e-06
  5  1.00535
  6  0.000258966
  7  0.000520176
  8  1.01061
  9  1.09181
  10  2.27382e-05
  11  1.22467e-05
  12  0.2342
  13  1.32168
  14  1.06443
  15  0.964006
  16  0.924733
  17  0.0400958
  18  4.06422e-06
  19  1.76577e-06
  20  5.1996e-06
  21  2.76931e-06
  22  1.62118e-05
  23  4.71654e-06
  24  2.65452e-06
  25  1.02124
  26  0.586358
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 475.520813674

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.274e-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:  2.682e-01  5.864e-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:  2.401e+00  1.021e+00  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.43e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479196/likelihoodResults_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.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) = 475.520847326
delta logL = -3.36526167644e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 475.520814333
delta logL = -6.58725582525e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15944E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8861       1.0000          .0000       10.000    
     3 'Normalizat'    2.4004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26822       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=   475.5208     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      281 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10750E-03    102.54        .18142E-01** at limit **
   2  Index         2.7493        5.8055        .50000        .30253E-05
   3  Normalizat    2.4005        .28746E-01    .29873E-03   -.18233E-03
   4  Prefactor     .26819        .12416E-01    .34131E-03   -.11914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107502
  Index      = 2.74933
  Normalizat = 2.40049
  Prefactor  = 0.268188
 **********
 **   18 **HESSE 
 **********

 FCN=   475.5208     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10750E-03    846.97        .20091E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7493        6.0805        .50000       -.46692    
   3  Normalizat    2.4005        .84428E-01    .59746E-04   -.54852    
   4  Prefactor     .26819        .36465E-01    .68263E-04   -1.2418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3981e-09
Minuit parameter uncertainties:
  1  0.161761
  2  1302.31
  3  0.0844336
  4  0.0364685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479196': 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) = 475.520813885
delta logL = -2.11179042253e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.075e-04  1.618e-01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.749e+00  1.302e+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:  2.682e-01  3.647e-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:  2.400e+00  8.443e-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/479196/cmap_HighResolution_546480001_546739201_4FGL_J2123.6+0535_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-01', job_status='DONE', photon_flux_upper_limit='1.43e-06', time_completed='2021-09-26 13:03:27.124587', job_id='479196', GAL2='0.27', fit_tolerance='1e-08', EG2='2.40', EG='2.40', time_epoch_completed='1632686607.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.27', dlogl='-2.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1185' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:03:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 479196: <4FGL_J2123.6+0535_daily_bin1185> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1185> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:53 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:57:31 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:57:31 2021
Terminated at Sun Sep 26 13:03:27 2021
Results reported at Sun Sep 26 13:03:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1185 320.921 5.592 546480001 546739201 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 :                                   335.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   359 sec.
    Turnaround time :                            454 sec.

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

