/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 65 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 = 7558
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin9
RA = 350.478, Dec = 32.0737
tmin = 241660801, tmax = 241920001
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='781026', job_status='RUN', time_executed='2021-09-29 12:56:40.522748', time_epoch_executed='1632945400.52' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781026/ft1_4FGL_J2321.9+3204_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781026/ft1_4FGL_J2321.9+3204_daily_bin9.fits outfile=/scratch/kocevski/781026/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin9.fits ra=350.478 dec=32.0737 rad=12.0 tmin=241660801.0 tmax=241920001.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 1.46
user 1.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.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/781026/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/781026/ft1_filtered_4FGL_J2321.9+3204_daily_bin9.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781026/ft1_filtered_4FGL_J2321.9+3204_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/781026/ltcube_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.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/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits
.....................!
real 12.45
user 12.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781026/ft1_filtered_4FGL_J2321.9+3204_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/781026/ltcube_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.fits outfile=/scratch/kocevski/781026/expmap_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.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/781026/ltcube_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.fits
.....................!
real 189.54
user 184.55
sys 4.69

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/781026/ft1_filtered_4FGL_J2321.9+3204_daily_bin9.fits scfile=/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits outfile=/scratch/kocevski/781026/cmap_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781026/ft1_filtered_4FGL_J2321.9+3204_daily_bin9.fits scfile=/scratch/kocevski/781026/ft2_4FGL_J2321.9+3204_daily_bin9.fits outfile=/scratch/kocevski/781026/cmap_HighResolution_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15036E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2143       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5627       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8158       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35195E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0967       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1597       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99576       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0282       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=   8783.573     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2334 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.518        17.189        .22091E-05    .23334E-04
   2  Prefactor     .10010E-03    3.9234       -.98164E-06** at limit **
   3  norm          1.2143        .84823        .23000E-07    .74159E-05
   4  Prefactor     .10000E-03    28.268       -.77614E-07** at limit **
   5  Prefactor     .10000E-03    6.1047        .17580E-07** at limit **
   6  norm          .10000E-03    1.0358       -.34361E-08** at limit **
   7  Prefactor     5.1658        10.224        .34372E-05    .18409E-04
   8  Prefactor     .10000E-03    2.4928       -.36001E-08** at limit **
   9  Prefactor     8.5648        9.8860        .13266E-06    .45549E-05
  10  Prefactor     9.8133        17.282        .16270E-05    .48293E-05
  11  norm          .10000E-03    .42611        .20293E-08** at limit **
  12  Prefactor     .10000E-03    13.045       -.17566E-07** at limit **
  13  Prefactor     .10000E-03    13.739        .20448E-06** at limit **
  14  Prefactor     .10000E-03    6.3193       -.14438E-08** at limit **
  15  norm          .10002E-03    2.6320       -.32025E-06** at limit **
  16  norm          .10000E-03    4.2103        .20584E-07** at limit **
  17  Prefactor     2.0909        25.073        .28666E-05    .59594E-04
  18  norm          1.6878        1.5055       -.14140E-07   -.25091E-05
  19  Prefactor     13.444        16.786        .47698E-07    .63671E-05
  20  Prefactor     .10000E-03    29.655        .40680E-06** at limit **
  21  Prefactor     18.501        44.300       -.18284E-05   -.14706E-03
  22  Prefactor     2.1612        6.8543        .27456E-06   -.99951E-05
  23  Normalizat    .99548        .18888       -.48328E-06    .10236E-03
  24  Prefactor     1.0284        .91870E-01   -.52981E-07    .15512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5184
  Prefactor  = 0.000100096
  norm       = 1.21434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.16579
  Prefactor  = 0.0001
  Prefactor  = 8.56481
  Prefactor  = 9.81326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100016
  norm       = 0.0001
  Prefactor  = 2.0909
  norm       = 1.6878
  Prefactor  = 13.4445
  Prefactor  = 0.0001
  Prefactor  = 18.5012
  Prefactor  = 2.16119
  Normalizat = 0.995483
  Prefactor  = 1.02837
 **********
 **   18 **HESSE 
 **********

 FCN=   8783.573     FROM HESSE     STATUS=OK           407 CALLS     2741 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.518        17.106        .61816E-03   -1.5059    
   2  Prefactor     .10010E-03    27.053        .34769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2143        .84571        .69833E-04   -1.5488    
   4  Prefactor     .10000E-03    28.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0388        .93144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1658        10.181        .88436E-03   -1.5253    
   8  Prefactor     .10000E-03    2.5080        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5648        9.8809        .13699E-03   -1.5123    
  10  Prefactor     9.8133        17.275        .63951E-03   -1.5081    
  11  norm          .10000E-03    .44585        .11936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    5.0718        .46314E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0909        26.082        .28504E-03   -1.5419    
  18  norm          1.6878        1.5181        .10574E-03   -1.5448    
  19  Prefactor     13.444        16.786        .10924E-03   -1.4974    
  20  Prefactor     .10000E-03    29.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.501        44.527        .93022E-04   -1.4847    
  22  Prefactor     2.1612        6.7395        .28030E-03   -1.5414    
  23  Normalizat    .99548        .21597        .33974E-03   -.93182    
  24  Prefactor     1.0284        .10637        .16627E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67367e-09
