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


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1240
RA = 350.478, Dec = 32.0737
tmin = 560736001, tmax = 560995201
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='788128', job_status='RUN', time_executed='2021-09-29 13:24:13.970601', time_epoch_executed='1632947053.97' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788128/ft1_4FGL_J2321.9+3204_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788128/ft1_4FGL_J2321.9+3204_daily_bin1240.fits outfile=/scratch/kocevski/788128/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1240.fits ra=350.478 dec=32.0737 rad=12.0 tmin=560736001.0 tmax=560995201.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.77
user 3.56
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/788128/ltcube_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.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/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits
.....................!
real 11.55
user 11.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/788128/ltcube_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits outfile=/scratch/kocevski/788128/expmap_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.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/788128/ltcube_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits
.....................!
real 190.23
user 185.03
sys 4.87

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/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits scfile=/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits outfile=/scratch/kocevski/788128/cmap_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits scfile=/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits outfile=/scratch/kocevski/788128/cmap_HighResolution_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits', '/scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits', expMap='/scratch/kocevski/788128/expmap_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits', expCube='/scratch/kocevski/788128/ltcube_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788128/Model_4FGL_J2321.9+3204_daily_bin1240.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/788128/ft1_filtered_4FGL_J2321.9+3204_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/788128/ft2_4FGL_J2321.9+3204_daily_bin1240.fits
Exposure map: /scratch/kocevski/788128/expmap_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits
Exposure cube: /scratch/kocevski/788128/ltcube_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788128/Model_4FGL_J2321.9+3204_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1292.31405889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1288.5046817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24857E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27609       1.0000         .10000E-03   10000.    
     6 'norm      '    8.0602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78504E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    544.45       1.0000         .10000E-03   10000.    
    11 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40593E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    101.73       1.0000         .10000E-03   10000.    
    15 'norm      '    .35611E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.346       1.0000         .10000E-03   10000.    
    18 'norm      '    .22227E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16751       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1487       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15148E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95722       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0425       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1288.490     FROM MIGRAD    STATUS=CONVERGED    207 CALLS      467 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.639        103.91        .19491E-02   -.38093E-03
   2  Prefactor     .10000E-03    11.020        .90712E-02** at limit **
   3  norm          .90493        11.334        .12752E-01    .76497    
   4  Prefactor     .41259E-03    6494.5        .85610E-02** at limit **
   5  Prefactor     .14749E-02    1655.7        .10320E-01** at limit **
   6  norm          8.0602        1.0019         .0000         .0000    
   7  Prefactor     .12388E-02    .33009       -.64249E-04** at limit **
   8  Prefactor     2.0929        1.0318         .0000         .0000    
   9  Prefactor     .10000E-03    .21412        .17205E-05** at limit **
  10  Prefactor     543.56        .99923       -.14543E-05    .46958E-01
  11  norm          .10000E-03    .20571        .41766E-06** at limit **
  12  Prefactor     2.9211        1.4742       -.35453E-05    .10291E-03
  13  Prefactor     .10000E-03    .23707        .10982E-04** at limit **
  14  Prefactor     100.55        .99426       -.23182E-06   -.27251E-02
  15  norm          .10000E-03    .21158       -.11536E-05** at limit **
  16  norm          .28824E-03    .17755       -.38011E-04** at limit **
  17  Prefactor     47.420        1.0226       -.63123E-06    .58949E-02
  18  norm          .10000E-03    .20856        .13939E-04** at limit **
  19  Prefactor     82.857        1.0046       -.45278E-06    .10857E-02
  20  Prefactor     .10000E-03    .24149       -.25671E-05** at limit **
  21  Prefactor     .10164E-03    .35169E-01   -.68274E-04** at limit **
  22  Prefactor     .10000E-03    .20571       -.20314E-04** at limit **
  23  Normalizat    .96012        1.2913        .99537E-05    .25444E-04
  24  Prefactor     1.0373        1.1978       -.10107E-04    .73961E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.6386
  Prefactor  = 0.0001
  norm       = 0.904932
  Prefactor  = 0.000412594
  Prefactor  = 0.00147487
  norm       = 8.0602
  Prefactor  = 0.0012388
  Prefactor  = 2.09286
  Prefactor  = 0.0001
  Prefactor  = 543.558
  norm       = 0.0001
  Prefactor  = 2.92115
  Prefactor  = 0.000100002
  Prefactor  = 100.547
  norm       = 0.0001
  norm       = 0.000288238
  Prefactor  = 47.4195
  norm       = 0.000100001
  Prefactor  = 82.8566
  Prefactor  = 0.0001
  Prefactor  = 0.000101639
  Prefactor  = 0.0001
  Normalizat = 0.960123
  Prefactor  = 1.03729
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1288.490     FROM HESSE     STATUS=FAILED        21 CALLS      488 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.639        103.91        .19491E-02   -1.4513    
   2  Prefactor     .10000E-03    11.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .90493        11.334        .12752E-01   -1.5518    
   4  Prefactor     .41259E-03    6494.5        .85610E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14749E-02    1655.7        .10320E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          504.77        496.68         .0000       -1.5140    
   7  Prefactor     .12388E-02    .33009       -.64249E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0929        1.0318         .0000       -1.5419    
   9  Prefactor     .10000E-03    .21412        .17205E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     543.56        .99923       -.14543E-05   -1.1002    
  11  norm          .10000E-03    .20571        .41766E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9211        1.4742       -.35453E-05   -1.5366    
  13  Prefactor     .10000E-03    .23707        .10982E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     100.55        .99426       -.23182E-06   -1.3699    
  15  norm          .10000E-03    .21158       -.11536E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .28824E-03    .17755       -.38011E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.420        1.0226       -.63123E-06   -1.4330    
  18  norm          .10000E-03    .20856        .13939E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     82.857        1.0046       -.45278E-06   -1.3885    
  20  Prefactor     .10000E-03    .24149       -.25671E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10164E-03    .35169E-01   -.68274E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571       -.20314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96012        1.2913        .99537E-05   -.94379    
  24  Prefactor     1.0373        1.1978       -.10107E-04   -.91497    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.94213e-10
