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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1646
RA = 320.921, Dec = 5.592
tmin = 665971201, tmax = 666230401
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='677477', job_status='RUN', time_executed='2022-02-11 00:39:08.030239', time_epoch_executed='1644568748.03' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677477/ft1_4FGL_J2123.6+0535_daily_bin1646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677477/ft2_4FGL_J2123.6+0535_daily_bin1646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677477/ft1_4FGL_J2123.6+0535_daily_bin1646.fits outfile=/scratch/kocevski/677477/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1646.fits ra=320.921 dec=5.592 rad=12.0 tmin=665971201.0 tmax=666230401.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.57
user 4.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677477/ft1_filtered_4FGL_J2123.6+0535_daily_bin1646.fits evtable="EVENTS" scfile=/scratch/kocevski/677477/ft2_4FGL_J2123.6+0535_daily_bin1646.fits sctable="SC_DATA" expcube=/scratch/kocevski/677477/ltcube_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.fits outfile=/scratch/kocevski/677477/expmap_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.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/677477/ltcube_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.fits
.....................!
real 190.45
user 185.36
sys 4.73

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/677477/ft1_filtered_4FGL_J2123.6+0535_daily_bin1646.fits scfile=/scratch/kocevski/677477/ft2_4FGL_J2123.6+0535_daily_bin1646.fits outfile=/scratch/kocevski/677477/cmap_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677477/ft1_filtered_4FGL_J2123.6+0535_daily_bin1646.fits scfile=/scratch/kocevski/677477/ft2_4FGL_J2123.6+0535_daily_bin1646.fits outfile=/scratch/kocevski/677477/cmap_HighResolution_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.2098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10982E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    31.371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .77889E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4034       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.250       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94264       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81785       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=   6477.495     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3590 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.965       -.69235E-05** at limit **
   2  norm          9.2098        7.0762       -.35989E-06    .23399E-04
   3  Prefactor     2.0940        4.5942       -.97057E-06   -.70027E-03
   4  Prefactor     .10000E-03    16.522       -.55209E-05** at limit **
   5  Prefactor     12.205        16.327       -.91324E-06   -.25397E-04
   6  Prefactor     .10000E-03    6.9766       -.33346E-06** at limit **
   7  Prefactor     .10000E-03    16.058        .14297E-05** at limit **
   8  Prefactor     13.428        16.448       -.12072E-06    .28098E-05
   9  Prefactor     .10000E-03    76.913        .17829E-04** at limit **
  10  Prefactor     64.506        34.358       -.20946E-05    .51664E-04
  11  Prefactor     15.845        49.569       -.42130E-04    .13835E-04
  12  Prefactor     .10000E-03    5.0321       -.25986E-06** at limit **
  13  Prefactor     13.942        10.119       -.50458E-07   -.56612E-04
  14  Prefactor     5.9500        3.5360        .20042E-05   -.16904E-04
  15  Prefactor     19.286        37.652        .34159E-05    .79943E-04
  16  Prefactor     .10000E-03    10.990       -.13232E-04** at limit **
  17  Prefactor     .10000E-03    52.236        .97229E-05** at limit **
  18  Prefactor     .10000E-03    86.419       -.22385E-04** at limit **
  19  norm          .10018E-03    1.0305        .41544E-06** at limit **
  20  norm          31.374        26.977        .18032E-05    .24541E-03
  21  Prefactor     .10091E-03    5.9145       -.18649E-05** at limit **
  22  Prefactor     .10000E-03    10.100        .55984E-05** at limit **
  23  Prefactor     1.3958        228.27       -.19756E-04    .36211E-05
  24  Prefactor     33.245        50.428       -.40117E-05    .19271E-03
  25  Normalizat    .94279        .26603        .54725E-05    .15752E-03
  26  Prefactor     .81781        .10416       -.51028E-06    .56047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.20978
  Prefactor  = 2.09395
  Prefactor  = 0.0001
  Prefactor  = 12.2047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4275
  Prefactor  = 0.0001
  Prefactor  = 64.5063
  Prefactor  = 15.8454
  Prefactor  = 0.0001
  Prefactor  = 13.942
  Prefactor  = 5.94997
  Prefactor  = 19.2857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100185
  norm       = 31.3737
  Prefactor  = 0.000100906
  Prefactor  = 0.0001
  Prefactor  = 1.39581
  Prefactor  = 33.245
  Normalizat = 0.942786
  Prefactor  = 0.817805
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.495     FROM HESSE     STATUS=OK           456 CALLS     4046 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.2098        7.0743        .13206E-03   -1.5101    
   3  Prefactor     2.0940        4.5901        .24585E-03   -1.5419    
   4  Prefactor     .10000E-03    16.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.205        16.324        .11466E-03   -1.5009    
   6  Prefactor     .10000E-03    6.9834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.428        16.444        .10931E-03   -1.4975    
   9  Prefactor     .10000E-03    77.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.506        34.444        .49965E-04   -1.4100    
  11  Prefactor     15.845        49.527        .10054E-03   -1.4912    
  12  Prefactor     .10000E-03    5.1330        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.942        10.120        .10727E-03   -1.4961    
  14  Prefactor     5.9500        3.5281        .97291E-04   -1.5220    
  15  Prefactor     19.286        37.625        .91211E-04   -1.4829    
  16  Prefactor     .10000E-03    10.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    86.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10018E-03    12.437        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          31.374        26.605        .71538E-04   -1.4587    
  21  Prefactor     .10091E-03    54.713        .35875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3958        211.70        .36610E-03   -1.5472    
  24  Prefactor     33.245        48.933        .69493E-04   -1.4554    
  25  Normalizat    .94279        .31411        .36122E-03   -.94973    
  26  Prefactor     .81781        .12433        .17038E-03   -.99075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10786e-08
