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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1078
RA = 350.975, Dec = 42.1826
tmin = 518745601, tmax = 519004801
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='826556', job_status='RUN', time_executed='2021-09-29 15:25:41.015851', time_epoch_executed='1632954341.02' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826556/ft1_4FGL_J2323.8+4210_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826556/ft1_4FGL_J2323.8+4210_daily_bin1078.fits outfile=/scratch/kocevski/826556/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1078.fits ra=350.975 dec=42.1826 rad=12.0 tmin=518745601.0 tmax=519004801.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 4.35
user 4.13
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.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/826556/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1078.fits evtable="EVENTS" outfile="/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits" evtable="EVENTS" scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits sctable="SC_DATA" outfile=/scratch/kocevski/826556/ltcube_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.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/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/826556/ltcube_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits outfile=/scratch/kocevski/826556/expmap_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.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/826556/ltcube_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits
.....................!
real 191.30
user 186.15
sys 4.69

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits outfile=/scratch/kocevski/826556/cmap_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.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.975 yref=42.1826 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits outfile=/scratch/kocevski/826556/cmap_HighResolution_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.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.975 yref=42.1826 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826556/Model_4FGL_J2323.8+4210_daily_bin1078.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits.....................!
real 126.18
user 124.75
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits', '/scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits', expMap='/scratch/kocevski/826556/expmap_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits', expCube='/scratch/kocevski/826556/ltcube_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826556/Model_4FGL_J2323.8+4210_daily_bin1078.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/826556/ft1_filtered_4FGL_J2323.8+4210_daily_bin1078.fits
Spacecraft file(s): /scratch/kocevski/826556/ft2_4FGL_J2323.8+4210_daily_bin1078.fits
Exposure map: /scratch/kocevski/826556/expmap_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits
Exposure cube: /scratch/kocevski/826556/ltcube_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826556/Model_4FGL_J2323.8+4210_daily_bin1078.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) = 11110.8640554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.2083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1032       1.0000         .10000E-03   10000.    
     5 'norm      '    .11401E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.376       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2750       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2264       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86481       1.0000         .10000E-03   10000.    
    16 'norm      '    7.9026       1.0000         .10000E-03   10000.    
    17 'norm      '    16.027       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.375       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.025       1.0000         .10000E-03   10000.    
    21 'norm      '    23.522       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.494       1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.676       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98614       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97493       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11110.86     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3081 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.023       -.53723E-06** at limit **
   2  Prefactor     .10000E-03    5.6037        .14399E-06** at limit **
   3  norm          7.2072        14.860       -.63617E-07    .18564E-03
   4  Prefactor     2.1044        3.1231        .29984E-05   -.57822E-03
   5  norm          .10001E-03    1.0669        .15956E-05** at limit **
   6  Prefactor     .10000E-03    .99813        .14972E-06** at limit **
   7  Prefactor     .10000E-03    8.0266        .77821E-07** at limit **
   8  Prefactor     .10000E-03    38.719        .11189E-05** at limit **
   9  Prefactor     31.376        10.956       -.39603E-07   -.16222E-03
  10  norm          6.2745        5.6483        .20007E-06   -.18593E-04
  11  Prefactor     .10000E-03    7.3059        .53256E-06** at limit **
  12  Prefactor     14.362        8.1635       -.95545E-07   -.29393E-03
  13  Prefactor     .10000E-03    7.0678        .53662E-06** at limit **
  14  norm          2.2267        1.5073       -.16511E-06   -.10243E-02
  15  Prefactor     .80757        20.444       -.14287E-04   -.23309E-04
  16  norm          7.9047        5.9885       -.38917E-06   -.24354E-03
  17  norm          16.029        10.150        .68274E-07   -.62283E-04
  18  Prefactor     15.358        21.856        .13845E-05    .90395E-04
  19  norm          1.4027        1.8302        .14710E-07   -.22496E-03
  20  Prefactor     13.019        22.005        .42488E-06    .17855E-04
  21  norm          23.520        13.781        .15364E-06    .93529E-05
  22  Prefactor     24.493        28.088        .13168E-06    .28674E-04
  23  Prefactor     37.679        39.858        .51651E-07    .22087E-03
  24  Prefactor     .10000E-03    6.3301        .79151E-06** at limit **
  25  Normalizat    .98607        .22250        .30532E-05    .12284E-03
  26  Prefactor     .97499        .74270E-01   -.11665E-05   -.92773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.20718
  Prefactor  = 2.10437
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3763
  norm       = 6.27454
  Prefactor  = 0.0001
  Prefactor  = 14.3625
  Prefactor  = 0.0001
  norm       = 2.22669
  Prefactor  = 0.80757
  norm       = 7.90473
  norm       = 16.0289
  Prefactor  = 15.3583
  norm       = 1.40271
  Prefactor  = 13.0187
  norm       = 23.52
  Prefactor  = 24.4935
  Prefactor  = 37.6795
  Prefactor  = 0.000100002
  Normalizat = 0.986073
  Prefactor  = 0.974994
 **********
 **   18 **HESSE 
 **********

 FCN=   11110.86     FROM HESSE     STATUS=OK           464 CALLS     3545 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2072        14.880        .74701E-03   -1.5171    
   4  Prefactor     2.1044        4.8208        .14227E-02   -1.5418    
   5  norm          .10001E-03    8.2458        .18876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0145        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.376        10.925        .71532E-04   -1.4587    
  10  norm          6.2745        5.6265        .16025E-03   -1.5207    
  11  Prefactor     .10000E-03    7.3164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.362        8.1502        .10569E-03   -1.4950    
  13  Prefactor     .10000E-03    7.0768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2267        1.5038        .10117E-03   -1.5410    
  15  Prefactor     .80757        29.312        .49338E-02   -1.5528    
  16  norm          7.9047        5.9843        .14263E-03   -1.5146    
  17  norm          16.029        10.140        .10004E-03   -1.4907    
  18  Prefactor     15.358        21.931        .10214E-03   -1.4924    
  19  norm          1.4027        1.8012        .15648E-03   -1.5471    
  20  Prefactor     13.019        22.008        .11099E-03   -1.4986    
  21  norm          23.520        13.805        .82590E-04   -1.4738    
  22  Prefactor     24.493        28.094        .80938E-04   -1.4718    
  23  Prefactor     37.679        39.809        .65296E-04   -1.4480    
  24  Prefactor     .10000E-03    6.4303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98607        .24849        .42927E-03   -.93498    
  26  Prefactor     .97499        .84249E-01    .15538E-03   -.93568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73128e-08
