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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin792
RA = 350.478, Dec = 32.0737
tmin = 444614401, tmax = 444873601
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='785365', job_status='RUN', time_executed='2021-09-29 13:10:56.750563', time_epoch_executed='1632946256.75' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785365/ft1_4FGL_J2321.9+3204_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785365/ft1_4FGL_J2321.9+3204_daily_bin792.fits outfile=/scratch/kocevski/785365/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin792.fits ra=350.478 dec=32.0737 rad=12.0 tmin=444614401.0 tmax=444873601.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.51
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.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/785365/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin792.fits evtable="EVENTS" outfile="/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/785365/ltcube_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.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/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/785365/ltcube_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits outfile=/scratch/kocevski/785365/expmap_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.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/785365/ltcube_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits
.....................!
real 191.81
user 186.14
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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits outfile=/scratch/kocevski/785365/cmap_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.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=350.478 yref=32.0737 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits outfile=/scratch/kocevski/785365/cmap_HighResolution_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.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=350.478 yref=32.0737 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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/785365/Model_4FGL_J2321.9+3204_daily_bin792.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/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits.....................!
real 85.61
user 84.26
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits', '/scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits', expMap='/scratch/kocevski/785365/expmap_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits', expCube='/scratch/kocevski/785365/ltcube_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/785365/Model_4FGL_J2321.9+3204_daily_bin792.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/785365/ft1_filtered_4FGL_J2321.9+3204_daily_bin792.fits
Spacecraft file(s): /scratch/kocevski/785365/ft2_4FGL_J2321.9+3204_daily_bin792.fits
Exposure map: /scratch/kocevski/785365/expmap_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits
Exposure cube: /scratch/kocevski/785365/ltcube_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/785365/Model_4FGL_J2321.9+3204_daily_bin792.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) = 7938.06401151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5389       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2623       1.0000         .10000E-03   10000.    
     3 'norm      '    .95003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.9362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1710       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4752       1.0000         .10000E-03   10000.    
    15 'norm      '    10.406       1.0000         .10000E-03   10000.    
    16 'norm      '    13.379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1597       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7835       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63408       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7938.045     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2721 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5380        12.112         .0000        .15020E-03
   2  Prefactor     1.2617        5.6953         .0000        .33843E-01
   3  norm          .95002        .77499         .0000        .63419E-03
   4  Prefactor     .10000E-03    53.068         .0000    ** at limit **
   5  Prefactor     .10000E-03    13.898         .0000    ** at limit **
   6  norm          8.9357        4.4958         .0000       -.37340E-02
   7  Prefactor     9.1710        9.8927         .0000       -.65650E-04
   8  Prefactor     .10000E-03    3.3445         .0000    ** at limit **
   9  Prefactor     1.8428        7.3619         .0000        .53125E-03
  10  Prefactor     .10000E-03    23.821         .0000    ** at limit **
  11  norm          .10000E-03    .63846         .0000    ** at limit **
  12  Prefactor     29.070        19.662         .0000        .58218E-03
  13  Prefactor     11.983        12.929         .0000        .33191E-03
  14  Prefactor     6.4752        13.704         .0000        .11561E-02
  15  norm          10.406        6.7122         .0000       -.38085E-02
  16  norm          13.379        9.8490         .0000        .85783E-04
  17  Prefactor     9.1601        18.516         .0000       -.70230E-03
  18  norm          1.7834        1.7626         .0000       -.77284E-04
  19  Prefactor     .10000E-03    4.6909         .0000    ** at limit **
  20  Prefactor     .10000E-03    14.272         .0000    ** at limit **
  21  Prefactor     .10000E-03    13.068         .0000    ** at limit **
  22  Prefactor     .10000E-03    2.0810         .0000    ** at limit **
  23  Normalizat    .63409        .19709         .0000        .41171E-04
  24  Prefactor     1.0365        .95816E-01     .0000       -.31840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.53802
  Prefactor  = 1.26172
  norm       = 0.950016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.93566
  Prefactor  = 9.17103
  Prefactor  = 0.0001
  Prefactor  = 1.84282
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 29.0703
  Prefactor  = 11.9826
  Prefactor  = 6.47523
  norm       = 10.4055
  norm       = 13.3791
  Prefactor  = 9.16009
  norm       = 1.78336
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.634086
  Prefactor  = 1.03646
 **********
 **   18 **HESSE 
 **********

 FCN=   7938.045     FROM HESSE     STATUS=OK           401 CALLS     3122 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5380        12.097        .17071E-03   -1.5237    
   2  Prefactor     1.2617        5.7393        .19841E-02   -1.5483    
   3  norm          .95002        .74529        .68727E-03   -1.5513    
   4  Prefactor     .10000E-03    53.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.9357        4.4979        .12979E-03   -1.5110    
   7  Prefactor     9.1710        9.8943        .13234E-03   -1.5102    
   8  Prefactor     .10000E-03    3.3651        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8428        7.3353        .30725E-03   -1.5436    
  10  Prefactor     .10000E-03    23.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0776        .13666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.070        19.654        .74304E-04   -1.4629    
  13  Prefactor     11.983        12.876        .11574E-03   -1.5016    
  14  Prefactor     6.4752        13.692        .78859E-03   -1.5199    
  15  norm          10.406        6.6790        .12421E-03   -1.5063    
  16  norm          13.379        9.8557        .10951E-03   -1.4976    
  17  Prefactor     9.1601        18.446        .13242E-03   -1.5103    
  18  norm          1.7834        1.7650        .11293E-03   -1.5441    
  19  Prefactor     .10000E-03    4.6929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0871        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .63409        .21874        .38449E-03   -1.0656    
  24  Prefactor     1.0365        .10858        .15650E-03   -.91524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99193e-09
