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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1570
RA = 350.975, Dec = 42.1826
tmin = 646272001, tmax = 646531201
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='828976', job_status='RUN', time_executed='2021-09-29 15:35:45.149117', time_epoch_executed='1632954945.15' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828976/ft1_4FGL_J2323.8+4210_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828976/ft1_4FGL_J2323.8+4210_daily_bin1570.fits outfile=/scratch/kocevski/828976/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1570.fits ra=350.975 dec=42.1826 rad=12.0 tmin=646272001.0 tmax=646531201.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.10
user 3.88
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828976/ft1_filtered_4FGL_J2323.8+4210_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/828976/ltcube_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.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/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits
.....................!
real 11.93
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828976/ft1_filtered_4FGL_J2323.8+4210_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/828976/ltcube_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.fits outfile=/scratch/kocevski/828976/expmap_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.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/828976/ltcube_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.fits
.....................!
real 190.44
user 185.25
sys 4.83

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/828976/ft1_filtered_4FGL_J2323.8+4210_daily_bin1570.fits scfile=/scratch/kocevski/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits outfile=/scratch/kocevski/828976/cmap_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828976/ft1_filtered_4FGL_J2323.8+4210_daily_bin1570.fits scfile=/scratch/kocevski/828976/ft2_4FGL_J2323.8+4210_daily_bin1570.fits outfile=/scratch/kocevski/828976/cmap_HighResolution_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96986E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2692       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.086       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.150       1.0000         .10000E-03   10000.    
    16 'norm      '    .30808       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81466       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0200       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9833.261     FROM MIGRAD    STATUS=CONVERGED   1149 CALLS     3253 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.129        28.782        .68603E-04   -.98966E-04
   2  Prefactor     .74377E-01    18.065        .10776        .13252E-03
   3  norm          .10000E-03    4.0943        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.8285        .13076E-02** at limit **
   5  norm          .10000E-03    .83556        .87454E-03** at limit **
   6  Prefactor     .43821        6.0513        .23299E-02   -.24173E-03
   7  Prefactor     3.2699        29.543        .22397E-03   -.10416E-03
   8  Prefactor     .10000E-03    23.720        .18142E-02** at limit **
   9  Prefactor     .30623E-01    6.4957        .51538E-01    .36291E-03
  10  norm          .10000E-03    2.3752        .14761E-02** at limit **
  11  Prefactor     19.090        16.057        .91678E-04    .34424E-04
  12  Prefactor     .37566        17.267        .37493E-02    .25381E-03
  13  Prefactor     .10000E-03    9.2198        .18142E-02** at limit **
  14  norm          3.6063        1.6338        .80916E-04    .50215E-03
  15  Prefactor     11.174        11.772        .11998E-03   -.84523E-04
  16  norm          .30602        9.6097        .31932E-02    .83067E-03
  17  norm          6.3775        6.2380        .15894E-03    .16022E-04
  18  Prefactor     .10000E-03    5.4872        .18142E-02** at limit **
  19  norm          .10000E-03    3.9239        .21070E-02** at limit **
  20  Prefactor     .10000E-03    5.0299        .18142E-02** at limit **
  21  norm          .10000E-03    6.5657        .18142E-02** at limit **
  22  Prefactor     .10000E-03    57.200        .18142E-02** at limit **
  23  Prefactor     .10000E-03    15.024        .18142E-02** at limit **
  24  Prefactor     .10000E-03    2.3216        .14727E-02** at limit **
  25  Normalizat    .81436        .23341        .42967E-03   -.37201E-04
  26  Prefactor     1.0201        .82047E-01    .14380E-03    .46896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1287
  Prefactor  = 0.0743775
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.43821
  Prefactor  = 3.26987
  Prefactor  = 0.0001
  Prefactor  = 0.0306226
  norm       = 0.0001
  Prefactor  = 19.0896
  Prefactor  = 0.375664
  Prefactor  = 0.0001
  norm       = 3.60634
  Prefactor  = 11.1738
  norm       = 0.306019
  norm       = 6.37747
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.814358
  Prefactor  = 1.02009
 **********
 **   18 **HESSE 
 **********

 FCN=   9833.261     FROM HESSE     STATUS=OK           456 CALLS     3709 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.129        28.776        .13721E-04   -1.4539    
   2  Prefactor     .74377E-01    17.215        .11138       -1.5653    
   3  norm          .10000E-03    4.0944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8286        .26151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .83575        .17491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43821        5.8618        .93196E-04   -1.5576    
   7  Prefactor     3.2699        28.808        .89587E-05   -1.5346    
   8  Prefactor     .10000E-03    23.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30623E-01    4.8682        .61517E-01   -1.5673    
  10  norm          .10000E-03    2.3759        .29522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.090        16.050        .18336E-04   -1.4834    
  12  Prefactor     .37566        17.196        .14997E-03   -1.5585    
  13  Prefactor     .10000E-03    9.2200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6063        1.6323        .32366E-05   -1.5328    
  15  Prefactor     11.174        11.764        .47991E-05   -1.5039    
  16  norm          .30602        9.6726        .12773E-03   -1.5597    
  17  norm          6.3775        6.2379        .63578E-05   -1.5203    
  18  Prefactor     .10000E-03    5.4876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.9761        .42141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.5672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3218        .29454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81436        .23302        .17187E-04   -.99538    
  26  Prefactor     1.0201        .82025E-01    .28759E-04   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.797e-09
