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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin6
RA = 350.478, Dec = 32.0737
tmin = 240883201, tmax = 241142401
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='781022', job_status='RUN', time_executed='2021-09-29 12:56:17.932117', time_epoch_executed='1632945377.93' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781022

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781022/ft1_4FGL_J2321.9+3204_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781022/ft2_4FGL_J2321.9+3204_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781022/ft1_4FGL_J2321.9+3204_daily_bin6.fits outfile=/scratch/kocevski/781022/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin6.fits ra=350.478 dec=32.0737 rad=12.0 tmin=240883201.0 tmax=241142401.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.50
user 1.31
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781022/ft1_filtered_4FGL_J2321.9+3204_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/781022/ft2_4FGL_J2321.9+3204_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/781022/ltcube_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.fits outfile=/scratch/kocevski/781022/expmap_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.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/781022/ltcube_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.fits
.....................!
real 190.11
user 185.12
sys 4.62

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/781022/ft1_filtered_4FGL_J2321.9+3204_daily_bin6.fits scfile=/scratch/kocevski/781022/ft2_4FGL_J2321.9+3204_daily_bin6.fits outfile=/scratch/kocevski/781022/cmap_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781022/ft1_filtered_4FGL_J2321.9+3204_daily_bin6.fits scfile=/scratch/kocevski/781022/ft2_4FGL_J2321.9+3204_daily_bin6.fits outfile=/scratch/kocevski/781022/cmap_HighResolution_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3205       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.834       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5192       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0202       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .73787       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8109       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0627       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90625       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=   11236.94     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2342 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3878        5.2086        .15771E-05   -.13815E-02
   2  Prefactor     4.3202        4.8710       -.18633E-06   -.57692E-04
   3  norm          2.4304        1.1217       -.14742E-07   -.20021E-04
   4  Prefactor     .10000E-03    14.915       -.34669E-05** at limit **
   5  Prefactor     16.833        14.463       -.57187E-06   -.96894E-05
   6  norm          1.5194        2.2346       -.39299E-07   -.98121E-04
   7  Prefactor     12.275        12.989        .95321E-06    .23616E-04
   8  Prefactor     8.0201        4.8674       -.95318E-07   -.86324E-04
   9  Prefactor     3.8281        9.5344        .16480E-05   -.70397E-03
  10  Prefactor     .10000E-03    4.9234        .16982E-06** at limit **
  11  norm          .38611        .75393       -.37457E-07   -.59318E-03
  12  Prefactor     10.368        17.313       -.16237E-04   -.17734E-03
  13  Prefactor     .10000E-03    4.0151        .11739E-06** at limit **
  14  Prefactor     .10000E-03    7.3930       -.19437E-05** at limit **
  15  norm          .73425        4.5558       -.58809E-07   -.46678E-03
  16  norm          2.3514        4.2482        .53403E-06   -.42539E-04
  17  Prefactor     .10000E-03    19.423        .23481E-05** at limit **
  18  norm          3.4773        2.0197       -.64431E-07   -.45673E-04
  19  Prefactor     .10000E-03    8.8348        .46225E-05** at limit **
  20  Prefactor     .10000E-03    18.980        .27371E-05** at limit **
  21  Prefactor     .10000E-03    10.891       -.33544E-05** at limit **
  22  Prefactor     5.8128        4.1355       -.20089E-06    .28403E-04
  23  Normalizat    1.0629        .16565        .16479E-05   -.78516E-04
  24  Prefactor     .90620        .79778E-01    .27171E-07    .39238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38784
  Prefactor  = 4.32016
  norm       = 2.43037
  Prefactor  = 0.0001
  Prefactor  = 16.8331
  norm       = 1.51936
  Prefactor  = 12.2746
  Prefactor  = 8.02015
  Prefactor  = 3.82807
  Prefactor  = 0.0001
  norm       = 0.38611
  Prefactor  = 10.3676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.734255
  norm       = 2.35143
  Prefactor  = 0.0001
  norm       = 3.47732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81281
  Normalizat = 1.06287
  Prefactor  = 0.906203
 **********
 **   18 **HESSE 
 **********

 FCN=   11236.94     FROM HESSE     STATUS=OK           407 CALLS     2749 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3878        18.949        .18169E-02   -1.5472    
   2  Prefactor     4.3202        4.8668        .19380E-03   -1.5292    
   3  norm          2.4304        1.1185        .71516E-04   -1.5396    
   4  Prefactor     .10000E-03    14.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.833        14.457        .97616E-04   -1.4887    
   6  norm          1.5194        2.2074        .18568E-03   -1.5461    
   7  Prefactor     12.275        13.006        .11437E-03   -1.5007    
   8  Prefactor     8.0201        4.8638        .70789E-03   -1.5141    
   9  Prefactor     3.8281        9.9660        .10313E-02   -1.5317    
  10  Prefactor     .10000E-03    4.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38611        .56039        .12199E-02   -1.5584    
  12  Prefactor     10.368        17.370        .12431E-03   -1.5064    
  13  Prefactor     .10000E-03    4.0351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .73425        4.6741        .43027E-03   -1.5537    
  16  norm          2.3514        4.2255        .26733E-03   -1.5401    
  17  Prefactor     .10000E-03    19.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4773        2.0204        .11126E-03   -1.5335    
  19  Prefactor     .10000E-03    8.8541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.8128        4.1540        .16661E-03   -1.5226    
  23  Normalizat    1.0629        .19288        .32938E-03   -.90953    
  24  Prefactor     .90620        .93907E-01    .17156E-03   -.95925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63444e-08
