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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1541
RA = 350.478, Dec = 32.0737
tmin = 638755201, tmax = 639014401
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='789453', job_status='RUN', time_executed='2021-09-29 13:25:52.075975', time_epoch_executed='1632947152.08' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/789453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/789453/ft1_4FGL_J2321.9+3204_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/789453/ft2_4FGL_J2321.9+3204_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/789453/ft1_4FGL_J2321.9+3204_daily_bin1541.fits outfile=/scratch/kocevski/789453/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1541.fits ra=350.478 dec=32.0737 rad=12.0 tmin=638755201.0 tmax=639014401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.33
user 5.10
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/789453/ft1_filtered_4FGL_J2321.9+3204_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/789453/ft2_4FGL_J2321.9+3204_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/789453/ltcube_638755201_639014401_4FGL_J2321.9+3204_daily_bin1541.fits outfile=/scratch/kocevski/789453/expmap_638755201_639014401_4FGL_J2321.9+3204_daily_bin1541.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/789453/ltcube_638755201_639014401_4FGL_J2321.9+3204_daily_bin1541.fits
.....................!
real 192.37
user 187.04
sys 4.99

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1250       1.0000         .10000E-03   10000.    
     3 'norm      '    .52498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.660       1.0000         .10000E-03   10000.    
     6 'norm      '    .10291E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28993E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.720       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22332E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.470       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9803       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0326       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0179       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=   7652.834     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2782 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.447        19.795       -.18550E-06   -.15176E-04
   2  Prefactor     3.1198        4.9753        .13391E-05   -.14147E-02
   3  norm          .52497        .79259       -.46076E-07   -.57951E-03
   4  Prefactor     10.881        45.784        .16175E-05    .31191E-05
   5  Prefactor     13.661        14.663        .19095E-05    .97961E-04
   6  norm          .10000E-03    2.7467       -.48679E-07** at limit **
   7  Prefactor     5.4522        19.592        .10638E-05   -.21919E-04
   8  Prefactor     6.4855        6.3386        .36781E-06   -.23034E-04
   9  Prefactor     .10000E-03    7.0299       -.46707E-07** at limit **
  10  Prefactor     .10000E-03    157.98        .30470E-04** at limit **
  11  norm          1.9297        1.2441       -.39158E-08   -.37034E-03
  12  Prefactor     4.1888        40.763       -.94520E-06   -.14920E-04
  13  Prefactor     .10000E-03    5.7094       -.36655E-07** at limit **
  14  Prefactor     16.726        25.914       -.17001E-05   -.43296E-04
  15  norm          .10000E-03    1.1773       -.42280E-07** at limit **
  16  norm          .10005E-03    10.170       -.75874E-07** at limit **
  17  Prefactor     .10000E-03    3.9813        .28252E-07** at limit **
  18  norm          .10000E-03    2.2614        .46305E-07** at limit **
  19  Prefactor     4.7312        14.518        .46967E-05    .70318E-04
  20  Prefactor     35.466        50.958       -.28153E-05   -.31253E-04
  21  Prefactor     .10000E-03    83.393        .40524E-07** at limit **
  22  Prefactor     2.9799        7.0204       -.45802E-06   -.12812E-03
  23  Normalizat    1.0327        .22639        .69709E-06   -.14724E-03
  24  Prefactor     1.0178        .10519       -.50980E-06   -.21283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.447
  Prefactor  = 3.11978
  norm       = 0.52497
  Prefactor  = 10.8814
  Prefactor  = 13.6614
  norm       = 0.0001
  Prefactor  = 5.45216
  Prefactor  = 6.48547
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.92969
  Prefactor  = 4.18882
  Prefactor  = 0.0001
  Prefactor  = 16.7262
  norm       = 0.0001
  norm       = 0.000100047
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.73124
  Prefactor  = 35.4663
  Prefactor  = 0.0001
  Prefactor  = 2.97989
  Normalizat = 1.03272
  Prefactor  = 1.01779
 **********
 **   18 **HESSE 
 **********

 FCN=   7652.834     FROM HESSE     STATUS=OK           417 CALLS     3199 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.447        19.724        .86488E-04   -1.4781    
   2  Prefactor     3.1198        10.042        .11467E-02   -1.5355    
   3  norm          .52497        .64718        .92234E-03   -1.5563    
   4  Prefactor     10.881        45.904        .12148E-03   -1.5048    
   5  Prefactor     13.661        14.651        .10837E-03   -1.4969    
   6  norm          .10000E-03    7.3123        .27463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4522        19.607        .17207E-03   -1.5241    
   8  Prefactor     6.4855        6.2037        .15758E-03   -1.5199    
   9  Prefactor     .10000E-03    7.0613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    159.73        .42808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9297        1.2416        .75543E-04   -1.5430    
  12  Prefactor     4.1888        40.726        .19692E-03   -1.5299    
  13  Prefactor     .10000E-03    5.7361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.726        25.906        .97948E-04   -1.4890    
  15  norm          .10000E-03    1.1798        .92693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    12.186        .80894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9850        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3638        .25659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7312        14.579        .18501E-03   -1.5273    
  20  Prefactor     35.466        51.270        .67289E-04   -1.4516    
  21  Prefactor     .10000E-03    83.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9799        6.9830        .23517E-03   -1.5363    
  23  Normalizat    1.0327        .26771        .35991E-03   -.91942    
  24  Prefactor     1.0178        .12431        .17081E-03   -.92139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32634e-09