Minuit parameter uncertainties:
  1  17.1138
  2  0.00322609
  3  0.845714
  4  4.82636e-05
  5  4.31697e-07
  6  6.5922e-07
  7  10.1843
  8  2.17981e-06
  9  9.88275
  10  17.2839
  11  4.61443e-07
  12  1.67492e-05
  13  2.21139e-05
  14  7.7418e-07
  15  0.000571593
  16  7.2155e-07
  17  14.7773
  18  1.51814
  19  16.7917
  20  0.000178465
  21  44.6067
  22  6.74189
  23  0.216156
  24  0.106387
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  5.716e-04  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.028e+00  1.064e-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:  9.955e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781026/likelihoodResults_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.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): 102
logL (Free Index) = 8783.5728797
delta logL = -6.69644396112e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8783.5728129
delta logL = -1.65515302797e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11281E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2188       1.0000          .0000       5.0000    
     3 'Normalizat'    .99537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0284       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=   8783.573     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      247 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    1.9982        .51751E-01** at limit **
   2  alpha         2.2582        3.6280        .41485       -.72648E-06
   3  Normalizat    .99548        .39354E-02    .76771E-01   -.50680E-03
   4  Prefactor     1.0284        .19639E-02    .41384E-01   -.99410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100072
  alpha      = 2.25823
  Normalizat = 0.99548
  Prefactor  = 1.02837
 **********
 **   18 **HESSE 
 **********

 FCN=   8783.573     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      284 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    6.4604        .48014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2582        3.7487        .16594       -.96860E-01
   3  Normalizat    .99548        .66985E-02    .33974E-03   -.93182    
   4  Prefactor     1.0284        .33486E-02    .16627E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00419e-08
Minuit parameter uncertainties:
  1  0.00136383
  2  323.062
  3  0.00669847
  4  0.00334858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781026': 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): 102
logL (Free Index) = 8783.57281258
delta logL = 1.60662239068e-07

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.001e-04  1.364e-03  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.258e+00  3.231e+02  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.028e+00  3.349e-03  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:  9.955e-01  6.698e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.478 32.074

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/781026/cmap_HighResolution_241660801_241920001_4FGL_J2321.9+3204_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-09-29 13:09:40.254537', job_id='781026', GAL2='1.03', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632946180.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='9' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:09:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 781026: <4FGL_J2321.9+3204_daily_bin9> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin9> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:55:24 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:55:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 12:55:26 2021
Terminated at Wed Sep 29 13:09:41 2021
Results reported at Wed Sep 29 13:09:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin9 350.478 32.0737 241660801 241920001 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

