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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin905
RA = 350.478, Dec = 32.0737
tmin = 473904001, tmax = 474163201
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='786573', job_status='RUN', time_executed='2021-09-29 13:17:48.151322', time_epoch_executed='1632946668.15' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786573/ft1_4FGL_J2321.9+3204_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786573/ft2_4FGL_J2321.9+3204_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786573/ft1_4FGL_J2321.9+3204_daily_bin905.fits outfile=/scratch/kocevski/786573/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin905.fits ra=350.478 dec=32.0737 rad=12.0 tmin=473904001.0 tmax=474163201.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.12
user 4.88
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786573/ft1_filtered_4FGL_J2321.9+3204_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/786573/ft2_4FGL_J2321.9+3204_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/786573/ltcube_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.fits outfile=/scratch/kocevski/786573/expmap_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.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/786573/ltcube_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.fits
.....................!
real 190.90
user 185.70
sys 4.89

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/786573/ft1_filtered_4FGL_J2321.9+3204_daily_bin905.fits scfile=/scratch/kocevski/786573/ft2_4FGL_J2321.9+3204_daily_bin905.fits outfile=/scratch/kocevski/786573/cmap_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786573/ft1_filtered_4FGL_J2321.9+3204_daily_bin905.fits scfile=/scratch/kocevski/786573/ft2_4FGL_J2321.9+3204_daily_bin905.fits outfile=/scratch/kocevski/786573/cmap_HighResolution_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38378E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9321       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9346       1.0000         .10000E-03   10000.    
     6 'norm      '    20.704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60659E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.756       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9927       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.607       1.0000         .10000E-03   10000.    
    18 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9606       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .95474E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    98.175       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83876       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=   7022.231     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     3564 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.579        .50506E-02** at limit **
   2  Prefactor     5.9340        9.1253        .82436E-03    .62997E-04
   3  norm          2.7845        1.2532        .60167E-04    .68400E-04
   4  Prefactor     .10000E-03    31.763        .18142E-02** at limit **
   5  Prefactor     5.9350        12.679        .82418E-03   -.62762E-05
   6  norm          20.705        6.6780        .88027E-04    .32205E-03
   7  Prefactor     .10000E-03    13.156        .18142E-02** at limit **
   8  Prefactor     11.987        7.9056        .11570E-03    .18836E-03
   9  Prefactor     24.275        14.118        .81298E-04   -.47545E-05
  10  Prefactor     .10000E-03    25.568        .18142E-02** at limit **
  11  norm          .10000E-03    .40356        .51664E-03** at limit **
  12  Prefactor     17.351        23.533        .96199E-04    .65235E-04
  13  Prefactor     .10014E-03    13.377        .68094E-01** at limit **
  14  Prefactor     29.750        22.395        .73448E-04    .11888E-04
  15  norm          3.9936        5.0908        .18829E-03    .42386E-04
  16  norm          .10000E-03    6.6162        .18142E-02** at limit **
  17  Prefactor     12.611        20.935        .11282E-03    .69734E-04
  18  norm          .10000E-03    2.9373        .27386E-03** at limit **
  19  Prefactor     8.9597        13.164        .13390E-03    .19698E-04
  20  Prefactor     .66667E-01    48.389        .14510        .45817E-04
  21  Prefactor     98.127        61.784        .20285E-03    .33122E-04
  22  Prefactor     .10000E-03    11.181        .36285E-03** at limit **
  23  Normalizat    1.0564        .25842        .33322E-03    .30723E-03
  24  Prefactor     .83886        .11572        .17563E-03    .34109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.93401
  norm       = 2.78454
  Prefactor  = 0.0001
  Prefactor  = 5.93496
  norm       = 20.7048
  Prefactor  = 0.0001
  Prefactor  = 11.9871
  Prefactor  = 24.2749
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.3511
  Prefactor  = 0.000100143
  Prefactor  = 29.7501
  norm       = 3.99358
  norm       = 0.0001
  Prefactor  = 12.6105
  norm       = 0.0001
  Prefactor  = 8.95966
  Prefactor  = 0.0666666
  Prefactor  = 98.1274
  Prefactor  = 0.0001
  Normalizat = 1.05642
  Prefactor  = 0.838855
 **********
 **   18 **HESSE 
 **********

 FCN=   7022.231     FROM HESSE     STATUS=OK           397 CALLS     3961 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    45.104        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9340        9.1229        .32974E-04   -1.5221    
   3  norm          2.7845        1.2531        .24067E-05   -1.5374    
   4  Prefactor     .10000E-03    31.763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9350        12.677        .32967E-04   -1.5221    
   6  norm          20.705        6.6781        .17605E-04   -1.4798    
   7  Prefactor     .10000E-03    13.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.987        7.9058        .46281E-05   -1.5015    
   9  Prefactor     24.275        14.117        .32519E-05   -1.4722    
  10  Prefactor     .10000E-03    25.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .40358        .10333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.351        23.533        .38480E-05   -1.4875    
  13  Prefactor     .10014E-03    11.306        .75941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.750        22.395        .14690E-04   -1.4617    
  15  norm          3.9936        5.0897        .75316E-05   -1.5308    
  16  norm          .10000E-03    6.6171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.611        20.931        .45127E-05   -1.4998    
  18  norm          .10000E-03    2.9375        .54772E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9597        13.164        .53559E-05   -1.5109    
  20  Prefactor     .66667E-01    51.604        .13968       -1.5656    
  21  Prefactor     98.127        61.726        .81141E-05   -1.3724    
  22  Prefactor     .10000E-03    11.181        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0564        .25876        .13329E-04   -.91164    
  24  Prefactor     .83886        .11580        .35125E-04   -.98312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62424e-10
