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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1602
RA = 350.478, Dec = 32.0737
tmin = 654566401, tmax = 654825601
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='861499', job_status='RUN', time_executed='2021-10-02 00:24:06.046002', time_epoch_executed='1633159446.05' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861499/ft1_4FGL_J2321.9+3204_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861499/ft2_4FGL_J2321.9+3204_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861499/ft1_4FGL_J2321.9+3204_daily_bin1602.fits outfile=/scratch/kocevski/861499/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1602.fits ra=350.478 dec=32.0737 rad=12.0 tmin=654566401.0 tmax=654825601.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.01
user 4.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/861499/ft2_4FGL_J2321.9+3204_daily_bin1602.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/861499/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/861499/ft1_filtered_4FGL_J2321.9+3204_daily_bin1602.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.51
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861499/ft1_filtered_4FGL_J2321.9+3204_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/861499/ft2_4FGL_J2321.9+3204_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/861499/ltcube_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.fits outfile=/scratch/kocevski/861499/expmap_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.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/861499/ltcube_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.fits
.....................!
real 191.29
user 185.96
sys 5.00

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861499/ft1_filtered_4FGL_J2321.9+3204_daily_bin1602.fits scfile=/scratch/kocevski/861499/ft2_4FGL_J2321.9+3204_daily_bin1602.fits outfile=/scratch/kocevski/861499/cmap_HighResolution_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.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/861499/ft1_filtered_4FGL_J2321.9+3204_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/861499/ft2_4FGL_J2321.9+3204_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861499/Model_4FGL_J2321.9+3204_daily_bin1602.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/861499/ft1_filtered_4FGL_J2321.9+3204_daily_bin1602.fits.....................!
real 85.39
user 84.07
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2103       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.230       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3786       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6197       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.779       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.853       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.988       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7597.620     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2237 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10169E-03    17.100        .20251E-04** at limit **
   2  Prefactor     5.2107        1.0196       -.22760E-06    .45949E-03
   3  norm          2.3479        1.2483        .60521E-07   -.74939E-04
   4  Prefactor     61.213        9.7860       -.83975E-05    .93589E-02
   5  Prefactor     .10002E-03    13.048       -.11840E-04** at limit **
   6  norm          .10000E-03    1.0870       -.84787E-07** at limit **
   7  Prefactor     .10000E-03    4.8786        .96863E-07** at limit **
   8  Prefactor     1.3761        5.0651        .64041E-05    .17616E-03
   9  Prefactor     3.6235        1.1974        .18725E-05    .18460E-03
  10  Prefactor     .10029E-03    44.713        .10650E-04** at limit **
  11  norm          2.9910        1.7781       -.33858E-06    .83323E-04
  12  Prefactor     12.721        21.853       -.39738E-04    .46360E-03
  13  Prefactor     5.4677        1.2343       -.19073E-05    .16767E-03
  14  Prefactor     47.860        4.3447        .41023E-05   -.25299E-02
  15  norm          .10000E-03    1.4995       -.91040E-07** at limit **
  16  norm          .10000E-03    2.7836        .58504E-07** at limit **
  17  Prefactor     .10000E-03    7.6238        .24069E-06** at limit **
  18  norm          .10000E-03    1.2860       -.74738E-07** at limit **
  19  Prefactor     .10005E-03    13.803        .14875E-04** at limit **
  20  Prefactor     14.987        1.4251       -.18014E-05    .77239E-03
  21  Prefactor     .10098E-03    19.031       -.26024E-04** at limit **
  22  Prefactor     .10000E-03    2.7912       -.98038E-07** at limit **
  23  Normalizat    1.0215        .24475        .81799E-05    .33671E-04
  24  Prefactor     1.0430        .11882       -.19097E-05    .44952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101688
  Prefactor  = 5.2107
  norm       = 2.34788
  Prefactor  = 61.2128
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37605
  Prefactor  = 3.62349
  Prefactor  = 0.000100293
  norm       = 2.99099
  Prefactor  = 12.721
  Prefactor  = 5.46771
  Prefactor  = 47.8603
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 14.9874
  Prefactor  = 0.000100983
  Prefactor  = 0.0001
  Normalizat = 1.02148
  Prefactor  = 1.04304
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.620     FROM HESSE     STATUS=OK           441 CALLS     2678 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10169E-03    28.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.2107        6.3945        .44026E-02   -1.5251    
   3  norm          2.3479        1.2541        .66884E-02   -1.5402    
   4  Prefactor     61.213        72.969        .12819E-02   -1.4142    
   5  Prefactor     .10002E-03    13.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3761        5.0741        .92709E-02   -1.5473    
   9  Prefactor     3.6235        9.4396        .53090E-02   -1.5327    
  10  Prefactor     .10029E-03    47.225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9910        1.7875        .58679E-02   -1.5362    
  12  Prefactor     12.721        25.271        .28014E-02   -1.4994    
  13  Prefactor     5.4677        12.358        .42928E-02   -1.5240    
  14  Prefactor     47.860        27.244        .14491E-02   -1.4323    
  15  norm          .10000E-03    1.4961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.2633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    13.927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.987        32.304        .25864E-02   -1.4934    
  21  Prefactor     .10098E-03    25.647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0215        .22327        .79930E-01   -.92314    
  24  Prefactor     1.0430        .10424        .40350E-01   -.91308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00572e-07
Minuit parameter uncertainties:
  1  0.0138789
  2  6.39533
  3  1.25408
  4  73.0754
  5  0.00112057
  6  4.21914e-07
  7  2.69467e-06
  8  5.07571
  9  9.44346
  10  0.00745043
  11  1.78757
  12  25.2925
  13  12.3637
  14  27.2514
  15  4.99681e-07
  16  1.62966e-07
  17  7.59551e-06
  18  3.79756e-07
  19  0.00158417
  20  32.3418
  21  0.0100474
  22  3.19583e-07
  23  0.223473
  24  0.104265
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  4.997e-07  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.043e+00  1.043e-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.021e+00  2.235e-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: 4.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861499/likelihoodResults_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.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) = 7597.62303604
delta logL = -0.00314491960125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7597.61989113
delta logL = -2.73757905234e-10

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.1386       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       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=   7597.620     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      219 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5024        .10410E-02** at limit **
   2  alpha         2.1463        3.8627        .16683E-01   -.39155E-06
   3  Normalizat    1.0215        .23795        .35380E-03    .50770E-05
   4  Prefactor     1.0430        .11700        .17105E-03    .15287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.14626
  Normalizat = 1.02148
  Prefactor  = 1.04304
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.620     FROM HESSE     STATUS=OK            23 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5001        .20821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1463        3.8133        .33367E-02   -.14197    
   3  Normalizat    1.0215        .23811        .14152E-04   -.92314    
   4  Prefactor     1.0430        .11707        .68420E-05   -.91308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33982e-09
Minuit parameter uncertainties:
  1  0.00010431
  2  212.397
  3  0.238359
  4  0.117101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861499': 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) = 7597.61989112
delta logL = 1.35059963213e-09

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  1.043e-04  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.146e+00  2.124e+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.043e+00  1.171e-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.021e+00  2.384e-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/861499/cmap_HighResolution_654566401_654825601_4FGL_J2321.9+3204_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-05', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-10-02 00:36:19.331190', job_id='861499', GAL2='1.04', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1633160179.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.35e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1602' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:36:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 861499: <4FGL_J2321.9+3204_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:20:15 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:20:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:20:16 2021
Terminated at Sat Oct  2 00:36:20 2021
Results reported at Sat Oct  2 00:36:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1602 350.478 32.0737 654566401 654825601 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 :                                   735.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

