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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1085
RA = 350.478, Dec = 32.0737
tmin = 520560001, tmax = 520819201
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='787883', job_status='RUN', time_executed='2021-09-29 13:23:59.283833', time_epoch_executed='1632947039.28' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787883/ft1_4FGL_J2321.9+3204_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787883/ft1_4FGL_J2321.9+3204_daily_bin1085.fits outfile=/scratch/kocevski/787883/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1085.fits ra=350.478 dec=32.0737 rad=12.0 tmin=520560001.0 tmax=520819201.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.25
user 4.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.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/787883/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/787883/ft1_filtered_4FGL_J2321.9+3204_daily_bin1085.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787883/ft1_filtered_4FGL_J2321.9+3204_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/787883/ltcube_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.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/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits
.....................!
real 12.34
user 12.01
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787883/ft1_filtered_4FGL_J2321.9+3204_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/787883/ltcube_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.fits outfile=/scratch/kocevski/787883/expmap_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.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/787883/ltcube_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.fits
.....................!
real 190.13
user 184.99
sys 4.83

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/787883/ft1_filtered_4FGL_J2321.9+3204_daily_bin1085.fits scfile=/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits outfile=/scratch/kocevski/787883/cmap_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787883/ft1_filtered_4FGL_J2321.9+3204_daily_bin1085.fits scfile=/scratch/kocevski/787883/ft2_4FGL_J2321.9+3204_daily_bin1085.fits outfile=/scratch/kocevski/787883/cmap_HighResolution_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6079       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.326       1.0000         .10000E-03   10000.    
     6 'norm      '    28.195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.426       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1788       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.5174       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.204       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.906       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25292E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8532       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83116       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=   5866.413     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2695 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.605        22.382        .15715E-05    .22508E-05
   2  Prefactor     3.6072        8.3211        .61203E-06   -.23290E-05
   3  norm          3.0828        1.5046       -.14149E-07    .88442E-05
   4  Prefactor     .10000E-03    37.020       -.80859E-07** at limit **
   5  Prefactor     26.324        29.560        .16076E-07    .80429E-05
   6  norm          28.195        9.3395        .24681E-07    .90491E-05
   7  Prefactor     50.426        29.390       -.20014E-07   -.17299E-05
   8  Prefactor     .10000E-03    8.5939        .41232E-07** at limit **
   9  Prefactor     1.1783        29.367        .51696E-05    .17649E-05
  10  Prefactor     .10000E-03    14.592       -.13914E-06** at limit **
  11  norm          2.4061        1.7223       -.92729E-08   -.53876E-08
  12  Prefactor     16.624        29.242       -.60117E-06   -.10538E-04
  13  Prefactor     4.4701        10.632        .39879E-06   -.10620E-05
  14  Prefactor     .10000E-03    10.264       -.28281E-06** at limit **
  15  norm          6.5171        6.9364        .55061E-08    .32995E-05
  16  norm          .10000E-03    6.1209       -.19928E-07** at limit **
  17  Prefactor     20.204        25.636       -.70228E-07    .49526E-06
  18  norm          2.6859        2.4451       -.84795E-08   -.11744E-04
  19  Prefactor     .10000E-03    12.056        .30978E-06** at limit **
  20  Prefactor     53.903        45.071        .15239E-06    .13073E-04
  21  Prefactor     .10000E-03    200.50        .38757E-05** at limit **
  22  Prefactor     9.8519        8.8341        .11937E-05   -.14975E-04
  23  Normalizat    1.0492        .25290       -.11193E-06    .24704E-04
  24  Prefactor     .83110        .11343        .12089E-06    .29767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6053
  Prefactor  = 3.60719
  norm       = 3.08284
  Prefactor  = 0.0001
  Prefactor  = 26.3243
  norm       = 28.1952
  Prefactor  = 50.4264
  Prefactor  = 0.0001
  Prefactor  = 1.17826
  Prefactor  = 0.0001
  norm       = 2.40609
  Prefactor  = 16.6244
  Prefactor  = 4.47011
  Prefactor  = 0.0001
  norm       = 6.51713
  norm       = 0.0001
  Prefactor  = 20.2042
  norm       = 2.6859
  Prefactor  = 0.0001
  Prefactor  = 53.9033
  Prefactor  = 0.0001
  Prefactor  = 9.85188
  Normalizat = 1.04921
  Prefactor  = 0.831104
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.413     FROM HESSE     STATUS=OK           403 CALLS     3098 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.605        22.355        .86168E-04   -1.4778    
   2  Prefactor     3.6072        8.3309        .10636E-02   -1.5328    
   3  norm          3.0828        1.5059        .61573E-04   -1.5357    
   4  Prefactor     .10000E-03    37.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.324        29.586        .78077E-04   -1.4681    
   6  norm          28.195        9.3362        .75449E-04   -1.4645    
   7  Prefactor     50.426        29.421        .56475E-04   -1.4287    
   8  Prefactor     .10000E-03    8.6460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1783        29.402        .21067E-02   -1.5491    
  10  Prefactor     .10000E-03    14.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4061        1.7170        .81187E-04   -1.5398    
  12  Prefactor     16.624        29.310        .98242E-04   -1.4892    
  13  Prefactor     4.4701        10.625        .95210E-03   -1.5285    
  14  Prefactor     .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.5171        6.9249        .15720E-03   -1.5197    
  16  norm          .10000E-03    6.1299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.204        25.768        .89108E-04   -1.4809    
  18  norm          2.6859        2.4452        .11065E-03   -1.5380    
  19  Prefactor     .10000E-03    12.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.903        45.195        .54630E-04   -1.4238    
  21  Prefactor     .10000E-03    200.15        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.8519        8.8208        .12766E-03   -1.5080    
  23  Normalizat    1.0492        .29382        .34892E-03   -.91400    
  24  Prefactor     .83110        .13185        .18187E-03   -.98592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21566e-10
