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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1334
RA = 320.921, Dec = 5.592
tmin = 585100801, tmax = 585360001
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='480473', job_status='RUN', time_executed='2021-09-26 13:05:21.617767', time_epoch_executed='1632686721.62' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480473

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480473/ft1_4FGL_J2123.6+0535_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480473/ft1_4FGL_J2123.6+0535_daily_bin1334.fits outfile=/scratch/kocevski/480473/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1334.fits ra=320.921 dec=5.592 rad=12.0 tmin=585100801.0 tmax=585360001.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.16
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480473/ft1_filtered_4FGL_J2123.6+0535_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/480473/ltcube_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.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/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits
.....................!
real 14.58
user 14.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480473/ft1_filtered_4FGL_J2123.6+0535_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/480473/ltcube_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.fits outfile=/scratch/kocevski/480473/expmap_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.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/480473/ltcube_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.fits
.....................!
real 192.33
user 187.13
sys 4.65

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/480473/ft1_filtered_4FGL_J2123.6+0535_daily_bin1334.fits scfile=/scratch/kocevski/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits outfile=/scratch/kocevski/480473/cmap_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480473/ft1_filtered_4FGL_J2123.6+0535_daily_bin1334.fits scfile=/scratch/kocevski/480473/ft2_4FGL_J2123.6+0535_daily_bin1334.fits outfile=/scratch/kocevski/480473/cmap_HighResolution_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.247       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.962       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4279       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    275.59       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    137.56       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14868E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8268       1.0000         .10000E-03   10000.    
    20 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.790       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.575       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .16325       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1022       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=   3119.747     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     4539 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.398        144.00        .20699E-03    .15214E-04
   2  norm          6.0002        18.352        .16379E-03    .17457E-04
   3  Prefactor     .10000E-03    19.929        .18142E-02** at limit **
   4  Prefactor     .10000E-03    87.061        .18142E-02** at limit **
   5  Prefactor     16.934        27.671        .97376E-04    .35434E-04
   6  Prefactor     34.933        64.281        .67775E-04    .97291E-05
   7  Prefactor     7.4777        79.810        .14716E-03    .82277E-05
   8  Prefactor     .10000E-03    18.434        .18142E-02** at limit **
   9  Prefactor     275.62        230.03        .24434E-04    .74910E-05
  10  Prefactor     8.9900        52.517        .13380E-03    .96011E-05
  11  Prefactor     137.40        173.69        .17171E-03    .11289E-04
  12  Prefactor     12.410        10.654        .11374E-03    .80213E-04
  13  Prefactor     .10000E-03    7.8645        .15230E-02** at limit **
  14  Prefactor     .10000E-03    26.778        .32175E-02** at limit **
  15  Prefactor     .10000E-03    68.673        .18142E-02** at limit **
  16  Prefactor     .10000E-03    348.01        .18142E-02** at limit **
  17  Prefactor     53.784        93.162        .54700E-04    .50089E-05
  18  Prefactor     .10000E-03    163.97        .18142E-02** at limit **
  19  norm          1.8277        3.5377        .12797E-03    .68271E-04
  20  norm          .10000E-03    32.720        .18142E-02** at limit **
  21  Prefactor     7.2350        14.406        .14917E-03    .17796E-04
  22  Prefactor     13.814        34.069        .10786E-03    .24506E-04
  23  Prefactor     22.589        33.857        .84304E-04    .17396E-04
  24  Prefactor     .10000E-03    32.713        .18142E-02** at limit **
  25  Normalizat    .16299        .47676        .86675E-02    .23763E-04
  26  Prefactor     1.1021        .20647        .15860E-03    .38422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.3978
  norm       = 6.00016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9338
  Prefactor  = 34.9327
  Prefactor  = 7.47767
  Prefactor  = 0.0001
  Prefactor  = 275.621
  Prefactor  = 8.99003
  Prefactor  = 137.404
  Prefactor  = 12.4101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.7844
  Prefactor  = 0.0001
  norm       = 1.82774
  norm       = 0.0001
  Prefactor  = 7.23503
  Prefactor  = 13.8136
  Prefactor  = 22.5891
  Prefactor  = 0.0001
  Normalizat = 0.162989
  Prefactor  = 1.10211
 **********
 **   18 **HESSE 
 **********

 FCN=   3119.747     FROM HESSE     STATUS=OK           432 CALLS     4971 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.398        143.95        .82798E-05   -1.3762    
   2  norm          6.0002        18.345        .65516E-05   -1.5218    
   3  Prefactor     .10000E-03    19.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    87.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.934        27.622        .38950E-05   -1.4885    
   6  Prefactor     34.933        64.282        .27110E-05   -1.4525    
   7  Prefactor     7.4777        79.767        .58863E-05   -1.5161    
   8  Prefactor     .10000E-03    18.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     275.62        230.07        .48868E-05   -1.2372    
  10  Prefactor     8.9900        52.506        .53522E-05   -1.5108    
  11  Prefactor     137.40        173.22        .68684E-05   -1.3358    
  12  Prefactor     12.410        10.627        .45496E-05   -1.5003    
  13  Prefactor     .10000E-03    7.8658        .30459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.871        .64349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    68.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    348.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.784        93.150        .10940E-04   -1.4240    
  18  Prefactor     .10000E-03    163.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8277        3.5314        .51189E-05   -1.5438    
  20  norm          .10000E-03    32.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2350        14.400        .59667E-05   -1.5170    
  22  Prefactor     13.814        33.886        .43144E-05   -1.4964    
  23  Prefactor     22.589        33.776        .33722E-05   -1.4757    
  24  Prefactor     .10000E-03    32.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .16299        .45161        .34670E-03   -1.3227    
  26  Prefactor     1.1021        .19756        .63439E-05   -.89399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96194e-11
