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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin26
RA = 350.478, Dec = 32.0737
tmin = 246067201, tmax = 246326401
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='781052', job_status='RUN', time_executed='2021-09-29 12:55:36.855283', time_epoch_executed='1632945336.86' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781052/ft1_4FGL_J2321.9+3204_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781052/ft2_4FGL_J2321.9+3204_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781052/ft1_4FGL_J2321.9+3204_daily_bin26.fits outfile=/scratch/kocevski/781052/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin26.fits ra=350.478 dec=32.0737 rad=12.0 tmin=246067201.0 tmax=246326401.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.49
user 1.30
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781052/ft1_filtered_4FGL_J2321.9+3204_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/781052/ft2_4FGL_J2321.9+3204_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/781052/ltcube_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.fits outfile=/scratch/kocevski/781052/expmap_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.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/781052/ltcube_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.fits
.....................!
real 189.01
user 184.70
sys 4.00

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/781052/ft1_filtered_4FGL_J2321.9+3204_daily_bin26.fits scfile=/scratch/kocevski/781052/ft2_4FGL_J2321.9+3204_daily_bin26.fits outfile=/scratch/kocevski/781052/cmap_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781052/ft1_filtered_4FGL_J2321.9+3204_daily_bin26.fits scfile=/scratch/kocevski/781052/ft2_4FGL_J2321.9+3204_daily_bin26.fits outfile=/scratch/kocevski/781052/cmap_HighResolution_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9493       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.018       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7241       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    103.33       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.057       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95832       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94947       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=   9585.794     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2721 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1984        10.633        .92077E-06   -.13635E-04
   2  Prefactor     9.9489        8.9597        .79593E-07   -.16083E-04
   3  norm          1.2706        .88643        .33220E-07   -.53796E-04
   4  Prefactor     37.050        73.710       -.16971E-05    .11270E-04
   5  Prefactor     .10000E-03    8.4209        .52706E-07** at limit **
   6  norm          4.7694        3.3424       -.15952E-07    .87565E-04
   7  Prefactor     8.7574        16.480        .87603E-06    .44926E-04
   8  Prefactor     5.4331        6.0778        .91448E-06    .48190E-04
   9  Prefactor     6.8491        8.1309        .68389E-06   -.22196E-04
  10  Prefactor     .10000E-03    27.617        .87308E-07** at limit **
  11  norm          3.0435        1.2808       -.44772E-07    .50256E-04
  12  Prefactor     .10000E-03    23.354       -.57764E-07** at limit **
  13  Prefactor     3.4095        10.838        .42605E-05    .24388E-04
  14  Prefactor     .10000E-03    13.620       -.14774E-06** at limit **
  15  norm          2.7240        4.1621        .31259E-05   -.34652E-03
  16  norm          5.9865        6.4478        .23868E-07    .62665E-05
  17  Prefactor     .10000E-03    33.735       -.77035E-06** at limit **
  18  norm          5.9296        2.7948       -.64970E-07    .34514E-04
  19  Prefactor     .10000E-03    4.8027       -.68562E-07** at limit **
  20  Prefactor     103.33        40.284        .22791E-06   -.25687E-04
  21  Prefactor     14.055        34.885        .52222E-06    .45104E-05
  22  Prefactor     .10000E-03    4.2287       -.41447E-06** at limit **
  23  Normalizat    .95845        .18873        .12784E-05    .26250E-04
  24  Prefactor     .94940        .91876E-01   -.16432E-05   -.46517E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.1984
  Prefactor  = 9.9489
  norm       = 1.27063
  Prefactor  = 37.0501
  Prefactor  = 0.0001
  norm       = 4.76938
  Prefactor  = 8.75742
  Prefactor  = 5.43311
  Prefactor  = 6.84909
  Prefactor  = 0.000100001
  norm       = 3.04345
  Prefactor  = 0.0001
  Prefactor  = 3.40954
  Prefactor  = 0.0001
  norm       = 2.72401
  norm       = 5.98651
  Prefactor  = 0.000100002
  norm       = 5.92958
  Prefactor  = 0.0001
  Prefactor  = 103.328
  Prefactor  = 14.0547
  Prefactor  = 0.0001
  Normalizat = 0.958448
  Prefactor  = 0.949404
 **********
 **   18 **HESSE 
 **********

 FCN=   9585.794     FROM HESSE     STATUS=OK           401 CALLS     3122 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1984        10.620        .80620E-03   -1.5210    
   2  Prefactor     9.9489        8.9748        .12704E-03   -1.5077    
   3  norm          1.2706        .88004        .74117E-04   -1.5483    
   4  Prefactor     37.050        73.805        .65872E-04   -1.4490    
   5  Prefactor     .10000E-03    8.4519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7694        3.3387        .14330E-03   -1.5271    
   7  Prefactor     8.7574        16.479        .67724E-03   -1.5116    
   8  Prefactor     5.4331        6.0570        .86200E-03   -1.5242    
   9  Prefactor     6.8491        8.1284        .76654E-03   -1.5184    
  10  Prefactor     .10000E-03    28.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0435        1.2807        .69019E-04   -1.5359    
  12  Prefactor     .10000E-03    23.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4095        10.815        .10955E-02   -1.5339    
  14  Prefactor     .10000E-03    13.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7240        4.1929        .11964E-02   -1.5378    
  16  norm          5.9865        6.4486        .16411E-03   -1.5219    
  17  Prefactor     .10000E-03    34.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9296        2.7932        .10702E-03   -1.5221    
  19  Prefactor     .10000E-03    4.8045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     103.33        40.431        .39555E-04   -1.3671    
  21  Prefactor     14.055        34.796        .10683E-03   -1.4958    
  22  Prefactor     .10000E-03    4.2784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95845        .22125        .35324E-03   -.94436    
  24  Prefactor     .94940        .10721        .17216E-03   -.94436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74497e-10