Minuit parameter uncertainties:
  1  0.000102831
  2  9.12505
  3  1.2531
  4  1.63802e-05
  5  12.6824
  6  6.6783
  7  2.96022e-05
  8  7.90648
  9  14.1193
  10  4.28122e-05
  11  1.55218e-06
  12  23.5459
  13  0.00254181
  14  22.4011
  15  5.09027
  16  8.87128e-06
  17  20.943
  18  2.26878e-06
  19  13.1685
  20  3.71
  21  61.7667
  22  3.66578e-05
  23  0.259065
  24  0.115836
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.994e+00  5.090e+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:  8.389e-01  1.158e-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.056e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.39e-05

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

Saving results to:
/scratch/kocevski/786573/likelihoodResults_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.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) = 7022.15309885
delta logL = 0.0774414422422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7022.14503272
delta logL = 0.0855075657964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4394       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5295       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84114       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=   7022.145     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      238 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4390        4.6764        .16158E-03    .83974E-03
   2  alpha         2.5297        .99334        .20830E-01    .63359E-04
   3  Normalizat    1.0465        .23911        .33455E-03   -.38694E-03
   4  Prefactor     .84118        .11377        .17538E-03   -.88956E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.43901
  alpha      = 2.52968
  Normalizat = 1.04654
  Prefactor  = 0.841183
 **********
 **   18 **HESSE 
 **********

 FCN=   7022.145     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4390        4.4287        .64632E-05   -1.5337    
   2  alpha         2.5297        .94306        .83320E-03    .11872E-01
   3  Normalizat    1.0465        .23909        .66910E-04   -.91487    
   4  Prefactor     .84118        .11378        .35077E-04   -.98228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.83682e-10
Minuit parameter uncertainties:
  1  4.42914
  2  0.966993
  3  0.239332
  4  0.113814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786573': 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) = 7022.14503255
delta logL = 0.0855077348242

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  3.439e+00  4.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.530e+00  9.670e-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:  8.412e-01  1.138e-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.047e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.53 +/- 0.97
Photon Flux (Free Index): 3.43e-08 +/- 4.24e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.11e-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/786573/cmap_HighResolution_473904001_474163201_4FGL_J2321.9+3204_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.02e-05', photon_flux_error='3.10e-08', dlogl='8.55e-02', energy_flux='1.09e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-29 13:30:56.451414', photon_index_error2='0.97', photon_index2='2.53', ts='1.15', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='1.11e-05', EG='1.06', time_epoch_completed='1632947456.45', return_code='0', job_id='786573', GAL2='0.84', EG2='1.05', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.24e-08', ts2='1.33', photon_index='2.14' WHERE bin_id='905' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 786573: <4FGL_J2321.9+3204_daily_bin905> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin905> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 13:15:28 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:15:30 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:15:30 2021
Terminated at Wed Sep 29 13:30:57 2021
Results reported at Wed Sep 29 13:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin905 350.478 32.0737 473904001 474163201 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

