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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1361
RA = 350.478, Dec = 32.0737
tmin = 592099201, tmax = 592358401
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='788317', job_status='RUN', time_executed='2021-09-29 13:23:33.109492', time_epoch_executed='1632947013.11' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788317/ft1_4FGL_J2321.9+3204_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788317/ft1_4FGL_J2321.9+3204_daily_bin1361.fits outfile=/scratch/kocevski/788317/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1361.fits ra=350.478 dec=32.0737 rad=12.0 tmin=592099201.0 tmax=592358401.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.47
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788317/ft1_filtered_4FGL_J2321.9+3204_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/788317/ltcube_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.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/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits
.....................!
real 11.83
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788317/ft1_filtered_4FGL_J2321.9+3204_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/788317/ltcube_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.fits outfile=/scratch/kocevski/788317/expmap_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.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/788317/ltcube_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.fits
.....................!
real 192.12
user 186.14
sys 5.61

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/788317/ft1_filtered_4FGL_J2321.9+3204_daily_bin1361.fits scfile=/scratch/kocevski/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits outfile=/scratch/kocevski/788317/cmap_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788317/ft1_filtered_4FGL_J2321.9+3204_daily_bin1361.fits scfile=/scratch/kocevski/788317/ft2_4FGL_J2321.9+3204_daily_bin1361.fits outfile=/scratch/kocevski/788317/cmap_HighResolution_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7679       1.0000         .10000E-03   10000.    
     3 'norm      '    7.6584       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.305       1.0000         .10000E-03   10000.    
    11 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0508       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1103       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0467       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88242       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0900       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=   9607.627     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2703 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9955        .20452E-07** at limit **
   2  Prefactor     5.7701        7.5129       -.48721E-06   -.37357E-03
   3  norm          7.6584        1.6032        .76958E-08    .81622E-04
   4  Prefactor     .10000E-03    82.750       -.40874E-04** at limit **
   5  Prefactor     .10000E-03    10.883       -.76773E-06** at limit **
   6  norm          .10000E-03    1.6772       -.63112E-07** at limit **
   7  Prefactor     .10000E-03    6.5899       -.61256E-06** at limit **
   8  Prefactor     5.6953        4.8253        .20492E-05   -.20802E-04
   9  Prefactor     8.7596        9.2660       -.19660E-06   -.28818E-04
  10  Prefactor     25.284        25.031       -.74145E-05    .54967E-05
  11  norm          .10000E-03    .48090        .32652E-07** at limit **
  12  Prefactor     .10000E-03    7.6674        .31568E-05** at limit **
  13  Prefactor     .10000E-03    8.0973       -.27652E-05** at limit **
  14  Prefactor     .10000E-03    37.007       -.26960E-04** at limit **
  15  norm          6.0515        4.7455        .20251E-05   -.10445E-03
  16  norm          .10000E-03    2.2183       -.23228E-08** at limit **
  17  Prefactor     11.866        16.247        .97099E-07   -.90116E-05
  18  norm          2.1098        2.0098       -.63796E-07   -.45599E-03
  19  Prefactor     6.0887        14.031       -.52139E-06   -.89965E-04
  20  Prefactor     .10000E-03    49.184        .55169E-04** at limit **
  21  Prefactor     .10000E-03    13.007        .19798E-05** at limit **
  22  Prefactor     5.0485        6.5289       -.36248E-06   -.28616E-03
  23  Normalizat    .88214        .19657       -.66103E-06   -.95733E-04
  24  Prefactor     1.0902        .95831E-01    .27338E-06   -.51496E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.77013
  norm       = 7.65843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69534
  Prefactor  = 8.75963
  Prefactor  = 25.2838
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.05146
  norm       = 0.0001
  Prefactor  = 11.8662
  norm       = 2.10984
  Prefactor  = 6.0887
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.04847
  Normalizat = 0.882143
  Prefactor  = 1.09021
 **********
 **   18 **HESSE 
 **********

 FCN=   9607.627     FROM HESSE     STATUS=OK           397 CALLS     3100 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7701        7.5355        .16724E-03   -1.5227    
   3  norm          7.6584        1.6030        .54884E-04   -1.5154    
   4  Prefactor     .10000E-03    83.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7002        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6953        4.8287        .16829E-03   -1.5231    
   9  Prefactor     8.7596        9.2644        .13543E-03   -1.5116    
  10  Prefactor     25.284        25.057        .79633E-04   -1.4702    
  11  norm          .10000E-03    .82874        .13128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0515        4.7251        .16322E-03   -1.5216    
  16  norm          .10000E-03    2.2193        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.866        16.233        .11629E-03   -1.5019    
  18  norm          2.1098        2.0001        .13129E-03   -1.5417    
  19  Prefactor     6.0887        14.031        .16269E-03   -1.5214    
  20  Prefactor     .10000E-03    49.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0485        6.5246        .17899E-03   -1.5259    
  23  Normalizat    .88214        .22246        .37587E-03   -.97090    
  24  Prefactor     1.0902        .10942        .17075E-03   -.89780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12822e-10
