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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin68
RA = 350.478, Dec = 32.0737
tmin = 256953601, tmax = 257212801
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='781115', job_status='RUN', time_executed='2021-09-29 12:58:12.871565', time_epoch_executed='1632945492.87' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781115/ft1_4FGL_J2321.9+3204_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781115/ft2_4FGL_J2321.9+3204_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781115/ft1_4FGL_J2321.9+3204_daily_bin68.fits outfile=/scratch/kocevski/781115/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin68.fits ra=350.478 dec=32.0737 rad=12.0 tmin=256953601.0 tmax=257212801.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.43
user 1.28
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781115/ft2_4FGL_J2321.9+3204_daily_bin68.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/781115/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/781115/ft1_filtered_4FGL_J2321.9+3204_daily_bin68.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.49
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781115/ft1_filtered_4FGL_J2321.9+3204_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/781115/ft2_4FGL_J2321.9+3204_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/781115/ltcube_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.fits outfile=/scratch/kocevski/781115/expmap_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.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/781115/ltcube_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.fits
.....................!
real 189.87
user 184.93
sys 4.61

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/781115/ft1_filtered_4FGL_J2321.9+3204_daily_bin68.fits scfile=/scratch/kocevski/781115/ft2_4FGL_J2321.9+3204_daily_bin68.fits outfile=/scratch/kocevski/781115/cmap_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.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/781115/ft1_filtered_4FGL_J2321.9+3204_daily_bin68.fits scfile=/scratch/kocevski/781115/ft2_4FGL_J2321.9+3204_daily_bin68.fits outfile=/scratch/kocevski/781115/cmap_HighResolution_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14202E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14524E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14925E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .48136       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4453       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.426       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .31958       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3297       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=   8401.428     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2418 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.389        22.074       -.30383E-06   -.81503E-05
   2  Prefactor     .10000E-03    3.4311        .11825E-05** at limit **
   3  norm          2.9494        1.3983       -.17821E-07    .80338E-03
   4  Prefactor     .10000E-03    59.978        .15181E-05** at limit **
   5  Prefactor     .10012E-03    108.88       -.20832E-04** at limit **
   6  norm          .10000E-03    1.4521       -.14622E-07** at limit **
   7  Prefactor     .10000E-03    12.492       -.29306E-06** at limit **
   8  Prefactor     20.470        9.3367        .14895E-06    .23838E-03
   9  Prefactor     .10000E-03    5.1194        .10693E-08** at limit **
  10  Prefactor     .10000E-03    22.632        .91301E-07** at limit **
  11  norm          .40688        1.0361       -.27354E-06    .71044E-03
  12  Prefactor     .10001E-03    17.038        .61871E-05** at limit **
  13  Prefactor     1.1037        5.8726       -.45045E-06   -.17879E-04
  14  Prefactor     .10000E-03    12.680        .18742E-06** at limit **
  15  norm          .48161        1.6505        .10491E-05    .15835E-02
  16  norm          .10000E-03    4.0408       -.22682E-07** at limit **
  17  Prefactor     .10000E-03    3.7783        .18714E-06** at limit **
  18  norm          4.3259        3.1088        .51832E-08    .26159E-03
  19  Prefactor     .10000E-03    8.3748        .11902E-07** at limit **
  20  Prefactor     1.2799        98.533       -.63464E-05   -.52011E-04
  21  Prefactor     51.399        46.819        .23323E-05    .27770E-03
  22  Prefactor     .10000E-03    3.1381        .10812E-06** at limit **
  23  Normalizat    .31970        .23335       -.30555E-05    .11807E-05
  24  Prefactor     1.3297        .11790        .86373E-06    .29419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.3888
  Prefactor  = 0.000100001
  norm       = 2.94935
  Prefactor  = 0.000100002
  Prefactor  = 0.000100121
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406881
  Prefactor  = 0.000100006
  Prefactor  = 1.10372
  Prefactor  = 0.0001
  norm       = 0.481611
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.32592
  Prefactor  = 0.0001
  Prefactor  = 1.27995
  Prefactor  = 51.3993
  Prefactor  = 0.0001
  Normalizat = 0.3197
  Prefactor  = 1.32968
 **********
 **   18 **HESSE 
 **********

 FCN=   8401.428     FROM HESSE     STATUS=OK           405 CALLS     2823 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.389        22.043        .59509E-04   -1.4360    
   2  Prefactor     .10000E-03    13.773        .31451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9494        1.3425        .68860E-04   -1.5364    
   4  Prefactor     .10000E-03    60.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    130.34        .67036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4547        .10782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.470        9.3376        .88532E-04   -1.4803    
   9  Prefactor     .10000E-03    5.1446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .40688        1.0107        .14120E-03   -1.5580    
  12  Prefactor     .10001E-03    80.959        .53304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1037        28.872        .40400E-02   -1.5498    
  14  Prefactor     .10000E-03    12.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .48161        1.9549        .21116E-02   -1.5569    
  16  norm          .10000E-03    4.0464        .17994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7913        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3259        3.1090        .13001E-03   -1.5292    
  19  Prefactor     .10000E-03    8.4522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2799        96.103        .35861E-03   -1.5482    
  21  Prefactor     51.399        47.796        .55925E-04   -1.4273    
  22  Prefactor     .10000E-03    3.1440        .15838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .31970        .20858        .56413E-03   -1.2168    
  24  Prefactor     1.3297        .11255        .15484E-03   -.82429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66463e-08
