/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 71 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin398
RA = 350.478, Dec = 32.0737
tmin = 342489601, tmax = 342748801
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='782645', job_status='RUN', time_executed='2021-09-29 13:02:11.001919', time_epoch_executed='1632945731.0' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782645/ft1_4FGL_J2321.9+3204_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782645/ft1_4FGL_J2321.9+3204_daily_bin398.fits outfile=/scratch/kocevski/782645/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin398.fits ra=350.478 dec=32.0737 rad=12.0 tmin=342489601.0 tmax=342748801.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.44
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782645/ft1_filtered_4FGL_J2321.9+3204_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/782645/ltcube_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.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/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits
.....................!
real 11.75
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782645/ft1_filtered_4FGL_J2321.9+3204_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/782645/ltcube_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.fits outfile=/scratch/kocevski/782645/expmap_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.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/782645/ltcube_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.fits
.....................!
real 190.96
user 185.32
sys 5.26

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/782645/ft1_filtered_4FGL_J2321.9+3204_daily_bin398.fits scfile=/scratch/kocevski/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits outfile=/scratch/kocevski/782645/cmap_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782645/ft1_filtered_4FGL_J2321.9+3204_daily_bin398.fits scfile=/scratch/kocevski/782645/ft2_4FGL_J2321.9+3204_daily_bin398.fits outfile=/scratch/kocevski/782645/cmap_HighResolution_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97085E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14479E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.653       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4651       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.531       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76014       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0019       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=   8214.232     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     3152 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10064E-03    8.8747        .13619E-05** at limit **
   2  Prefactor     .10000E-03    2.6466       -.26158E-07** at limit **
   3  norm          .10000E-03    .45600       -.19168E-07** at limit **
   4  Prefactor     34.645        44.748       -.13941E-05   -.54922E-04
   5  Prefactor     .10000E-03    8.8901        .14485E-06** at limit **
   6  norm          .10000E-03    2.3165       -.36688E-07** at limit **
   7  Prefactor     15.077        13.217       -.44391E-07    .28145E-06
   8  Prefactor     9.4845        6.2475        .60378E-06   -.23938E-03
   9  Prefactor     4.4650        7.3410        .31942E-05   -.37145E-03
  10  Prefactor     .10000E-03    15.547        .13181E-06** at limit **
  11  norm          1.3391        1.3417        .83808E-07   -.15326E-03
  12  Prefactor     2.6346        49.755        .11808E-05    .10634E-04
  13  Prefactor     8.7564        11.709        .59408E-06    .81613E-04
  14  Prefactor     .10000E-03    7.0233       -.49638E-06** at limit **
  15  norm          .10000E-03    2.4221        .65705E-07** at limit **
  16  norm          .10000E-03    6.8407        .43646E-06** at limit **
  17  Prefactor     .10000E-03    10.493        .25595E-07** at limit **
  18  norm          4.3740        2.9674        .14867E-07   -.95090E-04
  19  Prefactor     16.531        15.893        .30888E-06    .11136E-04
  20  Prefactor     20.059        37.081       -.48350E-05   -.16870E-03
  21  Prefactor     64.411        45.184       -.25535E-05   -.35145E-03
  22  Prefactor     .10000E-03    3.8988       -.41344E-06** at limit **
  23  Normalizat    .76038        .20524        .17893E-05   -.10786E-03
  24  Prefactor     1.0018        .95132E-01   -.57144E-06    .66548E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.6452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0774
  Prefactor  = 9.48453
  Prefactor  = 4.46503
  Prefactor  = 0.0001
  norm       = 1.33914
  Prefactor  = 2.63465
  Prefactor  = 8.75641
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37402
  Prefactor  = 16.5311
  Prefactor  = 20.0588
  Prefactor  = 64.4112
  Prefactor  = 0.0001
  Normalizat = 0.760379
  Prefactor  = 1.00184
 **********
 **   18 **HESSE 
 **********

 FCN=   8214.232     FROM HESSE     STATUS=OK           405 CALLS     3557 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10064E-03    11.064        .85379E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6587        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.4917        .11830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.645        44.899        .68075E-04   -1.4530    
   5  Prefactor     .10000E-03    8.9060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4129        .26916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.077        13.223        .10315E-03   -1.4931    
   8  Prefactor     9.4845        6.2832        .65061E-03   -1.5092    
   9  Prefactor     4.4650        7.6828        .95277E-03   -1.5285    
  10  Prefactor     .10000E-03    15.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3391        1.3219        .99854E-04   -1.5477    
  12  Prefactor     2.6346        49.601        .25064E-03   -1.5383    
  13  Prefactor     8.7564        11.689        .13543E-03   -1.5116    
  14  Prefactor     .10000E-03    7.0429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4559        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3740        2.9668        .12186E-03   -1.5290    
  19  Prefactor     16.531        15.896        .98508E-04   -1.4895    
  20  Prefactor     20.059        38.262        .89364E-04   -1.4812    
  21  Prefactor     64.411        47.476        .49993E-04   -1.4101    
  22  Prefactor     .10000E-03    3.9149        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76038        .23416        .37423E-03   -1.0156    
  24  Prefactor     1.0018        .11070        .16128E-03   -.92668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07036e-09