Minuit parameter uncertainties:
  1  2.17256e-06
  2  7.07496
  3  4.59085
  4  2.6014e-06
  5  16.3299
  6  5.4432e-06
  7  1.69125e-05
  8  16.4497
  9  0.000171229
  10  34.455
  11  49.6555
  12  3.02493e-05
  13  10.1213
  14  3.52827
  15  37.6712
  16  9.51677e-06
  17  8.50575e-05
  18  7.39133e-05
  19  0.00303205
  20  26.6153
  21  0.0140919
  22  9.45715e-06
  23  34.5033
  24  48.9926
  25  0.31473
  26  0.124374
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  6.451e+01  3.445e+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:  8.178e-01  1.244e-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:  9.428e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.49
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 6.49e-08
Energy Flux (Fixed Index): 4.04e-05 +/- 2.16e-05

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) = 6477.32974875
delta logL = 0.16528264422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.30716847
delta logL = 0.187862933615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.165       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7254       1.0000          .0000       10.000    
     3 'Normalizat'    .89874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83041       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=   6477.307     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      296 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.123        45.376        .58385E-04   -.55090E-03
   2  Index         2.7258        .65713        .47049E-02   -.12426E-03
   3  Normalizat    .89834        .28805        .36910E-03    .96100E-05
   4  Prefactor     .83096        .12429        .16917E-03   -.26731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1229
  Index      = 2.72583
  Normalizat = 0.89834
  Prefactor  = 0.830955
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.307     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.123        40.686        .11677E-04   -1.4334    
   2  Index         2.7258        .58837        .18820E-03   -.47219    
   3  Normalizat    .89834        .28646        .14764E-04   -.96518    
   4  Prefactor     .83096        .12378        .33833E-04   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77587e-10
Minuit parameter uncertainties:
  1  40.7103
  2  0.590099
  3  0.28695
  4  0.123825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677477': 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) = 6477.30714648
delta logL = 0.187884918351

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.712e+01  4.071e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.726e+00  5.901e-01  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.310e-01  1.238e-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:  8.983e-01  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.73 +/- 0.59
Photon Flux (Free Index): 1.56e-07 +/- 9.40e-08
Energy Flux (Free Index): 3.69e-05 +/- 1.90e-05

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/677477/cmap_HighResolution_665971201_666230401_4FGL_J2123.6+0535_daily_bin1646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='3.69e-05', photon_flux_error='6.49e-08', dlogl='1.88e-01', energy_flux='4.04e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2022-02-11 00:51:00.905552', photon_index_error2='0.59', photon_index2='2.73', ts='5.49', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.94', time_epoch_completed='1644569460.91', return_code='0', job_id='677477', GAL2='0.83', EG2='0.90', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='9.40e-08', ts2='5.91', photon_index='2.39' WHERE bin_id='1646' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 11 00:51:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 677477: <4FGL_J2123.6+0535_daily_bin1646> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1646> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 11 00:35:29 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 11 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 11 00:35:31 2022
Terminated at Fri Feb 11 00:51:01 2022
Results reported at Fri Feb 11 00:51:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1646 320.921 5.592 665971201 666230401 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