Minuit parameter uncertainties:
  1  22.0474
  2  0.000186776
  3  1.34255
  4  0.000603227
  5  0.0079543
  6  2.60181e-06
  7  6.18662e-05
  8  9.33825
  9  1.43044e-06
  10  2.3009e-05
  11  1.01072
  12  0.00143731
  13  11.2957
  14  3.28111e-05
  15  1.94051
  16  4.4896e-06
  17  2.33371e-05
  18  3.10907
  19  9.15572e-06
  20  22.2179
  21  47.832
  22  1.23837e-05
  23  0.209089
  24  0.11257
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.816e-01  1.941e+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.330e+00  1.126e-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:  3.197e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781115/likelihoodResults_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.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) = 8401.40941359
delta logL = 0.0184498975086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8401.40446517
delta logL = 0.0233983189228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69735       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7794       1.0000          .0000       5.0000    
     3 'Normalizat'    .32004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3294       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8401.404     FROM MIGRAD    STATUS=FAILED       104 CALLS      290 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69835        2.3356        .23475E-02    .54961E-02
   2  alpha         1.7798        1.4296        .48798E-01    .80881E-05
   3  Normalizat    .32074        .20348        .56325E-03    .40368E-06
   4  Prefactor     1.3290        .11009        .15487E-03   -.29364E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8401.404     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      360 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69835        2.3356        .10673E-03   -1.5541    
   2  alpha         1.7798        1.4296        .27382E-02   -.29222    
   3  Normalizat    .32074        .20348        .60372E-03   -1.2162    
   4  Prefactor     1.3290        .11009        .16940E-03   -.82448    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8401.404     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      389 TOTAL
                     EDM=   .87E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69835        2.2713        .46950E-03    .89593E-05
   2  alpha         1.7798        1.3994        .97595E-02    .31032E-06
   3  Normalizat    .32074        .20338        .22530E-04    .20184E-06
   4  Prefactor     1.3290        .11003        .61947E-05   -.29364E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.69835
  alpha      = 1.77979
  Normalizat = 0.320741
  Prefactor  = 1.32902
 **********
 **   18 **HESSE 
 **********

 FCN=   8401.404     FROM HESSE     STATUS=OK            25 CALLS      414 TOTAL
                     EDM=   .38E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69835        2.2647        .18780E-04   -1.5541    
   2  alpha         1.7798        1.3961        .19519E-02   -.29222    
   3  Normalizat    .32074        .20337        .45060E-05   -1.2162    
   4  Prefactor     1.3290        .11002        .61947E-05   -.82448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79522e-14
Minuit parameter uncertainties:
  1  2.26502
  2  1.49056
  3  0.203838
  4  0.110041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781115': 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) = 8401.40445908
delta logL = 0.0234044081717

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.983e-01  2.265e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.780e+00  1.491e+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:  1.329e+00  1.100e-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:  3.207e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/781115/cmap_HighResolution_256953601_257212801_4FGL_J2321.9+3204_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-29 13:11:02.566380', job_id='781115', GAL2='1.33', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1632946262.57', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='2.34e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='68' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 781115: <4FGL_J2321.9+3204_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin68 350.478 32.0737 256953601 257212801 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 :                                   770.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