Minuit parameter uncertainties:
  1  144.488
  2  18.3626
  3  1.52869e-06
  4  4.60247e-05
  5  27.6425
  6  64.4103
  7  48.9287
  8  3.95224e-06
  9  230.833
  10  43.5099
  11  173.869
  12  10.6282
  13  1.40611e-05
  14  6.89746e-05
  15  3.32807e-05
  16  0.000565383
  17  93.4041
  18  0.000458952
  19  3.53184
  20  6.90314e-05
  21  14.4069
  22  33.9332
  23  33.805
  24  1.52227e-05
  25  0.46249
  26  0.197691
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.990e+00  4.351e+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.102e+00  1.977e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.630e-01  4.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480473/likelihoodResults_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.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) = 3119.73838655
delta logL = 0.00820712948598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3119.72969733
delta logL = 0.016896352276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.843       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9894       1.0000          .0000       10.000    
     3 'Normalizat'    .16778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0985       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=   3119.730     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      337 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.622        71.079        .94817E-04    .32253E-04
   2  Index         1.9896        1.7471        .14802E-01    .13302E-04
   3  Normalizat    .16768        .43428        .85658E-02    .47291E-04
   4  Prefactor     1.0986        .20151        .15883E-03    .29074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.622
  Index      = 1.98958
  Normalizat = 0.167683
  Prefactor  = 1.09859
 **********
 **   18 **HESSE 
 **********

 FCN=   3119.730     FROM HESSE     STATUS=OK            27 CALLS      364 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.622        67.769        .37927E-05   -1.4868    
   2  Index         1.9896        1.6838        .59209E-03   -.64611    
   3  Normalizat    .16768        .41627        .34263E-03   -1.3189    
   4  Prefactor     1.0986        .19278        .31765E-04   -.89512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00565e-10
Minuit parameter uncertainties:
  1  68.0678
  2  1.73824
  3  0.424445
  4  0.192906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480473': 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) = 3119.72969163
delta logL = 0.0169020467129

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.762e+01  6.807e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.990e+00  1.738e+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.099e+00  1.929e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.677e-01  4.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/480473/cmap_HighResolution_585100801_585360001_4FGL_J2123.6+0535_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', job_status='DONE', photon_flux_upper_limit='2.50e-07', time_completed='2021-09-26 13:15:15.787450', job_id='480473', GAL2='1.10', fit_tolerance='1e-08', EG2='0.17', EG='0.16', time_epoch_completed='1632687315.79', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.69e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1334' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 480473: <4FGL_J2123.6+0535_daily_bin1334> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1334> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:38 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:02:27 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:02:27 2021
Terminated at Sun Sep 26 13:15:16 2021
Results reported at Sun Sep 26 13:15:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1334 320.921 5.592 585100801 585360001 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 :                                   592.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            878 sec.

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

