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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1661
RA = 320.921, Dec = 5.592
tmin = 669859201, tmax = 670118401
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='85135', job_status='RUN', time_executed='2022-03-28 00:42:16.222744', time_epoch_executed='1648453336.22' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85135/ft1_4FGL_J2123.6+0535_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85135/ft1_4FGL_J2123.6+0535_daily_bin1661.fits outfile=/scratch/kocevski/85135/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1661.fits ra=320.921 dec=5.592 rad=12.0 tmin=669859201.0 tmax=670118401.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.71
user 3.42
sys 0.20

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

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

Number of photons that the gtmktime cut: 719

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85135/ft1_filtered_4FGL_J2123.6+0535_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85135/ltcube_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.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/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits
.....................!
real 12.34
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85135/ft1_filtered_4FGL_J2123.6+0535_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85135/ltcube_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.fits outfile=/scratch/kocevski/85135/expmap_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.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/85135/ltcube_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.fits
.....................!
real 190.95
user 185.14
sys 4.90

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/85135/ft1_filtered_4FGL_J2123.6+0535_daily_bin1661.fits scfile=/scratch/kocevski/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits outfile=/scratch/kocevski/85135/cmap_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85135/ft1_filtered_4FGL_J2123.6+0535_daily_bin1661.fits scfile=/scratch/kocevski/85135/ft2_4FGL_J2123.6+0535_daily_bin1661.fits outfile=/scratch/kocevski/85135/cmap_HighResolution_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.3485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5499       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.678       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2352       1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7333       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.556       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71814       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0686       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=   7748.293     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3012 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.812       -.17268E-07** at limit **
   2  norm          7.3488        7.0048        .46471E-07   -.63227E-05
   3  Prefactor     .10000E-03    1.7837        .25469E-07** at limit **
   4  Prefactor     .10000E-03    9.6709       -.10842E-06** at limit **
   5  Prefactor     16.544        14.507        .10493E-06   -.71790E-05
   6  Prefactor     7.3793        24.271        .33702E-06   -.10435E-04
   7  Prefactor     9.6102        20.372       -.95824E-07   -.28358E-05
   8  Prefactor     19.434        30.683        .73803E-07   -.16707E-04
   9  Prefactor     22.771        55.625       -.85106E-06   -.46357E-04
  10  Prefactor     6.7159        17.897        .12726E-06   -.58986E-05
  11  Prefactor     .10000E-03    22.048       -.42911E-06** at limit **
  12  Prefactor     7.7385        5.7479        .95243E-07   -.97521E-05
  13  Prefactor     .10000E-03    1.9277        .82808E-07** at limit **
  14  Prefactor     2.5493        2.0457        .86110E-06   -.60195E-04
  15  Prefactor     22.672        28.628       -.76711E-06   -.27947E-04
  16  Prefactor     .10000E-03    23.042        .94980E-07** at limit **
  17  Prefactor     .10000E-03    29.867        .10931E-06** at limit **
  18  Prefactor     .10000E-03    34.412        .69626E-07** at limit **
  19  norm          3.2349        2.3759        .11688E-06   -.25463E-04
  20  norm          .10000E-03    10.893        .19215E-06** at limit **
  21  Prefactor     .10000E-03    4.8673        .18242E-06** at limit **
  22  Prefactor     5.7324        10.400        .16112E-06   -.94427E-05
  23  Prefactor     15.553        17.064       -.16459E-07   -.68013E-05
  24  Prefactor     .10000E-03    20.406        .12842E-06** at limit **
  25  Normalizat    .71841        .25176        .40393E-06   -.32160E-04
  26  Prefactor     1.0685        .10983       -.46008E-06    .14648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.34878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5444
  Prefactor  = 7.37933
  Prefactor  = 9.61017
  Prefactor  = 19.4342
  Prefactor  = 22.7713
  Prefactor  = 6.71592
  Prefactor  = 0.0001
  Prefactor  = 7.73851
  Prefactor  = 0.0001
  Prefactor  = 2.54928
  Prefactor  = 22.6715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73236
  Prefactor  = 15.5533
  Prefactor  = 0.0001
  Normalizat = 0.718412
  Prefactor  = 1.06845
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.293     FROM HESSE     STATUS=OK           458 CALLS     3470 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3488        7.0035        .14796E-03   -1.5166    
   3  Prefactor     .10000E-03    1.7981        .11479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.544        14.497        .98470E-04   -1.4894    
   6  Prefactor     7.3793        24.102        .14758E-03   -1.5165    
   7  Prefactor     9.6102        20.234        .12927E-03   -1.5088    
   8  Prefactor     19.434        30.689        .90836E-04   -1.4826    
   9  Prefactor     22.771        55.916        .83846E-04   -1.4753    
  10  Prefactor     6.7159        17.878        .15481E-03   -1.5190    
  11  Prefactor     .10000E-03    22.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7385        5.7428        .14415E-03   -1.5152    
  13  Prefactor     .10000E-03    1.9372        .11934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5493        2.0579        .53975E-03   -1.5389    
  15  Prefactor     22.672        28.663        .84111E-04   -1.4755    
  16  Prefactor     .10000E-03    23.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2349        2.3688        .11007E-03   -1.5348    
  20  norm          .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7324        10.390        .16775E-03   -1.5229    
  23  Prefactor     15.553        17.072        .10155E-03   -1.4919    
  24  Prefactor     .10000E-03    20.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71841        .28299        .41649E-03   -1.0317    
  26  Prefactor     1.0685        .12509        .16267E-03   -.90481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44547e-11