Minuit parameter uncertainties:
  1  104.446
  2  3.04627e-05
  3  6.40631
  4  2.04475
  5  3.10766
  6  1.00194
  7  0.038777
  8  1.03184
  9  1.08611e-06
  10  0.999229
  11  2.92743e-09
  12  1.47418
  13  3.78916e-05
  14  0.994259
  15  6.35883e-06
  16  0.0115623
  17  1.02256
  18  3.33808e-05
  19  1.00456
  20  2.71048e-06
  21  0.000480153
  22  5.48198e-06
  23  1.33724
  24  1.23092
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1288.48988075

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  6.359e-06  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.037e+00  1.231e+00  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:  9.601e-01  1.337e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 4.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/788128/likelihoodResults_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.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) = 1288.49005392
delta logL = -0.000173169004029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1288.48988416
delta logL = -3.40183669323e-06

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2280.7        .40969E-02** at limit **
   2  alpha         2.6706        3.3963        .16636        .17460E-07
   3  Normalizat    .96012        .13232        .39497E-03   -.32893E-04
   4  Prefactor     1.0373        .69304E-01    .19828E-03   -.21532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.67056
  Normalizat = 0.96012
  Prefactor  = 1.03729
 **********
 **   18 **HESSE 
 **********

 FCN=   1288.490     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.363        .81938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6706        3.4072        .66545E-02    .68278E-01
   3  Normalizat    .96012        .67911        .15799E-04   -.94379    
   4  Prefactor     1.0373        .35798        .39657E-04   -.91497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14762e-11
Minuit parameter uncertainties:
  1  0.000461577
  2  507.7
  3  0.685336
  4  0.35881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788128': 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) = 1288.48988031
delta logL = 4.41123120254e-07

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.000e-04  4.616e-04  1.000e-04  1.000e+04 ( 1.000e-12)
434        alpha:  2.671e+00  5.077e+02  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.037e+00  3.588e-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:  9.601e-01  6.853e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/788128/cmap_HighResolution_560736001_560995201_4FGL_J2321.9+3204_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-04', job_status='DONE', photon_flux_upper_limit='4.31e-07', time_completed='2021-09-29 13:31:52.087239', job_id='788128', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632947512.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.04', dlogl='4.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1240' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:31:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 788128: <4FGL_J2321.9+3204_daily_bin1240> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1240> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:20:54 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:20:55 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:20:55 2021
Terminated at Wed Sep 29 13:31:52 2021
Results reported at Wed Sep 29 13:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1240 350.478 32.0737 560736001 560995201 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 :                                   339.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            658 sec.

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

