/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7415
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1086
RA = 350.478, Dec = 32.0737
tmin = 520819201, tmax = 521078401
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='787885', job_status='RUN', time_executed='2021-09-29 13:20:44.189823', time_epoch_executed='1632946844.19' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787885/ft1_4FGL_J2321.9+3204_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787885/ft1_4FGL_J2321.9+3204_daily_bin1086.fits outfile=/scratch/kocevski/787885/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1086.fits ra=350.478 dec=32.0737 rad=12.0 tmin=520819201.0 tmax=521078401.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 3.50
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.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/787885/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.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/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/787885/ltcube_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.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/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits
.....................!
real 11.86
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/787885/ltcube_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.fits outfile=/scratch/kocevski/787885/expmap_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.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/787885/ltcube_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.fits
.....................!
real 191.06
user 185.63
sys 5.07

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.fits scfile=/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits outfile=/scratch/kocevski/787885/cmap_HighResolution_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.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/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/787885/ft2_4FGL_J2321.9+3204_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787885/Model_4FGL_J2321.9+3204_daily_bin1086.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/787885/ft1_filtered_4FGL_J2321.9+3204_daily_bin1086.fits.....................!
real 110.52
user 109.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12745       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.869       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0997       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6772       1.0000         .10000E-03   10000.    
    15 'norm      '    7.0516       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31373E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .12361E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.604       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1876       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82953       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0729       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=   10286.94     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2803 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33007E-01    11.518       -.88801E-06    .10298E-03
   2  Prefactor     .10000E-03    4.6829       -.91734E-07** at limit **
   3  norm          4.4680        1.3185        .16782E-08   -.33806E-05
   4  Prefactor     .10000E-03    23.215        .58169E-08** at limit **
   5  Prefactor     .10000E-03    4.9013        .63293E-08** at limit **
   6  norm          4.1842        3.7051        .10014E-05    .42455E-04
   7  Prefactor     .10000E-03    11.286        .10362E-07** at limit **
   8  Prefactor     .56380        3.9789        .94248E-06    .22875E-04
   9  Prefactor     7.6129        7.6904        .27055E-06   -.14617E-04
  10  Prefactor     17.868        20.406       -.11702E-06   -.16606E-05
  11  norm          2.5798        1.3087        .13194E-07   -.16773E-03
  12  Prefactor     3.0970        21.453       -.65131E-06    .37347E-05
  13  Prefactor     14.818        11.859       -.71184E-06   -.55353E-04
  14  Prefactor     7.6743        16.495       -.20885E-05    .54671E-05
  15  norm          7.0494        5.4081       -.18820E-06   -.32681E-03
  16  norm          .10000E-03    2.7514        .11660E-07** at limit **
  17  Prefactor     .10005E-03    12.108        .86593E-06** at limit **
  18  norm          .10000E-03    1.3762        .34629E-06** at limit **
  19  Prefactor     .10000E-03    5.5385       -.17714E-07** at limit **
  20  Prefactor     31.603        34.241        .31347E-07   -.73225E-05
  21  Prefactor     .10000E-03    52.203       -.63300E-07** at limit **
  22  Prefactor     8.1985        7.4442        .22865E-06    .13347E-03
  23  Normalizat    .82959        .19534        .74036E-06   -.73998E-04
  24  Prefactor     1.0729        .92185E-01   -.31860E-06   -.13326E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0330073
  Prefactor  = 0.0001
  norm       = 4.46796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.18423
  Prefactor  = 0.0001
  Prefactor  = 0.563802
  Prefactor  = 7.61293
  Prefactor  = 17.8681
  norm       = 2.5798
  Prefactor  = 3.09695
  Prefactor  = 14.8179
  Prefactor  = 7.67427
  norm       = 7.04942
  norm       = 0.0001
  Prefactor  = 0.000100054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6034
  Prefactor  = 0.0001
  Prefactor  = 8.19851
  Normalizat = 0.829586
  Prefactor  = 1.07293
 **********
 **   18 **HESSE 
 **********

 FCN=   10286.94     FROM HESSE     STATUS=OK           421 CALLS     3224 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33007E-01    14.207        .97128E-01   -1.5672    
   2  Prefactor     .10000E-03    4.7500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4680        1.3180        .61142E-04   -1.5285    
   4  Prefactor     .10000E-03    23.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1842        3.6895        .87801E-03   -1.5299    
   7  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .56380        3.8300        .38519E-03   -1.5558    
   9  Prefactor     7.6129        7.6894        .14534E-03   -1.5156    
  10  Prefactor     17.868        20.416        .94747E-04   -1.4862    
  11  norm          2.5798        1.3054        .78936E-04   -1.5387    
  12  Prefactor     3.0970        21.323        .23033E-03   -1.5356    
  13  Prefactor     14.818        11.784        .10403E-03   -1.4938    
  14  Prefactor     7.6743        16.477        .14473E-03   -1.5154    
  15  norm          7.0494        5.4594        .15107E-03   -1.5177    
  16  norm          .10000E-03    2.7535        .16430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    16.378        .87569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2329        .22602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.603        34.357        .71274E-04   -1.4583    
  21  Prefactor     .10000E-03    52.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1985        7.4596        .14011E-03   -1.5135    
  23  Normalizat    .82959        .21811        .39160E-03   -.98980    
  24  Prefactor     1.0729        .10355        .17069E-03   -.90337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00802e-10
