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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin125
RA = 350.478, Dec = 32.0737
tmin = 271728001, tmax = 271987201
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='781200', job_status='RUN', time_executed='2021-09-29 12:55:59.765025', time_epoch_executed='1632945359.77' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781200/ft1_4FGL_J2321.9+3204_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781200/ft2_4FGL_J2321.9+3204_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781200/ft1_4FGL_J2321.9+3204_daily_bin125.fits outfile=/scratch/kocevski/781200/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin125.fits ra=350.478 dec=32.0737 rad=12.0 tmin=271728001.0 tmax=271987201.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.12
user 2.90
sys 0.19

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781200/ft1_filtered_4FGL_J2321.9+3204_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/781200/ft2_4FGL_J2321.9+3204_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/781200/ltcube_271728001_271987201_4FGL_J2321.9+3204_daily_bin125.fits outfile=/scratch/kocevski/781200/expmap_271728001_271987201_4FGL_J2321.9+3204_daily_bin125.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/781200/ltcube_271728001_271987201_4FGL_J2321.9+3204_daily_bin125.fits
.....................!
real 192.72
user 186.86
sys 5.52

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    89.772       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3856       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12665E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5254       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .81521E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16810E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9458       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61470       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1580       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=   10960.59     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2801 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.774        27.028        .23050E-06    .51119E-04
   2  Prefactor     3.3859        6.5613        .20614E-06   -.11679E-03
   3  norm          1.1962        .93912        .19277E-07   -.26166E-03
   4  Prefactor     40.243        52.058       -.63039E-05   -.20230E-03
   5  Prefactor     .10000E-03    9.3692        .10479E-05** at limit **
   6  norm          13.255        4.5556        .87365E-06    .15684E-02
   7  Prefactor     .10000E-03    5.4778       -.71014E-07** at limit **
   8  Prefactor     .25238        2.1785       -.11774E-05    .33284E-03
   9  Prefactor     5.7541        10.062        .57436E-07   -.49507E-04
  10  Prefactor     .10000E-03    15.527       -.18897E-06** at limit **
  11  norm          2.6525        1.3793        .20165E-07   -.11421E-03
  12  Prefactor     .10000E-03    6.9990        .28842E-06** at limit **
  13  Prefactor     .10000E-03    6.8983        .38568E-06** at limit **
  14  Prefactor     3.5254        10.861        .45803E-05   -.67717E-03
  15  norm          .10000E-03    .81206        .25110E-08** at limit **
  16  norm          22.695        12.695       -.29603E-07   -.69501E-05
  17  Prefactor     .10000E-03    3.5843       -.52980E-08** at limit **
  18  norm          .93343E-02    .93539       -.75870E-07    .14086E-03
  19  Prefactor     .10001E-03    6.4788       -.12106E-06** at limit **
  20  Prefactor     .10000E-03    8.5594       -.11546E-05** at limit **
  21  Prefactor     51.568        68.241       -.68716E-06   -.16630E-04
  22  Prefactor     8.9448        10.167        .47962E-07   -.40564E-04
  23  Normalizat    .61465        .18914       -.54273E-06    .65962E-05
  24  Prefactor     1.1580        .92645E-01   -.93419E-08    .73111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 89.7742
  Prefactor  = 3.38588
  norm       = 1.19617
  Prefactor  = 40.2431
  Prefactor  = 0.0001
  norm       = 13.2549
  Prefactor  = 0.0001
  Prefactor  = 0.252378
  Prefactor  = 5.75414
  Prefactor  = 0.0001
  norm       = 2.65249
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.52536
  norm       = 0.0001
  norm       = 22.6953
  Prefactor  = 0.0001
  norm       = 0.00933427
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 51.5682
  Prefactor  = 8.94481
  Normalizat = 0.614652
  Prefactor  = 1.15804
 **********
 **   18 **HESSE 
 **********

 FCN=   10960.59     FROM HESSE     STATUS=OK           419 CALLS     3220 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.774        26.987        .42409E-04   -1.3810    
   2  Prefactor     3.3859        6.5594        .21990E-03   -1.5340    
   3  norm          1.1962        .93578        .86400E-04   -1.5489    
   4  Prefactor     40.243        53.952        .63176E-04   -1.4438    
   5  Prefactor     .10000E-03    9.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.255        4.7054        .11002E-03   -1.4980    
   7  Prefactor     .10000E-03    5.4829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25238        5.3718        .28737E-02   -1.5608    
   9  Prefactor     5.7541        10.052        .16745E-03   -1.5228    
  10  Prefactor     .10000E-03    15.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6525        1.3733        .84291E-04   -1.5382    
  12  Prefactor     .10000E-03    7.0211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.058        .51082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5254        13.768        .10765E-02   -1.5332    
  15  norm          .10000E-03    .81341        .92127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.695        12.682        .84076E-04   -1.4755    
  17  Prefactor     .10000E-03    3.5918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .93343E-02    1.3155        .37162E-01   -1.5689    
  19  Prefactor     .10001E-03    6.0922        .98443E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     51.568        68.065        .55848E-04   -1.4271    
  22  Prefactor     8.9448        10.112        .13401E-03   -1.5110    
  23  Normalizat    .61465        .20206        .43929E-03   -1.0737    
  24  Prefactor     1.1580        .10183        .16462E-03   -.87632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22831e-09
