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


Performing analysis on: 4FGL_J2321.9+3204_monthly_bin121
RA = 350.478, Dec = 32.0737
tmin = 550627201, tmax = 553219201
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='691332', job_status='RUN', time_executed='2021-11-08 10:30:34.785725', time_epoch_executed='1636396234.79' WHERE source_name='4FGL J2321.9+3204' and cadence='monthly' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691332

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691332/ft1_4FGL_J2321.9+3204_monthly_bin121.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691332/ft1_4FGL_J2321.9+3204_monthly_bin121.fits outfile=/scratch/kocevski/691332/ft1_filteredMKT_4FGL_J2321.9+3204_monthly_bin121.fits ra=350.478 dec=32.0737 rad=12.0 tmin=550627201.0 tmax=553219201.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 30.06
user 29.35
sys 0.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691332/ft1_filtered_4FGL_J2321.9+3204_monthly_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/691332/ltcube_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.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/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits
.....................!
real 110.82
user 110.11
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691332/ft1_filtered_4FGL_J2321.9+3204_monthly_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/691332/ltcube_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.fits outfile=/scratch/kocevski/691332/expmap_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.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/691332/ltcube_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.fits
.....................!
real 191.51
user 186.36
sys 4.64

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/691332/ft1_filtered_4FGL_J2321.9+3204_monthly_bin121.fits scfile=/scratch/kocevski/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits outfile=/scratch/kocevski/691332/cmap_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691332/ft1_filtered_4FGL_J2321.9+3204_monthly_bin121.fits scfile=/scratch/kocevski/691332/ft2_4FGL_J2321.9+3204_monthly_bin121.fits outfile=/scratch/kocevski/691332/cmap_HighResolution_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.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.80
user 0.63
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4595       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0204       1.0000         .10000E-03   10000.    
     6 'norm      '    14.864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0014       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0658       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4472       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5445       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9685       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3479       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6292       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26878E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2724       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87385       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0601       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87323.31     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2421 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3070        5.0988         .0000        .42632E-01
   2  Prefactor     4.4596        2.1565         .0000        .71939E-02
   3  norm          3.1040        .41331         .0000        .13663E-02
   4  Prefactor     11.566        9.5462         .0000       -.14608E-03
   5  Prefactor     5.0206        4.0162         .0000        .77941E-03
   6  norm          14.863        1.7968         .0000       -.23474E-02
   7  Prefactor     5.0013        3.0339         .0000        .53891E-02
   8  Prefactor     2.1368        1.3030         .0000        .33431E-02
   9  Prefactor     9.0053        2.9488         .0000       -.26396E-02
  10  Prefactor     6.0655        5.3989         .0000       -.24812E-02
  11  norm          1.7338        .42147         .0000        .50549E-02
  12  Prefactor     7.0619        5.5121         .0000        .11525E-02
  13  Prefactor     7.8216        3.3598         .0000        .20782E-01
  14  Prefactor     2.4475        4.6069         .0000        .14810E-02
  15  norm          4.5445        1.7206         .0000        .79458E-01
  16  norm          .10000E-03    .58409         .0000    ** at limit **
  17  Prefactor     2.9689        5.3827         .0000        .23002E-02
  18  norm          .10000E-03    .11113         .0000    ** at limit **
  19  Prefactor     5.3478        3.7415         .0000        .10850E-01
  20  Prefactor     9.6282        9.6280         .0000       -.22311E-02
  21  Prefactor     .10008E-03    3.4931         .0000    ** at limit **
  22  Prefactor     7.2722        2.6978         .0000       -.17483E-02
  23  Normalizat    .87386        .67379E-01     .0000        .39703E-03
  24  Prefactor     1.0601        .31796E-01     .0000        .12508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30701
  Prefactor  = 4.45956
  norm       = 3.10399
  Prefactor  = 11.5664
  Prefactor  = 5.02056
  norm       = 14.8633
  Prefactor  = 5.00133
  Prefactor  = 2.13685
  Prefactor  = 9.00528
  Prefactor  = 6.06546
  norm       = 1.7338
  Prefactor  = 7.06188
  Prefactor  = 7.82162
  Prefactor  = 2.44745
  norm       = 4.54453
  norm       = 0.0001
  Prefactor  = 2.96886
  norm       = 0.0001
  Prefactor  = 5.34777
  Prefactor  = 9.62817
  Prefactor  = 0.000100081
  Prefactor  = 7.27222
  Normalizat = 0.873855
  Prefactor  = 1.06006
 **********
 **   18 **HESSE 
 **********

 FCN=   87323.31     FROM HESSE     STATUS=OK           425 CALLS     2846 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3070        5.0468        .19292E-02   -1.5479    
   2  Prefactor     4.4596        2.1563        .19068E-03   -1.5286    
   3  norm          3.1040        .41277        .66215E-04   -1.5356    
   4  Prefactor     11.566        9.5492        .58897E-03   -1.5028    
   5  Prefactor     5.0206        4.0095        .17947E-03   -1.5260    
   6  norm          14.863        1.7941        .10389E-03   -1.4937    
   7  Prefactor     5.0013        3.0337        .89909E-03   -1.5261    
   8  Prefactor     2.1368        1.2964        .25215E-03   -1.5416    
   9  Prefactor     9.0053        2.9479        .13356E-03   -1.5108    
  10  Prefactor     6.0655        5.3961        .16302E-03   -1.5215    
  11  norm          1.7338        .41834        .90028E-04   -1.5445    
  12  Prefactor     7.0619        5.5077        .15096E-03   -1.5176    
  13  Prefactor     7.8216        3.3434        .71688E-03   -1.5149    
  14  Prefactor     2.4475        4.5933        .26150E-03   -1.5395    
  15  norm          4.5445        1.6856        .94420E-03   -1.5282    
  16  norm          .10000E-03    .59121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9689        5.2666        .23567E-03   -1.5363    
  18  norm          .10000E-03    .44956        .19069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3478        3.7393        .86893E-03   -1.5245    
  20  Prefactor     9.6282        9.6443        .12914E-03   -1.5087    
  21  Prefactor     .10008E-03    3.5292        .17461       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2722        2.6679        .14874E-03   -1.5169    
  23  Normalizat    .87386        .76413E-01    .37977E-03   -.97385    
  24  Prefactor     1.0601        .36464E-01    .17114E-03   -.90753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15974e-08