Minuit parameter uncertainties:
  1  1.36782
  2  6.40438e-06
  3  1.31805
  4  3.77168e-06
  5  1.40802e-06
  6  3.68966
  7  3.01133e-06
  8  2.93896
  9  7.69043
  10  20.4244
  11  1.30542
  12  16.2606
  13  11.786
  14  16.4868
  15  5.45976
  16  7.67593e-07
  17  0.00188728
  18  1.3197e-05
  19  1.90712e-06
  20  34.3789
  21  4.242e-05
  22  7.46048
  23  0.218336
  24  0.103573
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  7.049e+00  5.460e+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.073e+00  1.036e-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.296e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.49e-05

TS (Fixed Index): 3.20
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787885/likelihoodResults_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.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) = 10286.9360746
delta logL = 6.09184644418e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10286.9360724
delta logL = 6.31401144346e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0561       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1311       1.0000          .0000       5.0000    
     3 'Normalizat'    .83000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0728       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10286.94     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      270 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0584        5.1459        .75510E-03    .21279E-03
   2  alpha         2.1315        .60627        .18690E-01    .67371E-04
   3  Normalizat    .82987        .20568        .39155E-03   -.11672E-04
   4  Prefactor     1.0729        .10103        .17069E-03   -.35033E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.0584
  alpha      = 2.13147
  Normalizat = 0.82987
  Prefactor  = 1.07286
 **********
 **   18 **HESSE 
 **********

 FCN=   10286.94     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0584        5.1068        .15102E-03   -1.5177    
   2  alpha         2.1315        .60159        .37380E-02   -.14795    
   3  Normalizat    .82987        .20570        .15662E-04   -.98970    
   4  Prefactor     1.0729        .10107        .68277E-05   -.90339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78259e-13
Minuit parameter uncertainties:
  1  5.10714
  2  0.607684
  3  0.205896
  4  0.101084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787885': 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) = 10286.9360718
delta logL = 6.37014054519e-05

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  7.058e+00  5.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.131e+00  6.077e-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:  1.073e+00  1.011e-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.299e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.13 +/- 0.61
Photon Flux (Free Index): 4.26e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.45e-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/787885/cmap_HighResolution_520819201_521078401_4FGL_J2321.9+3204_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-05', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.94e-05', photon_flux_error='3.32e-08', dlogl='6.37e-05', energy_flux='1.93e-05', photon_flux2='4.26e-08', job_status='DONE', time_completed='2021-09-29 13:36:10.682028', photon_index_error2='0.61', photon_index2='2.13', ts='3.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.45e-05', EG='0.83', time_epoch_completed='1632947770.68', return_code='0', job_id='787885', GAL2='1.07', EG2='0.83', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.91e-08', ts2='3.19', photon_index='2.14' WHERE bin_id='1086' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 787885: <4FGL_J2321.9+3204_daily_bin1086> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1086> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:20:31 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:20:32 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:20:32 2021
Terminated at Wed Sep 29 13:36:11 2021
Results reported at Wed Sep 29 13:36:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1086 350.478 32.0737 520819201 521078401 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 :                                   924.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

