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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1429
RA = 350.975, Dec = 42.1826
tmin = 609724801, tmax = 609984001
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='828772', job_status='RUN', time_executed='2021-09-29 15:37:53.705628', time_epoch_executed='1632955073.71' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828772/ft1_4FGL_J2323.8+4210_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828772/ft1_4FGL_J2323.8+4210_daily_bin1429.fits outfile=/scratch/kocevski/828772/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1429.fits ra=350.975 dec=42.1826 rad=12.0 tmin=609724801.0 tmax=609984001.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 2.58
user 2.42
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.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/828772/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1429.fits evtable="EVENTS" outfile="/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.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.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/828772/ltcube_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.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/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits
.....................!
real 13.07
user 12.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/828772/ltcube_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits outfile=/scratch/kocevski/828772/expmap_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.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/828772/ltcube_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits
.....................!
real 189.55
user 184.96
sys 4.27

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/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits outfile=/scratch/kocevski/828772/cmap_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.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.52
user 0.41
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits outfile=/scratch/kocevski/828772/cmap_HighResolution_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.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.54
user 0.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/828772/Model_4FGL_J2323.8+4210_daily_bin1429.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/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits.....................!
real 60.74
user 59.48
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits', '/scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits', expMap='/scratch/kocevski/828772/expmap_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits', expCube='/scratch/kocevski/828772/ltcube_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/828772/Model_4FGL_J2323.8+4210_daily_bin1429.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/828772/ft1_filtered_4FGL_J2323.8+4210_daily_bin1429.fits
Spacecraft file(s): /scratch/kocevski/828772/ft2_4FGL_J2323.8+4210_daily_bin1429.fits
Exposure map: /scratch/kocevski/828772/expmap_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits
Exposure cube: /scratch/kocevski/828772/ltcube_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/828772/Model_4FGL_J2323.8+4210_daily_bin1429.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) = 4085.67411354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5508.8       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10956E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.056       1.0000         .10000E-03   10000.    
    10 'norm      '    9.8931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1449       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.388       1.0000         .10000E-03   10000.    
    16 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    33.739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.404       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.091       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11633E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.561       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77265       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=   4085.596     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3142 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.717       -.14648E-07** at limit **
   2  Prefactor     .10000E-03    49.944       -.41832E-06** at limit **
   3  norm          .10000E-03    128.38        .16919E-05** at limit **
   4  Prefactor     .10000E-03    19.390        .95436E-07** at limit **
   5  norm          .10000E-03    32.763        .14736E-05** at limit **
   6  Prefactor     .10000E-03    26.601        .12128E-06** at limit **
   7  Prefactor     5509.6        2237.4        .99827E-06    .68705E-06
   8  Prefactor     .10000E-03    203.29       -.73568E-06** at limit **
   9  Prefactor     25.056        12.752       -.12460E-05    .14054E-04
  10  norm          9.8950        8.0750        .22134E-05   -.39749E-05
  11  Prefactor     14.099        22.195       -.27216E-06   -.34376E-05
  12  Prefactor     .10000E-03    6.2228       -.21972E-06** at limit **
  13  Prefactor     14.855        30.875       -.82901E-07   -.38151E-05
  14  norm          1.1446        2.0949        .24584E-06    .20500E-04
  15  Prefactor     12.388        16.815       -.37688E-08   -.42594E-05
  16  norm          .10000E-03    3.7183       -.21989E-08** at limit **
  17  norm          33.742        23.248        .32096E-07   -.23813E-05
  18  Prefactor     30.405        33.611       -.95329E-07   -.41807E-05
  19  norm          .10000E-03    1.1656       -.58609E-08** at limit **
  20  Prefactor     .10000E-03    13.462        .12871E-07** at limit **
  21  norm          7.7321        198.63        .35808E-06    .77485E-05
  22  Prefactor     18.841        414.30       -.47226E-05   -.72800E-05
  23  Prefactor     .10000E-03    124.22        .34719E-06** at limit **
  24  Prefactor     21.545        23.350        .97476E-06   -.55893E-05
  25  Normalizat    1.2371        .38954        .72310E-06   -.27815E-04
  26  Prefactor     .77254        .11315       -.63853E-06    .23911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5509.63
  Prefactor  = 0.0001
  Prefactor  = 25.056
  norm       = 9.89502
  Prefactor  = 14.0988
  Prefactor  = 0.0001
  Prefactor  = 14.8552
  norm       = 1.14457
  Prefactor  = 12.3879
  norm       = 0.0001
  norm       = 33.742
  Prefactor  = 30.4054
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.73209
  Prefactor  = 18.8406
  Prefactor  = 0.0001
  Prefactor  = 21.5449
  Normalizat = 1.23706
  Prefactor  = 0.772544
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.596     FROM HESSE     STATUS=OK           452 CALLS     3594 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    130.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    32.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5509.6        2248.2        .40209E-04    .10210    
   8  Prefactor     .10000E-03    203.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.056        12.748        .80027E-04   -1.4706    
  10  norm          9.8950        8.0815        .63700E-03   -1.5079    
  11  Prefactor     14.099        22.194        .10668E-03   -1.4957    
  12  Prefactor     .10000E-03    6.2983        .15581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.855        30.837        .10390E-03   -1.4937    
  14  norm          1.1446        2.0496        .11734E-03   -1.5494    
  15  Prefactor     12.388        16.889        .11381E-03   -1.5004    
  16  norm          .10000E-03    3.7220        .12029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          33.742        23.249        .68989E-04   -1.4546    
  18  Prefactor     30.405        33.933        .72663E-04   -1.4605    
  19  norm          .10000E-03    1.1661        .67391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.7321        197.11        .14526E-03   -1.5152    
  22  Prefactor     18.841        422.77        .91665E-04   -1.4840    
  23  Prefactor     .10000E-03    124.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.545        23.326        .86260E-04   -1.4779    
  25  Normalizat    1.2371        .44981        .41651E-03   -.85465    
  26  Prefactor     .77254        .13076        .15953E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27251e-11
