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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin694
RA = 350.478, Dec = 32.0737
tmin = 419212801, tmax = 419472001
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='785208', job_status='RUN', time_executed='2021-09-29 13:10:40.756181', time_epoch_executed='1632946240.76' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/785208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/785208/ft1_4FGL_J2321.9+3204_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/785208/ft1_4FGL_J2321.9+3204_daily_bin694.fits outfile=/scratch/kocevski/785208/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin694.fits ra=350.478 dec=32.0737 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.42
user 5.13
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.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/785208/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/785208/ltcube_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.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/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits
.....................!
real 12.17
user 11.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/785208/ltcube_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits outfile=/scratch/kocevski/785208/expmap_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.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/785208/ltcube_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits
.....................!
real 190.76
user 185.74
sys 4.62

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/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits scfile=/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits outfile=/scratch/kocevski/785208/cmap_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits scfile=/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits outfile=/scratch/kocevski/785208/cmap_HighResolution_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits', '/scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits', expMap='/scratch/kocevski/785208/expmap_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits', expCube='/scratch/kocevski/785208/ltcube_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/785208/Model_4FGL_J2321.9+3204_daily_bin694.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/785208/ft1_filtered_4FGL_J2321.9+3204_daily_bin694.fits
Spacecraft file(s): /scratch/kocevski/785208/ft2_4FGL_J2321.9+3204_daily_bin694.fits
Exposure map: /scratch/kocevski/785208/expmap_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits
Exposure cube: /scratch/kocevski/785208/ltcube_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/785208/Model_4FGL_J2321.9+3204_daily_bin694.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) = 5152.05847389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10715E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66208       1.0000         .10000E-03   10000.    
     3 'norm      '    .55648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .26011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.119       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.094       1.0000         .10000E-03   10000.    
    16 'norm      '    36.589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2993       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.308       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.211       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13128E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4294       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94161       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5152.052     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2736 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.952        .21431E-05** at limit **
   2  Prefactor     .63602        10.760       -.46663E-06    .41473E-04
   3  norm          .55723        .96300       -.77500E-07   -.40088E-03
   4  Prefactor     .10000E-03    31.971        .35934E-06** at limit **
   5  Prefactor     .10000E-03    12.688        .13248E-06** at limit **
   6  norm          .10001E-03    7.7418       -.22895E-05** at limit **
   7  Prefactor     .10000E-03    35.394       -.32256E-05** at limit **
   8  Prefactor     .10000E-03    5.2655       -.18435E-07** at limit **
   9  Prefactor     .10000E-03    13.373        .34133E-06** at limit **
  10  Prefactor     .10000E-03    17.497       -.12807E-05** at limit **
  11  norm          .10000E-03    1.1819        .17220E-06** at limit **
  12  Prefactor     27.112        30.138        .74445E-06    .64298E-05
  13  Prefactor     3.0074        19.492        .35055E-05    .92337E-04
  14  Prefactor     .10000E-03    9.8252       -.33646E-06** at limit **
  15  norm          16.094        10.792       -.78317E-08   -.69494E-04
  16  norm          36.588        19.386       -.29868E-08   -.46060E-05
  17  Prefactor     6.2942        33.320        .74031E-06   -.76852E-05
  18  norm          2.6993        3.9703        .10068E-06    .36271E-04
  19  Prefactor     .10000E-03    104.94        .61955E-06** at limit **
  20  Prefactor     50.293        64.180        .23519E-05    .16990E-04
  21  Prefactor     15.174        82.112        .93812E-05    .16293E-04
  22  Prefactor     .10000E-03    13.415       -.12930E-05** at limit **
  23  Normalizat    1.4295        .30540       -.56748E-06    .76058E-05
  24  Prefactor     .94159        .13746       -.80658E-06    .27805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.636018
  norm       = 0.557227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1121
  Prefactor  = 3.00736
  Prefactor  = 0.0001
  norm       = 16.0938
  norm       = 36.5881
  Prefactor  = 6.29416
  norm       = 2.69932
  Prefactor  = 0.0001
  Prefactor  = 50.2932
  Prefactor  = 15.1742
  Prefactor  = 0.000100001
  Normalizat = 1.42951
  Prefactor  = 0.941591
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.052     FROM HESSE     STATUS=OK           403 CALLS     3139 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .63602        49.235        .44222E-02   -1.5548    
   3  norm          .55723        .78667        .90673E-03   -1.5559    
   4  Prefactor     .10000E-03    31.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    12.433        .31945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2864        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3360        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.112        30.146        .76929E-04   -1.4666    
  13  Prefactor     3.0074        21.727        .11699E-02   -1.5361    
  14  Prefactor     .10000E-03    9.8287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.094        10.659        .99836E-04   -1.4905    
  16  norm          36.588        19.394        .66255E-04   -1.4497    
  17  Prefactor     6.2942        33.089        .15993E-03   -1.5206    
  18  norm          2.6993        3.9559        .16304E-03   -1.5379    
  19  Prefactor     .10000E-03    107.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     50.293        64.548        .56540E-04   -1.4288    
  21  Prefactor     15.174        82.411        .10270E-03   -1.4929    
  22  Prefactor     .10000E-03    13.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4295        .36520        .34165E-03   -.79779    
  24  Prefactor     .94159        .16260        .19022E-03   -.94703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5898e-10
