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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1035
RA = 350.975, Dec = 42.1826
tmin = 507600001, tmax = 507859201
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='826489', job_status='RUN', time_executed='2021-09-29 15:25:28.839118', time_epoch_executed='1632954328.84' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826489/ft1_4FGL_J2323.8+4210_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826489/ft1_4FGL_J2323.8+4210_daily_bin1035.fits outfile=/scratch/kocevski/826489/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1035.fits ra=350.975 dec=42.1826 rad=12.0 tmin=507600001.0 tmax=507859201.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.60
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.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/826489/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/826489/ft1_filtered_4FGL_J2323.8+4210_daily_bin1035.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826489/ft1_filtered_4FGL_J2323.8+4210_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/826489/ltcube_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.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/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits
.....................!
real 11.95
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826489/ft1_filtered_4FGL_J2323.8+4210_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/826489/ltcube_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.fits outfile=/scratch/kocevski/826489/expmap_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.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/826489/ltcube_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.fits
.....................!
real 190.55
user 184.99
sys 5.15

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/826489/ft1_filtered_4FGL_J2323.8+4210_daily_bin1035.fits scfile=/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits outfile=/scratch/kocevski/826489/cmap_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826489/ft1_filtered_4FGL_J2323.8+4210_daily_bin1035.fits scfile=/scratch/kocevski/826489/ft2_4FGL_J2323.8+4210_daily_bin1035.fits outfile=/scratch/kocevski/826489/cmap_HighResolution_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26554E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5078       1.0000         .10000E-03   10000.    
    10 'norm      '    20.012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1958       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.4516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5788       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0169       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91536       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=   10569.72     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3074 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8488       -.88823E-06** at limit **
   2  Prefactor     .10000E-03    5.3797       -.28295E-07** at limit **
   3  norm          8.7417        14.428       -.13996E-06    .14483E-04
   4  Prefactor     .10000E-03    1.8892        .83744E-08** at limit **
   5  norm          2.7123        1.9432       -.28622E-07   -.12997E-03
   6  Prefactor     .10000E-03    1.5004       -.10830E-07** at limit **
   7  Prefactor     .10000E-03    12.406       -.20012E-05** at limit **
   8  Prefactor     .10000E-03    34.740       -.85368E-05** at limit **
   9  Prefactor     2.5075        5.1837       -.11023E-05   -.57846E-03
  10  norm          20.010        6.1336       -.60084E-07   -.21124E-03
  11  Prefactor     .10000E-03    23.979       -.18359E-05** at limit **
  12  Prefactor     .10000E-03    10.376        .22837E-05** at limit **
  13  Prefactor     .10000E-03    50.174        .17166E-04** at limit **
  14  norm          2.1954        1.4268       -.36202E-07   -.67696E-03
  15  Prefactor     .10000E-03    13.234        .16660E-05** at limit **
  16  norm          .10000E-03    4.1371        .12715E-06** at limit **
  17  norm          9.4511        7.8130        .94324E-08    .53377E-05
  18  Prefactor     14.393        19.667       -.11723E-05   -.33052E-04
  19  norm          3.5781        2.7351       -.12487E-06   -.55594E-03
  20  Prefactor     .10000E-03    4.8904        .91264E-06** at limit **
  21  norm          .10000E-03    22.141        .34123E-05** at limit **
  22  Prefactor     .10000E-03    11.510       -.18482E-05** at limit **
  23  Prefactor     .10000E-03    67.734       -.11596E-04** at limit **
  24  Prefactor     .10000E-03    8.3070       -.24412E-06** at limit **
  25  Normalizat    1.0173        .21208        .35654E-06   -.95257E-04
  26  Prefactor     .91527        .71344E-01    .69925E-08   -.17389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.74168
  Prefactor  = 0.0001
  norm       = 2.71233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.50746
  norm       = 20.0096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19535
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.45105
  Prefactor  = 14.3931
  norm       = 3.57808
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01727
  Prefactor  = 0.915272
 **********
 **   18 **HESSE 
 **********

 FCN=   10569.72     FROM HESSE     STATUS=OK           450 CALLS     3524 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7417        14.410        .13557E-03   -1.5117    
   4  Prefactor     .10000E-03    1.8927        .13796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7123        1.9448        .11799E-03   -1.5379    
   6  Prefactor     .10000E-03    3.6731        .24349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5075        5.2443        .25803E-03   -1.5391    
  10  norm          20.010        6.0863        .89534E-04   -1.4813    
  11  Prefactor     .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1954        1.4222        .94388E-04   -1.5412    
  15  Prefactor     .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.1803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4511        7.8126        .13035E-03   -1.5093    
  18  Prefactor     14.393        19.650        .10552E-03   -1.4949    
  19  norm          3.5781        2.7356        .14373E-03   -1.5330    
  20  Prefactor     .10000E-03    4.8897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    22.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    67.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.4835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0173        .23705        .40613E-03   -.92454    
  26  Prefactor     .91527        .80518E-01    .14921E-03   -.95609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47973e-10
