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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin83
RA = 350.478, Dec = 32.0737
tmin = 260841601, tmax = 261100801
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='781138', job_status='RUN', time_executed='2021-09-29 12:58:50.880813', time_epoch_executed='1632945530.88' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781138/ft1_4FGL_J2321.9+3204_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781138/ft1_4FGL_J2321.9+3204_daily_bin83.fits outfile=/scratch/kocevski/781138/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin83.fits ra=350.478 dec=32.0737 rad=12.0 tmin=260841601.0 tmax=261100801.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.58
user 1.40
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781138/ft1_filtered_4FGL_J2321.9+3204_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/781138/ltcube_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.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/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits
.....................!
real 12.25
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781138/ft1_filtered_4FGL_J2321.9+3204_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/781138/ltcube_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.fits outfile=/scratch/kocevski/781138/expmap_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.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/781138/ltcube_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.fits
.....................!
real 189.97
user 185.04
sys 4.58

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/781138/ft1_filtered_4FGL_J2321.9+3204_daily_bin83.fits scfile=/scratch/kocevski/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits outfile=/scratch/kocevski/781138/cmap_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781138/ft1_filtered_4FGL_J2321.9+3204_daily_bin83.fits scfile=/scratch/kocevski/781138/ft2_4FGL_J2321.9+3204_daily_bin83.fits outfile=/scratch/kocevski/781138/cmap_HighResolution_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3526       1.0000         .10000E-03   10000.    
     3 'norm      '    7.9628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7388       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20790E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4285       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26643E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2227       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.128       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89397       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0431       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7458.832     FROM MIGRAD    STATUS=CONVERGED    991 CALLS     3199 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6661        14.253        .12891E-03    .10671E-04
   2  Prefactor     5.3549        7.1776        .17371E-03   -.46467E-05
   3  norm          7.9639        1.8823        .55426E-04   -.42602E-03
   4  Prefactor     .10000E-03    21.732        .18142E-02** at limit **
   5  Prefactor     .10000E-03    35.225        .18142E-02** at limit **
   6  norm          .10000E-03    3.5519        .15756E-02** at limit **
   7  Prefactor     .10000E-03    4.8876        .18142E-02** at limit **
   8  Prefactor     3.2641        6.6023        .22433E-03   -.19506E-03
   9  Prefactor     .10000E-03    13.308        .18142E-02** at limit **
  10  Prefactor     .10000E-03    8.6122        .18142E-02** at limit **
  11  norm          3.8928        1.7237        .72078E-04   -.34858E-04
  12  Prefactor     2.7374        15.980        .24602E-03   -.36968E-05
  13  Prefactor     .10000E-03    14.936        .18142E-02** at limit **
  14  Prefactor     .10001E-03    22.284        .11422    ** at limit **
  15  norm          2.4192        3.9732        .21363E-03    .84083E-05
  16  norm          3.2442        6.8392        .11247E-02    .20278E-04
  17  Prefactor     .10000E-03    160.63        .55116E-02** at limit **
  18  norm          6.2237        3.0755        .10309E-03    .29004E-04
  19  Prefactor     .10000E-03    11.937        .18142E-02** at limit **
  20  Prefactor     18.104        32.995        .93990E-04    .29151E-04
  21  Prefactor     .10000E-03    29.349        .18142E-02** at limit **
  22  Prefactor     11.131        7.6502        .12010E-03    .39285E-04
  23  Normalizat    .89435        .25529        .37329E-03   -.12776E-03
  24  Prefactor     1.0428        .12392        .17220E-03   -.12928E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.66612
  Prefactor  = 5.35487
  norm       = 7.96392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.89282
  Prefactor  = 2.73736
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.41923
  norm       = 3.24417
  Prefactor  = 0.0001
  norm       = 6.22373
  Prefactor  = 0.0001
  Prefactor  = 18.1044
  Prefactor  = 0.0001
  Prefactor  = 11.1309
  Normalizat = 0.894346
  Prefactor  = 1.04284
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.832     FROM HESSE     STATUS=OK           387 CALLS     3586 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6661        14.253        .51562E-05   -1.5086    
   2  Prefactor     5.3549        7.1774        .69483E-05   -1.5245    
   3  norm          7.9639        1.8822        .22171E-05   -1.5143    
   4  Prefactor     .10000E-03    21.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5533        .31513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2641        6.6015        .89731E-05   -1.5347    
   9  Prefactor     .10000E-03    13.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8928        1.7236        .28831E-05   -1.5313    
  12  Prefactor     2.7374        15.979        .98408E-05   -1.5377    
  13  Prefactor     .10000E-03    14.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    21.646        .11661       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4192        3.9647        .85452E-05   -1.5397    
  16  norm          3.2442        6.8383        .44986E-04   -1.5348    
  17  Prefactor     .10000E-03    165.86        .22047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2237        3.0754        .41235E-05   -1.5209    
  19  Prefactor     .10000E-03    11.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.104        33.005        .37596E-05   -1.4857    
  21  Prefactor     .10000E-03    29.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.131        7.6501        .48039E-05   -1.5041    
  23  Normalizat    .89435        .25516        .14932E-04   -.96659    
  24  Prefactor     1.0428        .12395        .34440E-04   -.91315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50381e-10