Minuit parameter uncertainties:
  1  22.3632
  2  8.33358
  3  1.50588
  4  1.94741e-05
  5  29.6026
  6  9.33663
  7  29.4293
  8  3.76427e-06
  9  11.7777
  10  1.90343e-05
  11  1.71708
  12  29.3358
  13  10.63
  14  2.35848e-05
  15  6.92577
  16  3.19371e-06
  17  25.7823
  18  2.44524
  19  2.53216e-05
  20  45.2235
  21  0.000366093
  22  8.82194
  23  0.29428
  24  0.131902
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.517e+00  6.926e+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.311e-01  1.319e-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.049e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.90e-05

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

Saving results to:
/scratch/kocevski/787883/likelihoodResults_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.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) = 5866.34874015
delta logL = 0.064434461181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.34193037
delta logL = 0.0712442376462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9275       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5905       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83698       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=   5866.342     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9259        128.16        .41234E-02    .20649E-03
   2  alpha         2.5908        3.2068        .41186        .36471E-04
   3  Normalizat    1.0247        .11677        .79608E-01    .85676E-05
   4  Prefactor     .83699        .39328E-01    .44197E-01   -.14578E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.92589
  alpha      = 2.59082
  Normalizat = 1.02469
  Prefactor  = 0.836987
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.342     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9259        6.9199        .15751E-03   -1.5221    
   2  alpha         2.5908        1.1912        .18079E-01    .36338E-01
   3  Normalizat    1.0247        .28277        .35238E-03   -.92208    
   4  Prefactor     .83699        .13019        .18124E-03   -.98379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61836e-09
Minuit parameter uncertainties:
  1  6.92079
  2  1.24164
  3  0.283186
  4  0.130238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787883': 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) = 5866.34193032
delta logL = 0.0712442884442

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  5.926e+00  6.921e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.591e+00  1.242e+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:  8.370e-01  1.302e-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.025e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.59 +/- 1.24
Photon Flux (Free Index): 6.43e-08 +/- 8.38e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/787883/cmap_HighResolution_520560001_520819201_4FGL_J2321.9+3204_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-05', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.81e-05', photon_flux_error='4.22e-08', dlogl='7.12e-02', energy_flux='1.78e-05', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-09-29 13:37:00.718056', photon_index_error2='1.24', photon_index2='2.59', ts='1.92', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.60e-05', EG='1.05', time_epoch_completed='1632947820.72', return_code='0', job_id='787883', GAL2='0.84', EG2='1.02', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='8.38e-08', ts2='2.07', photon_index='2.14' WHERE bin_id='1085' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 787883: <4FGL_J2321.9+3204_daily_bin1085> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1085> 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) <bullet0120>, 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:37:01 2021
Results reported at Wed Sep 29 13:37:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1085 350.478 32.0737 520560001 520819201 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 :                                   657.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