Minuit parameter uncertainties:
  1  1.48429e-07
  2  4.11197e-07
  3  14.4161
  4  3.26898e-07
  5  1.94487
  6  2.96221e-07
  7  7.20765e-07
  8  2.11659e-06
  9  5.24528
  10  6.0865
  11  2.34802e-06
  12  6.48315e-06
  13  0.000150653
  14  1.42225
  15  1.22801e-05
  16  1.84787e-05
  17  7.81345
  18  19.6588
  19  2.73571
  20  1.31494e-07
  21  5.72823e-05
  22  4.11839e-07
  23  4.4693e-05
  24  1.34931e-05
  25  0.237297
  26  0.0805285
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  9.451e+00  7.813e+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:  9.153e-01  8.053e-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:  1.017e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 350.975 42.183
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.83e-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) = 10569.5622407
delta logL = 0.162458128159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10569.5620728
delta logL = 0.162626056032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4152       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91520       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=   10569.56     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4152        383.29        .32652E-02   -.61242E-03
   2  alpha         1.4248        3.6991        .47459       -.63991E-04
   3  Normalizat    1.0218        .32647        .91524E-01    .37301E-04
   4  Prefactor     .91521        .71801E-01    .33771E-01    .14880E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.41515
  alpha      = 1.42477
  Normalizat = 1.02179
  Prefactor  = 0.915206
 **********
 **   18 **HESSE 
 **********

 FCN=   10569.56     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4152        8.1758        .65304E-03   -1.5094    
   2  alpha         1.4248        .59070        .21281E-01   -.44460    
   3  Normalizat    1.0218        .22498        .40536E-03   -.92304    
   4  Prefactor     .91521        .79512E-01    .14922E-03   -.95612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59484e-10
Minuit parameter uncertainties:
  1  8.17673
  2  0.597662
  3  0.225187
  4  0.0795221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826489': 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) = 10569.5620728
delta logL = 0.1626260588

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  9.415e+00  8.177e+00  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.425e+00  5.977e-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.152e-01  7.952e-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:  1.022e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 350.975 42.183
Photon Index (Free Index): 1.42 +/- 0.60
Photon Flux (Free Index): 1.14e-08 +/- 1.29e-08
Energy Flux (Free Index): 3.71e-05 +/- 4.73e-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/826489/cmap_HighResolution_507600001_507859201_4FGL_J2323.8+4210_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='3.71e-05', photon_flux_error='1.48e-08', dlogl='1.63e-01', energy_flux='2.21e-05', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-29 15:40:43.466644', photon_index_error2='0.60', photon_index2='1.42', ts='5.69', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.73e-05', EG='1.02', time_epoch_completed='1632955243.47', return_code='0', job_id='826489', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.29e-08', ts2='6.01', photon_index='1.78' WHERE bin_id='1035' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 826489: <4FGL_J2323.8+4210_daily_bin1035> in cluster <slac> Done

Job <4FGL_J2323.8+4210_daily_bin1035> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:25:18 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:25:20 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:20 2021
Terminated at Wed Sep 29 15:40:44 2021
Results reported at Wed Sep 29 15:40:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1035 350.975 42.1826 507600001 507859201 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 :                                   910.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