Minuit parameter uncertainties:
  1  5.31645e-05
  2  11.2005
  3  0.786685
  4  2.16532e-05
  5  9.87484e-06
  6  0.000536955
  7  9.56659e-05
  8  1.22325e-05
  9  1.74092e-05
  10  3.6573e-05
  11  5.56487e-05
  12  30.163
  13  16.1747
  14  9.00893e-06
  15  10.66
  16  19.3976
  17  28.8876
  18  3.95626
  19  7.11689e-05
  20  64.6375
  21  70.8768
  22  0.000263237
  23  0.365868
  24  0.162688
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.609e+01  1.066e+01  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:  9.416e-01  1.627e-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:  1.430e+00  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.16
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 9.80e-08 +/- 6.49e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 2.92e-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) = 5151.96222076
delta logL = 0.0894248287204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5151.95580335
delta logL = 0.095842245918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.651       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95004       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.

 FCN=   5151.956     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.651        165.44        .25310E-02    .28643E-03
   2  alpha         2.4188        3.5408        .33634        .63502E-05
   3  Normalizat    1.3911        .20254        .78017E-01   -.68511E-04
   4  Prefactor     .95004        .59787E-01    .45640E-01    .21759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6506
  alpha      = 2.41875
  Normalizat = 1.39108
  Prefactor  = 0.950041
 **********
 **   18 **HESSE 
 **********

 FCN=   5151.956     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.651        9.3417        .10124E-03   -1.4917    
   2  alpha         2.4188        .61608        .11615E-01   -.32506E-01
   3  Normalizat    1.3911        .35297        .34530E-03   -.80887    
   4  Prefactor     .95004        .16006        .18939E-03   -.94414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56427e-10
Minuit parameter uncertainties:
  1  9.34254
  2  0.622496
  3  0.353594
  4  0.160139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/785208': 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) = 5151.95580334
delta logL = 0.0958422468384

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.565e+01  9.343e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.419e+00  6.225e-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:  9.500e-01  1.601e-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:  1.391e+00  3.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.35
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.42 +/- 0.62
Photon Flux (Free Index): 1.35e-07 +/- 1.06e-07
Energy Flux (Free Index): 4.40e-05 +/- 2.40e-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/785208/cmap_HighResolution_419212801_419472001_4FGL_J2321.9+3204_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.80e-08', energy_flux2='4.40e-05', photon_flux_error='6.49e-08', dlogl='9.58e-02', energy_flux='4.41e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-29 13:20:08.890384', photon_index_error2='0.62', photon_index2='2.42', ts='8.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.43', time_epoch_completed='1632946808.89', return_code='0', job_id='785208', GAL2='0.95', EG2='1.39', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='1.06e-07', ts2='8.35', photon_index='2.14' WHERE bin_id='694' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 785208: <4FGL_J2321.9+3204_daily_bin694> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin694> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 13:10:25 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:10:28 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:28 2021
Terminated at Wed Sep 29 13:20:09 2021
Results reported at Wed Sep 29 13:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin694 350.478 32.0737 419212801 419472001 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            584 sec.

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

