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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin122
RA = 350.478, Dec = 32.0737
tmin = 270950401, tmax = 271209601
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='781196', job_status='RUN', time_executed='2021-09-29 12:55:53.307858', time_epoch_executed='1632945353.31' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781196/ft1_4FGL_J2321.9+3204_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781196/ft2_4FGL_J2321.9+3204_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781196/ft1_4FGL_J2321.9+3204_daily_bin122.fits outfile=/scratch/kocevski/781196/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin122.fits ra=350.478 dec=32.0737 rad=12.0 tmin=270950401.0 tmax=271209601.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.60
user 1.42
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781196/ft1_filtered_4FGL_J2321.9+3204_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/781196/ft2_4FGL_J2321.9+3204_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/781196/ltcube_270950401_271209601_4FGL_J2321.9+3204_daily_bin122.fits outfile=/scratch/kocevski/781196/expmap_270950401_271209601_4FGL_J2321.9+3204_daily_bin122.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/781196/ltcube_270950401_271209601_4FGL_J2321.9+3204_daily_bin122.fits
.....................!
real 190.78
user 185.69
sys 4.76

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/781196/ft1_filtered_4FGL_J2321.9+3204_daily_bin122.fits scfile=/scratch/kocevski/781196/ft2_4FGL_J2321.9+3204_daily_bin122.fits outfile=/scratch/kocevski/781196/cmap_270950401_271209601_4FGL_J2321.9+3204_daily_bin122.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7808       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0988       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
    15 'norm      '    4.6104       1.0000         .10000E-03   10000.    
    16 'norm      '    18.786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.994       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87742       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=   8515.751     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2722 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3711        15.211        .14845E-05    .61381E-04
   2  Prefactor     .10000E-03    3.3755       -.31754E-07** at limit **
   3  norm          1.7806        1.1372        .86068E-08   -.18518E-03
   4  Prefactor     .10000E-03    19.769       -.18705E-07** at limit **
   5  Prefactor     .10000E-03    12.955        .41361E-06** at limit **
   6  norm          1.6282        2.9030       -.33654E-06    .24219E-05
   7  Prefactor     18.990        16.939       -.50176E-06    .48833E-05
   8  Prefactor     3.0987        6.2735        .45050E-05   -.61505E-04
   9  Prefactor     5.6561        6.6917        .39155E-06   -.11485E-04
  10  Prefactor     .10000E-03    45.949       -.19967E-06** at limit **
  11  norm          .10000E-03    .73126       -.19835E-06** at limit **
  12  Prefactor     4.4235        17.617        .56879E-06   -.35969E-05
  13  Prefactor     .10000E-03    6.6555       -.32824E-07** at limit **
  14  Prefactor     11.634        19.187        .49440E-06    .30133E-05
  15  norm          4.6085        3.5835        .34659E-07    .20796E-04
  16  norm          18.785        11.963        .46168E-07    .14581E-05
  17  Prefactor     .10000E-03    4.9577       -.49843E-07** at limit **
  18  norm          2.3526        1.9159        .38397E-07    .24572E-04
  19  Prefactor     .10000E-03    8.3113        .18764E-06** at limit **
  20  Prefactor     .10000E-03    11.649       -.34736E-06** at limit **
  21  Prefactor     39.013        37.723       -.28836E-05   -.36970E-04
  22  Prefactor     .10000E-03    3.0279        .42640E-06** at limit **
  23  Normalizat    1.1170        .18587       -.24113E-06   -.96103E-05
  24  Prefactor     .87747        .91479E-01   -.31049E-06    .50824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37108
  Prefactor  = 0.0001
  norm       = 1.78061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62821
  Prefactor  = 18.9902
  Prefactor  = 3.09874
  Prefactor  = 5.65607
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.42354
  Prefactor  = 0.0001
  Prefactor  = 11.6339
  norm       = 4.60848
  norm       = 18.7848
  Prefactor  = 0.0001
  norm       = 2.35259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0126
  Prefactor  = 0.0001
  Normalizat = 1.11702
  Prefactor  = 0.877472
 **********
 **   18 **HESSE 
 **********

 FCN=   8515.751     FROM HESSE     STATUS=OK           401 CALLS     3123 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3711        15.216        .17269E-03   -1.5244    
   2  Prefactor     .10000E-03    3.4029        .16554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7806        1.1334        .75629E-04   -1.5441    
   4  Prefactor     .10000E-03    19.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6282        2.8748        .20033E-03   -1.5453    
   7  Prefactor     18.990        16.954        .91905E-04   -1.4836    
   8  Prefactor     3.0987        6.2886        .11519E-02   -1.5356    
   9  Prefactor     5.6561        6.6883        .84451E-03   -1.5232    
  10  Prefactor     .10000E-03    47.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8562        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4235        17.599        .19139E-03   -1.5287    
  13  Prefactor     .10000E-03    6.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.634        19.178        .11742E-03   -1.5026    
  15  norm          4.6085        3.5782        .14916E-03   -1.5279    
  16  norm          18.785        11.979        .92408E-04   -1.4841    
  17  Prefactor     .10000E-03    4.9768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3526        1.9117        .11170E-03   -1.5401    
  19  Prefactor     .10000E-03    8.3276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.013        37.752        .64187E-04   -1.4458    
  22  Prefactor     .10000E-03    3.0600        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1170        .21889        .31202E-03   -.89207    
  24  Prefactor     .87747        .10852        .17086E-03   -.96933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79098e-11