Minuit parameter uncertainties:
  1  0.000182402
  2  2.63798e-05
  3  14.8877
  4  4.82166
  5  0.000551934
  6  1.20241e-05
  7  3.92744e-05
  8  0.000157316
  9  10.9257
  10  5.627
  11  2.73566e-05
  12  8.15083
  13  3.65936e-05
  14  1.50386
  15  9.73519
  16  5.98471
  17  10.1414
  18  21.9425
  19  1.80131
  20  22.0215
  21  13.8069
  22  28.1094
  23  39.8368
  24  0.000226076
  25  0.248785
  26  0.0842601
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.603e+01  1.014e+01  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.750e-01  8.426e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  9.861e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.02
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 2.37e-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) = 11110.5773817
delta logL = 0.283240733652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11110.5711441
delta logL = 0.289478277404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.014       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4001       1.0000          .0000       5.0000    
     3 'Normalizat'    .99374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11110.57     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.014        23.161        .25841E-02    .34066E-03
   2  alpha         1.4001        .86247        .47184       -.27108E-04
   3  Normalizat    .99376        .21250        .96571E-01    .38772E-04
   4  Prefactor     .97554        .74278E-01    .35161E-01   -.54617E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0143
  alpha      = 1.40007
  Normalizat = 0.993758
  Prefactor  = 0.975535
 **********
 **   18 **HESSE 
 **********

 FCN=   11110.57     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.014        10.886        .10337E-03   -1.4933    
   2  alpha         1.4001        .48823        .17361E-01   -.45557    
   3  Normalizat    .99376        .22614        .42780E-03   -.93240    
   4  Prefactor     .97554        .82222E-01    .15537E-03   -.93550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89481e-10
Minuit parameter uncertainties:
  1  10.8878
  2  0.492164
  3  0.226355
  4  0.0822321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826556': 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) = 11110.5711441
delta logL = 0.289478279838

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.501e+01  1.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.400e+00  4.922e-01  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.755e-01  8.223e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  9.938e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.60
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.40 +/- 0.49
Photon Flux (Free Index): 1.78e-08 +/- 1.72e-08
Energy Flux (Free Index): 6.21e-05 +/- 6.04e-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/826556/cmap_HighResolution_518745601_519004801_4FGL_J2323.8+4210_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='6.21e-05', photon_flux_error='1.93e-08', dlogl='2.89e-01', energy_flux='3.75e-05', photon_flux2='1.78e-08', job_status='DONE', time_completed='2021-09-29 15:41:41.811260', photon_index_error2='0.49', photon_index2='1.40', ts='15.02', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='6.04e-05', EG='0.99', time_epoch_completed='1632955301.81', return_code='0', job_id='826556', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='1.72e-08', ts2='15.60', photon_index='1.78' WHERE bin_id='1078' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:41:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 826556: <4FGL_J2323.8+4210_daily_bin1078> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1078> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:25:24 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:25:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:25:26 2021
Terminated at Wed Sep 29 15:41:42 2021
Results reported at Wed Sep 29 15:41:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1078 350.975 42.1826 518745601 519004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.8+4210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   954.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