Minuit parameter uncertainties:
  1  28.7874
  2  2.26223
  3  1.02016e-05
  4  5.89676e-06
  5  2.19339e-07
  6  3.20545
  7  19.4235
  8  2.71352e-05
  9  0.77101
  10  5.99344e-07
  11  16.0536
  12  5.08422
  13  2.83952e-06
  14  1.63233
  15  11.7666
  16  3.44098
  17  6.23853
  18  1.11785e-05
  19  0.000112801
  20  4.29885e-06
  21  7.04524e-06
  22  6.40293e-05
  23  1.74994e-05
  24  1.03979e-05
  25  0.233305
  26  0.0820354
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  6.377e+00  6.239e+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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.020e+00  8.204e-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:  8.144e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.46e-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) = 9832.45874947
delta logL = 0.802037119771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9832.38184191
delta logL = 0.878944672146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7948       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82818       1.0000          .0000       5.0000    
     3 'Normalizat'    .81689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0211       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=   9832.382     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7908        3.8713        .51804E-02   -.38420E-03
   2  alpha         .82844        .50531        .50000       -.41108E-04
   3  Normalizat    .81681        .19420        .96841E-01    .43165E-04
   4  Prefactor     1.0211        .72417E-01    .42032E-01   -.10669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79079
  alpha      = 0.828437
  Normalizat = 0.816807
  Prefactor  = 1.02112
 **********
 **   18 **HESSE 
 **********

 FCN=   9832.382     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7908        5.2751        .18824E-03   -1.5319    
   2  alpha         .82844        .66251        .26053E-01   -.73236    
   3  Normalizat    .81681        .21644        .42910E-03   -.99448    
   4  Prefactor     1.0211        .80980E-01    .14373E-03   -.92029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9528e-12
Minuit parameter uncertainties:
  1  5.2757
  2  0.677407
  3  0.216668
  4  0.0809898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828976': 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) = 9832.38184064
delta logL = 0.878945941564

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  3.791e+00  5.276e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  8.284e-01  6.774e-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:  1.021e+00  8.099e-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:  8.168e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.49
Ra Dec: 350.975 42.183
Photon Index (Free Index): 0.83 +/- 0.68
Photon Flux (Free Index): 4.35e-09 +/- 4.71e-09
Energy Flux (Free Index): 6.42e-05 +/- 8.87e-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/828976/cmap_HighResolution_646272001_646531201_4FGL_J2323.8+4210_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='6.42e-05', photon_flux_error='1.18e-08', dlogl='8.79e-01', energy_flux='1.49e-05', photon_flux2='4.35e-09', job_status='DONE', time_completed='2021-09-29 15:50:30.121965', photon_index_error2='0.68', photon_index2='0.83', ts='7.73', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='8.87e-05', EG='0.81', time_epoch_completed='1632955830.12', return_code='0', job_id='828976', GAL2='1.02', EG2='0.82', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.71e-09', ts2='9.49', photon_index='1.78' WHERE bin_id='1570' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 828976: <4FGL_J2323.8+4210_daily_bin1570> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1570> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 15:35:29 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:35:30 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:30 2021
Terminated at Wed Sep 29 15:50:30 2021
Results reported at Wed Sep 29 15:50:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1570 350.975 42.1826 646272001 646531201 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 :                                   881.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