Minuit parameter uncertainties:
  1  12.1021
  2  5.38262
  3  0.745299
  4  0.000283754
  5  0.000124356
  6  4.49812
  7  9.89608
  8  7.04544e-08
  9  7.33883
  10  0.000348996
  11  2.41282e-06
  12  19.6586
  13  12.8791
  14  13.6989
  15  6.67948
  16  9.85692
  17  18.4573
  18  1.76503
  19  5.80815e-06
  20  0.000383053
  21  0.000398473
  22  1.73935e-06
  23  0.219035
  24  0.108601
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.041e+01  6.679e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.036e+00  1.086e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.341e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.34e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.83e-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) = 7938.044744
delta logL = 6.11858922639e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7938.04474398
delta logL = 6.32110641163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.406       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1388       1.0000          .0000       5.0000    
     3 'Normalizat'    .63408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7938.045     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      241 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.404        6.2095        .62105E-03   -.61506E-04
   2  alpha         2.1389        .51792        .13411E-01    .45676E-05
   3  Normalizat    .63405        .20925        .38450E-03    .10496E-04
   4  Prefactor     1.0365        .10690        .15650E-03    .30147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4037
  alpha      = 2.13892
  Normalizat = 0.634048
  Prefactor  = 1.03647
 **********
 **   18 **HESSE 
 **********

 FCN=   7938.045     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.404        6.1217        .24842E-04   -1.5063    
   2  alpha         2.1389        .51033        .53642E-03   -.14494    
   3  Normalizat    .63405        .20921        .15380E-04   -1.0656    
   4  Prefactor     1.0365        .10691        .62601E-05   -.91523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18641e-12
Minuit parameter uncertainties:
  1  6.12209
  2  0.514023
  3  0.209473
  4  0.106933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785365': 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) = 7938.04474392
delta logL = 6.93149559083e-07

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.040e+01  6.122e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.139e+00  5.140e-01  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.036e+00  1.069e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.340e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.14 +/- 0.51
Photon Flux (Free Index): 6.34e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.85e-05 +/- 1.77e-05

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/785365/cmap_HighResolution_444614401_444873601_4FGL_J2321.9+3204_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.34e-08', energy_flux2='2.85e-05', photon_flux_error='4.07e-08', dlogl='6.93e-07', energy_flux='2.85e-05', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-29 13:22:26.797221', photon_index_error2='0.51', photon_index2='2.14', ts='5.86', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.63', time_epoch_completed='1632946946.8', return_code='0', job_id='785365', GAL2='1.04', EG2='0.63', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.38e-08', ts2='5.87', photon_index='2.14' WHERE bin_id='792' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 785365: <4FGL_J2321.9+3204_daily_bin792> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin792> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 13:10:40 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:10:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:10:42 2021
Terminated at Wed Sep 29 13:22:27 2021
Results reported at Wed Sep 29 13:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin792 350.478 32.0737 444614401 444873601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