Minuit parameter uncertainties:
  1  15.2269
  2  1.91046e-07
  3  1.13337
  4  2.52973e-06
  5  3.26799e-06
  6  2.87506
  7  16.9583
  8  6.28995
  9  6.68915
  10  6.47125e-06
  11  4.31491e-06
  12  17.6194
  13  3.03646e-06
  14  19.1878
  15  3.57837
  16  11.9809
  17  5.16021e-06
  18  1.91175
  19  6.63003e-06
  20  3.12408e-07
  21  37.7748
  22  4.62598e-05
  23  0.219065
  24  0.108544
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.608e+00  3.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.775e-01  1.085e-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.117e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 9.80e-06

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) = 8513.96932207
delta logL = 1.78153346484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8513.78021718
delta logL = 1.97063835995

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8513.780     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0690        1.7999        .71771E-02   -.17402E-03
   2  alpha         .77614        .37439        .38647       -.51850E-04
   3  Normalizat    1.1271        .18125        .70220E-01    .18708E-04
   4  Prefactor     .87857        .89629E-01    .44729E-01   -.10605E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06898
  alpha      = 0.77614
  Normalizat = 1.1271
  Prefactor  = 0.878566
 **********
 **   18 **HESSE 
 **********

 FCN=   8513.780     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0690        3.2209        .10331E-03   -1.5420    
   2  alpha         .77614        .65346        .17202E-02   -.76086    
   3  Normalizat    1.1271        .21413        .31070E-03   -.88886    
   4  Prefactor     .87857        .10609        .17076E-03   -.96894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0178e-13
Minuit parameter uncertainties:
  1  3.22115
  2  0.668553
  3  0.214296
  4  0.106115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781196': 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) = 8513.78021154
delta logL = 1.97064399899

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  2.069e+00  3.221e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  7.761e-01  6.686e-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:  8.786e-01  1.061e-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.127e+00  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 350.478 32.074
Photon Index (Free Index): 0.78 +/- 0.67
Photon Flux (Free Index): 8.56e-09 +/- 8.73e-09
Energy Flux (Free Index): 6.76e-05 +/- 7.80e-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/781196/cmap_HighResolution_270950401_271209601_4FGL_J2321.9+3204_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='6.76e-05', photon_flux_error='2.18e-08', dlogl='1.97e+00', energy_flux='1.26e-05', photon_flux2='8.56e-09', job_status='DONE', time_completed='2021-09-29 13:07:58.392134', photon_index_error2='0.67', photon_index2='0.78', ts='4.90', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='7.80e-05', EG='1.12', time_epoch_completed='1632946078.39', return_code='0', job_id='781196', GAL2='0.88', EG2='1.13', return_code2='0', energy_flux_error='9.80e-06', photon_flux_error2='8.73e-09', ts2='8.83', photon_index='2.14' WHERE bin_id='122' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:07:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 781196: <4FGL_J2321.9+3204_daily_bin122> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin122> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 12:55:40 2021
Job was executed on host(s) <bullet0273>, 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:07:59 2021
Results reported at Wed Sep 29 13:07:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin122 350.478 32.0737 270950401 271209601 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            739 sec.

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