Minuit parameter uncertainties:
  1  10.6237
  2  8.97605
  3  0.88005
  4  73.9874
  5  5.43953e-06
  6  3.33886
  7  16.4873
  8  6.05769
  9  8.12971
  10  0.000265925
  11  1.28068
  12  0.000121665
  13  10.8214
  14  3.32969e-05
  15  4.19334
  16  6.44937
  17  0.000462892
  18  2.79327
  19  1.07526e-05
  20  40.4421
  21  34.8463
  22  6.44282e-05
  23  0.221465
  24  0.107235
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.724e+00  4.193e+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:  9.494e-01  1.072e-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.584e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781052/likelihoodResults_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.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) = 9585.77791709
delta logL = 0.0162757172075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9585.77752937
delta logL = 0.016663443188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6756       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3786       1.0000          .0000       5.0000    
     3 'Normalizat'    .95283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95052       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=   9585.778     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6716        156.94        .62284E-02    .87321E-03
   2  alpha         2.3754        3.3984        .41213        .26946E-04
   3  Normalizat    .95284        .78952E-01    .80013E-01   -.25770E-04
   4  Prefactor     .95060        .30203E-01    .45646E-01   -.50222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67165
  alpha      = 2.37545
  Normalizat = 0.952844
  Prefactor  = 0.950601
 **********
 **   18 **HESSE 
 **********

 FCN=   9585.778     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6716        4.2639        .22413E-03   -1.5381    
   2  alpha         2.3754        1.2975        .33997E-01   -.49841E-01
   3  Normalizat    .95284        .21437        .35416E-03   -.94627    
   4  Prefactor     .95060        .10372        .17206E-03   -.94395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8414e-09
Minuit parameter uncertainties:
  1  4.26441
  2  1.36437
  3  0.214565
  4  0.103739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781052': 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) = 9585.77752402
delta logL = 0.0166687875353

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.672e+00  4.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.375e+00  1.364e+00  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.506e-01  1.037e-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.528e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/781052/cmap_HighResolution_246067201_246326401_4FGL_J2321.9+3204_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-29 13:09:58.950189', job_id='781052', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1632946198.95', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.67e-02', ts2='0.59', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='26' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 781052: <4FGL_J2321.9+3204_daily_bin26> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin26 350.478 32.0737 246067201 246326401 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 :                                   859.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