Minuit parameter uncertainties:
  1  1.57955e-06
  2  7.53677
  3  1.603
  4  0.000176933
  5  9.89256e-07
  6  8.13365e-06
  7  1.64412e-06
  8  4.82901
  9  9.26594
  10  25.0672
  11  3.33141e-06
  12  8.64037e-07
  13  3.49648e-05
  14  9.04663e-05
  15  4.72539
  16  1.88689e-07
  17  16.2386
  18  2.00021
  19  14.0387
  20  0.000417064
  21  5.24219e-06
  22  6.52556
  23  0.222689
  24  0.109446
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.051e+00  4.725e+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:  1.090e+00  1.094e-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:  8.821e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.68e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.29e-05

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) = 9607.21656497
delta logL = 0.410851416904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9607.21351998
delta logL = 0.413896403374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1685       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5159       1.0000          .0000       5.0000    
     3 'Normalizat'    .89782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0866       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=   9607.214     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1685        4.8731        .40410E-02    .79376E-03
   2  alpha         1.5158        .49497        .46156       -.69085E-04
   3  Normalizat    .89780        .18787        .84225E-01   -.27171E-03
   4  Prefactor     1.0866        .94188E-01    .38119E-01   -.25728E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.16852
  alpha      = 1.51582
  Normalizat = 0.897796
  Prefactor  = 1.08662
 **********
 **   18 **HESSE 
 **********

 FCN=   9607.214     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1685        4.8390        .16164E-03   -1.5211    
   2  alpha         1.5158        .60595        .18545E-01   -.40462    
   3  Normalizat    .89780        .21202        .37292E-03   -.96538    
   4  Prefactor     1.0866        .10678        .17098E-03   -.89895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31722e-10
Minuit parameter uncertainties:
  1  4.83934
  2  0.613197
  3  0.212222
  4  0.106802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788317': 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) = 9607.21351996
delta logL = 0.41389642887

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.087e+00  1.068e-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:  8.978e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 350.478 32.074
Photon Index (Free Index): 1.52 +/- 0.61
Photon Flux (Free Index): 2.20e-08 +/- 2.10e-08
Energy Flux (Free Index): 3.02e-05 +/- 3.07e-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/788317/cmap_HighResolution_592099201_592358401_4FGL_J2321.9+3204_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.68e-08', energy_flux2='3.02e-05', photon_flux_error='2.88e-08', dlogl='4.14e-01', energy_flux='1.66e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-29 13:36:44.728262', photon_index_error2='0.61', photon_index2='1.52', ts='4.28', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='0.88', time_epoch_completed='1632947804.73', return_code='0', job_id='788317', GAL2='1.09', EG2='0.90', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.10e-08', ts2='5.12', photon_index='2.14' WHERE bin_id='1361' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 788317: <4FGL_J2321.9+3204_daily_bin1361> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1361> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:21:13 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:21:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:21:14 2021
Terminated at Wed Sep 29 13:36:45 2021
Results reported at Wed Sep 29 13:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1361 350.478 32.0737 592099201 592358401 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 :                                   782.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