Minuit parameter uncertainties:
  1  1.06265e-07
  2  5.62831e-05
  3  5.33821e-05
  4  1.35248e-05
  5  4.47122e-05
  6  2.07501e-05
  7  2332.74
  8  0.000515337
  9  12.7494
  10  8.08244
  11  22.2067
  12  2.60224e-05
  13  30.8698
  14  2.04968
  15  16.8953
  16  1.62654e-07
  17  23.2555
  18  33.955
  19  2.42938e-08
  20  8.48978e-07
  21  78.368
  22  179.954
  23  0.000101565
  24  23.3356
  25  0.451236
  26  0.130809
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  3.374e+01  2.326e+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:  7.725e-01  1.308e-01  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:  1.237e+00  4.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.92
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 7.89e-05 +/- 5.44e-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) = 4085.4584466
delta logL = 0.137412388817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4085.45619957
delta logL = 0.139659419564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.517       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0578       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77406       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=   4085.456     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.545        508.01        .19093E-02   -.60706E-05
   2  alpha         2.0582        3.3581        .23710        .32816E-04
   3  Normalizat    1.2210        .25378        .94517E-01    .56652E-05
   4  Prefactor     .77419        .56626E-01    .43379E-01   -.85419E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 27.5451
  alpha      = 2.05817
  Normalizat = 1.22097
  Prefactor  = 0.774188
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.456     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.545        24.370        .76371E-04   -1.4658    
   2  alpha         2.0582        .55398        .90787E-02   -.17766    
   3  Normalizat    1.2210        .40140        .41869E-03   -.85957    
   4  Prefactor     .77419        .12527        .15934E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00215e-09
Minuit parameter uncertainties:
  1  24.3784
  2  0.558774
  3  0.402421
  4  0.125319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828772': 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) = 4085.45619634
delta logL = 0.139662648037

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  2.755e+01  2.438e+01  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.058e+00  5.588e-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:  7.742e-01  1.253e-01  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:  1.221e+00  4.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 350.975 42.183
Photon Index (Free Index): 2.06 +/- 0.56
Photon Flux (Free Index): 8.50e-08 +/- 6.91e-08
Energy Flux (Free Index): 5.55e-05 +/- 5.11e-05

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/828772/cmap_HighResolution_609724801_609984001_4FGL_J2323.8+4210_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='5.55e-05', photon_flux_error='4.42e-08', dlogl='1.40e-01', energy_flux='7.89e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-29 15:47:07.138430', photon_index_error2='0.56', photon_index2='2.06', ts='5.92', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='5.11e-05', EG='1.24', time_epoch_completed='1632955627.14', return_code='0', job_id='828772', GAL2='0.77', EG2='1.22', return_code2='0', energy_flux_error='5.44e-05', photon_flux_error2='6.91e-08', ts2='6.18', photon_index='1.78' WHERE bin_id='1429' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 828772: <4FGL_J2323.8+4210_daily_bin1429> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1429> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:13 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:35:14 2021
Terminated at Wed Sep 29 15:47:07 2021
Results reported at Wed Sep 29 15:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1429 350.975 42.1826 609724801 609984001 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 :                                   552.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