Minuit parameter uncertainties:
  1  10.2601
  2  4.86722
  3  1.11855
  4  4.58108e-05
  5  14.4597
  6  2.20747
  7  13.0094
  8  4.86402
  9  9.97028
  10  9.92676e-07
  11  0.560401
  12  17.3781
  13  7.1403e-06
  14  9.94342e-06
  15  3.70528
  16  4.22608
  17  5.1944e-05
  18  2.02045
  19  2.9981e-05
  20  4.41657e-06
  21  3.65399e-05
  22  4.15416
  23  0.193003
  24  0.0939238
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  7.343e-01  3.705e+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:  9.062e-01  9.392e-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:  1.063e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781022/likelihoodResults_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.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) = 11236.5547239
delta logL = 0.389124002977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11236.497636
delta logL = 0.446211887203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3823       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2670       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91215       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=   11236.50     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3826        27.209        .92526E-02    .11157E-02
   2  alpha         3.2670        4.1159        .43915        .90250E-04
   3  Normalizat    1.0266        .39710E-01    .75582E-01    .41439E-03
   4  Prefactor     .91214        .19193E-01    .45160E-01   -.16684E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38257
  alpha      = 3.26695
  Normalizat = 1.02664
  Prefactor  = 0.912141
 **********
 **   18 **HESSE 
 **********

 FCN=   11236.50     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3826        3.1636        .13068E-03   -1.5473    
   2  alpha         3.2670        1.3224        .21460E-01    .31181    
   3  Normalizat    1.0266        .19476        .33449E-03   -.92143    
   4  Prefactor     .91214        .93010E-01    .17102E-03   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43882e-09
Minuit parameter uncertainties:
  1  3.16401
  2  1.4022
  3  0.1949
  4  0.0930265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781022': 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) = 11236.497636
delta logL = 0.446211932405

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.121e-01  9.303e-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:  1.027e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/781022/cmap_HighResolution_240883201_241142401_4FGL_J2321.9+3204_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-29 13:11:28.777395', job_id='781022', GAL2='0.91', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1632946288.78', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.46e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='6' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 781022: <4FGL_J2321.9+3204_daily_bin6> in cluster <slac> Done

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

Your job looked like:

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

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