Minuit parameter uncertainties:
  1  5.04847
  2  2.15636
  3  0.41277
  4  9.55046
  5  4.00971
  6  1.79406
  7  3.03384
  8  1.2964
  9  2.94797
  10  5.39653
  11  0.418344
  12  5.50814
  13  3.34351
  14  4.59398
  15  1.68558
  16  1.07051e-07
  17  5.26741
  18  3.2906e-09
  19  3.73945
  20  9.64583
  21  0.00107129
  22  2.66799
  23  0.0764228
  24  0.036465
Done.

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

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.545e+00  1.686e+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.060e+00  3.646e-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:  8.739e-01  7.642e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.62
Ra Dec: 350.478 32.074
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 1.03e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 4.62e-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) = 87322.880696
delta logL = 0.42606226397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87322.87077
delta logL = 0.435988273195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3456       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4103       1.0000          .0000       5.0000    
     3 'Normalizat'    .86440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       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=   87322.87     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      260 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3456        1.5154        .18437E-03    .10122E-02
   2  alpha         2.4103        .29776        .22071E-01    .11732E-03
   3  Normalizat    .86440        .73038E-01    .38162E-03   -.10439E-03
   4  Prefactor     1.0620        .35801E-01    .17099E-03   -.30105E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3456
  alpha      = 2.41033
  Normalizat = 0.864404
  Prefactor  = 1.06202
 **********
 **   18 **HESSE 
 **********

 FCN=   87322.87     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3456        1.4634        .73749E-05   -1.5291    
   2  alpha         2.4103        .28731        .88283E-03   -.35877E-01
   3  Normalizat    .86440        .73008E-01    .15265E-04   -.97722    
   4  Prefactor     1.0620        .35802E-01    .68396E-05   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9161e-11
Minuit parameter uncertainties:
  1  1.46339
  2  0.28795
  3  0.0730166
  4  0.0358029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691332': 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) = 87322.87077
delta logL = 0.435988273792

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  4.346e+00  1.463e+00  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.410e+00  2.880e-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.062e+00  3.580e-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:  8.644e-01  7.302e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.49
Ra Dec: 350.478 32.074
Photon Index (Free Index): 2.41 +/- 0.29
Photon Flux (Free Index): 3.69e-08 +/- 1.47e-08
Energy Flux (Free Index): 1.22e-05 +/- 3.82e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/691332/cmap_HighResolution_550627201_553219201_4FGL_J2321.9+3204_monthly_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.22e-05', photon_flux_error='1.03e-08', dlogl='4.36e-01', energy_flux='1.24e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-11-08 12:09:50.817568', photon_index_error2='0.29', photon_index2='2.41', ts='15.62', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.82e-06', EG='0.87', time_epoch_completed='1636402190.82', return_code='0', job_id='691332', GAL2='1.06', EG2='0.86', return_code2='0', energy_flux_error='4.62e-06', photon_flux_error2='1.47e-08', ts2='16.49', photon_index='2.14' WHERE bin_id='121' AND source_name='4FGL J2321.9+3204' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 12:09:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0285>
Subject: Job 691332: <4FGL_J2321.9+3204_monthly_bin121> in cluster <slac> Done

Job <4FGL_J2321.9+3204_monthly_bin121> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Nov  8 10:30:18 2021
Job was executed on host(s) <bullet0285>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 10:30:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  8 10:30:20 2021
Terminated at Mon Nov  8 12:09:51 2021
Results reported at Mon Nov  8 12:09:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_monthly_bin121 350.478 32.0737 550627201 553219201 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 :                                   4625.78 sec.
    Max Memory :                                 640 MB
    Average Memory :                             358.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2946 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5971 sec.
    Turnaround time :                            5973 sec.

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