Minuit parameter uncertainties:
  1  19.7302
  2  10.0475
  3  0.647185
  4  44.7576
  5  14.6553
  6  6.87419e-05
  7  19.6303
  8  6.2043
  9  1.1149e-07
  10  0.00123043
  11  1.24163
  12  26.1452
  13  5.43657e-06
  14  25.9234
  15  1.57311e-07
  16  0.00151738
  17  1.78576e-06
  18  1.26534e-06
  19  14.5897
  20  51.3342
  21  0.000130761
  22  6.98489
  23  0.268059
  24  0.124344
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.018e+00  1.243e-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.033e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/789453/likelihoodResults_638755201_639014401_4FGL_J2321.9+3204_daily_bin1541.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): 102
logL (Free Index) = 7652.83758033
delta logL = -0.00393111621361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7652.83364898
delta logL = 2.3959819373e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0178       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=   7652.834     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      235 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    37.309        .93345E-02** at limit **
   2  alpha         1.5392        4.1945        .50000       -.11034E-06
   3  Normalizat    1.0327        .30136E-01    .35991E-03    .60554E-04
   4  Prefactor     1.0178        .14307E-01    .17081E-03    .16683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53925
  Normalizat = 1.03272
  Prefactor  = 1.01779
 **********
 **   18 **HESSE 
 **********

 FCN=   7652.834     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    239.25        .10139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5392        4.2266        .50000       -.39445    
   3  Normalizat    1.0327        .10183        .14396E-04   -.91942    
   4  Prefactor     1.0178        .48350E-01    .34162E-04   -.92139    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47764e-09
Minuit parameter uncertainties:
  1  6.69221e-05
  2  1532.82
  3  0.101847
  4  0.048352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/789453': 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): 102
logL (Free Index) = 7652.83364212
delta logL = 7.09815321898e-06

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  6.692e-05  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  1.539e+00  1.533e+03  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.018e+00  4.835e-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.033e+00  1.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.478 32.074

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/789453/cmap_HighResolution_638755201_639014401_4FGL_J2321.9+3204_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2021-09-29 13:39:01.286727', job_id='789453', GAL2='1.02', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632947941.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1541' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 789453: <4FGL_J2321.9+3204_daily_bin1541> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1541> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 13:25:34 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:25:35 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:25:35 2021
Terminated at Wed Sep 29 13:39:02 2021
Results reported at Wed Sep 29 13:39:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1541 350.478 32.0737 638755201 639014401 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 :                                   779.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