Minuit parameter uncertainties:
  1  4.08467e-05
  2  7.00424
  3  6.77709e-07
  4  2.85026e-06
  5  14.4997
  6  24.1333
  7  20.2484
  8  30.7137
  9  56.0454
  10  17.8919
  11  3.12271e-05
  12  5.74321
  13  2.64845e-08
  14  2.05799
  15  28.6806
  16  7.34444e-06
  17  3.97621e-05
  18  6.5529e-05
  19  2.36883
  20  6.22975e-06
  21  1.96676e-07
  22  10.3932
  23  17.0775
  24  8.30023e-06
  25  0.283563
  26  0.125123
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  6.716e+00  1.789e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.068e+00  1.251e-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:  7.184e-01  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85135/likelihoodResults_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.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): 0
logL (Free Index) = 7748.28417603
delta logL = 0.00862053259516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7748.28236867
delta logL = 0.0104278897124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9241       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1912       1.0000          .0000       10.000    
     3 'Normalizat'    .72065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0678       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=   7748.282     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      227 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8742        357.60        .35610E-02    .30492E-04
   2  Index         2.1915        2.0516        .46524        .52796E-05
   3  Normalizat    .72125        .31640E-01    .93832E-01    .72191E-04
   4  Prefactor     1.0675        .14539E-01    .38965E-01    .10355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87417
  Index      = 2.19149
  Normalizat = 0.721245
  Prefactor  = 1.06754
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.282     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8742        20.678        .14244E-03   -1.5147    
   2  Index         2.1915        1.3118        .82929E-02   -.59644    
   3  Normalizat    .72125        .26191        .41570E-03   -1.0306    
   4  Prefactor     1.0675        .12348        .16272E-03   -.90511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72295e-11
Minuit parameter uncertainties:
  1  20.6964
  2  1.33489
  3  0.262364
  4  0.123515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85135': 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): 0
logL (Free Index) = 7748.28236328
delta logL = 0.0104332758656

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  7.874e+00  2.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.191e+00  1.335e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.068e+00  1.235e-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:  7.212e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/85135/cmap_HighResolution_669859201_670118401_4FGL_J2123.6+0535_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-03-28 00:55:57.689148', job_id='85135', GAL2='1.07', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1648454157.69', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.04e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1661' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:55:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 85135: <4FGL_J2123.6+0535_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:21 2022
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:24 2022
Terminated at Mon Mar 28 00:55:58 2022
Results reported at Mon Mar 28 00:55:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1661 320.921 5.592 669859201 670118401 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 :                                   822.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            937 sec.

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