Minuit parameter uncertainties:
  1  0.00532999
  2  3.67684e-06
  3  4.73126e-05
  4  44.9432
  5  1.59834e-06
  6  5.87304e-06
  7  13.226
  8  6.28364
  9  7.68452
  10  6.83909e-06
  11  1.32191
  12  22.8848
  13  11.6916
  14  3.75994e-05
  15  1.19165e-06
  16  1.74678e-05
  17  7.18459e-06
  18  2.96687
  19  15.8999
  20  38.3084
  21  47.5041
  22  2.28922e-05
  23  0.234468
  24  0.110729
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  1.192e-06  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.002e+00  1.107e-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:  7.604e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782645/likelihoodResults_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.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) = 8214.23434746
delta logL = -0.00194055747124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8214.23240516
delta logL = 1.7474158085e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0921       1.0000          .0000       5.0000    
     3 'Normalizat'    .76036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8213.543     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      344 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43982        .84891        .15278E-01    .11452E-03
   2  alpha         .44769        .68110        .50000        .45299E-04
   3  Normalizat    .75871        .21751        .37422E-03    .36455E-05
   4  Prefactor     1.0005        .10727        .16128E-03   -.98688E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.439816
  alpha      = 0.447687
  Normalizat = 0.758706
  Prefactor  = 1.00048
 **********
 **   18 **HESSE 
 **********

 FCN=   8213.543     FROM HESSE     STATUS=OK            31 CALLS      375 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43982        1.2408        .93173E-03   -1.5841    
   2  alpha         .44769        .90510        .36206E-01   -2.1786    
   3  Normalizat    .75871        .21766        .14969E-04   -1.0162    
   4  Prefactor     1.0005        .10736        .64511E-05   -.92714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62142e-08
Minuit parameter uncertainties:
  1  1.24089
  2  0.980363
  3  0.217911
  4  0.107385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782645': 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) = 8213.54316466
delta logL = 0.68924225123

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.398e-01  1.241e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  4.477e-01  9.804e-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.000e+00  1.074e-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:  7.587e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 350.478 32.074
Photon Index (Free Index): 0.45 +/- 0.98
Photon Flux (Free Index): 2.96e-09 +/- 4.29e-09
Energy Flux (Free Index): 4.46e-05 +/- 7.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/782645/cmap_HighResolution_342489601_342748801_4FGL_J2321.9+3204_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', comment='SUCCESS', energy_flux2='4.46e-05', dlogl='6.89e-01', photon_flux2='2.96e-09', job_status='DONE', time_completed='2021-09-29 13:16:06.723041', photon_index_error2='0.98', photon_index2='0.45', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.34e-08', energy_flux_error2='7.45e-05', EG='0.76', time_epoch_completed='1632946566.72', return_code='0', job_id='782645', GAL2='1.00', EG2='0.76', return_code2='0', photon_flux_error2='4.29e-09', ts2='1.38', photon_index='2.14' WHERE bin_id='398' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:16:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 782645: <4FGL_J2321.9+3204_daily_bin398> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin398> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 13:00:44 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:00:45 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:00:45 2021
Terminated at Wed Sep 29 13:16:07 2021
Results reported at Wed Sep 29 13:16:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin398 350.478 32.0737 342489601 342748801 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 :                                   834.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