Minuit parameter uncertainties:
  1  14.2577
  2  7.17856
  3  1.88225
  4  0.000126501
  5  7.83723e-05
  6  1.33576e-05
  7  4.44345e-07
  8  6.60301
  9  2.17239e-05
  10  2.78322e-06
  11  1.72364
  12  13.2324
  13  4.08327e-06
  14  0.000742158
  15  3.96516
  16  6.83993
  17  0.00021559
  18  3.07551
  19  1.15004e-05
  20  33.0387
  21  0.000210464
  22  7.65075
  23  0.255506
  24  0.123981
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.419e+00  3.965e+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.043e+00  1.240e-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:  8.943e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781138/likelihoodResults_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.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) = 7458.19074068
delta logL = 0.641409199431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7458.15463094
delta logL = 0.677518937794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13270       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .79169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0765       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=   7458.155     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      306 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13261        3.7948        .55281E-02    .27474E-02
   2  alpha         5.0000        4.6928        .46288    ** at limit **
   3  Normalizat    .79147        .12000        .89060E-01    .17358E-03
   4  Prefactor     1.0767        .52683E-01    .38556E-01    .38926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.132609
  alpha      = 5
  Normalizat = 0.791471
  Prefactor  = 1.07674
 **********
 **   18 **HESSE 
 **********

 FCN=   7458.155     FROM HESSE     STATUS=OK            35 CALLS      341 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13261        .12925        .25339E-03   -1.5635    
   2  alpha         5.0000        1.0087        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79147        .25738        .39447E-03   -1.0039    
   4  Prefactor     1.0767        .12408        .16976E-03   -.90214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78262e-09
Minuit parameter uncertainties:
  1  0.129255
  2  1.21689e-05
  3  0.257781
  4  0.124114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781138': 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) = 7458.15462703
delta logL = 0.677522845254

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.326e-01  1.293e-01  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  5.000e+00  1.217e-05  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.077e+00  1.241e-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:  7.915e-01  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 350.478 32.074
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.11e-08 +/- 7.87e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.09e-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/781138/cmap_HighResolution_260841601_261100801_4FGL_J2321.9+3204_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='6.78e-01', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-29 13:11:58.626677', photon_index_error2='0.00', photon_index2='5.00', ts='0.53', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.18e-08', energy_flux_error2='1.09e-05', EG='0.89', time_epoch_completed='1632946318.63', return_code='0', job_id='781138', GAL2='1.08', EG2='0.79', return_code2='0', photon_flux_error2='7.87e-08', ts2='2.03', photon_index='2.14' WHERE bin_id='83' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 781138: <4FGL_J2321.9+3204_daily_bin83> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin83> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:55:34 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 12:55:35 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:35 2021
Terminated at Wed Sep 29 13:11:59 2021
Results reported at Wed Sep 29 13:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin83 350.478 32.0737 260841601 261100801 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 :                                   787.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