Minuit parameter uncertainties:
  1  26.991
  2  6.56078
  3  0.935794
  4  54.0171
  5  7.76489e-05
  6  4.70554
  7  3.66942e-06
  8  2.32849
  9  10.0551
  10  1.73112e-05
  11  1.37331
  12  1.79084e-05
  13  0.000709688
  14  13.7804
  15  3.23758e-08
  16  12.6833
  17  2.4253e-07
  18  0.220434
  19  0.000443403
  20  8.07977e-05
  21  68.1682
  22  10.1135
  23  0.202306
  24  0.101845
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  3.238e-08  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.158e+00  1.018e-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:  6.147e-01  2.023e-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: 2.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781200/likelihoodResults_271728001_271987201_4FGL_J2321.9+3204_daily_bin125.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): 102
logL (Free Index) = 10960.5885954
delta logL = -3.09306251438e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10960.5885641
delta logL = 3.3912328945e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1215       1.0000          .0000       5.0000    
     3 'Normalizat'    .61465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1581       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=   10960.59     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.347        .92518E-02** at limit **
   2  alpha         1.8054        3.6085        .50000       -.91131E-07
   3  Normalizat    .61465        .22703E-01    .43929E-03    .49741E-04
   4  Prefactor     1.1580        .11467E-01    .16462E-03    .15856E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80535
  Normalizat = 0.614652
  Prefactor  = 1.15804
 **********
 **   18 **HESSE 
 **********

 FCN=   10960.59     FROM HESSE     STATUS=OK            27 CALLS      262 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8855        .94966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8054        3.3512        .20000       -.28156    
   3  Normalizat    .61465        .19585        .17572E-04   -1.0737    
   4  Prefactor     1.1580        .99016E-01    .65848E-05   -.87632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46263e-11
Minuit parameter uncertainties:
  1  2.90728e-06
  2  215.04
  3  0.196074
  4  0.099032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781200': 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) = 10960.5885609
delta logL = 3.59580371878e-06

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  2.907e-06  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.805e+00  2.150e+02  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.158e+00  9.903e-02  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:  6.147e-01  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/781200/cmap_HighResolution_271728001_271987201_4FGL_J2321.9+3204_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-05', job_status='DONE', photon_flux_upper_limit='2.80e-08', time_completed='2021-09-29 13:12:12.067571', job_id='781200', GAL2='1.16', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632946332.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='125' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:12:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 781200: <4FGL_J2321.9+3204_daily_bin125> in cluster <slac> Done

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

Your job looked like:

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

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

