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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1171
RA = 350.975, Dec = 42.1826
tmin = 542851201, tmax = 543110401
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='826696', job_status='RUN', time_executed='2021-09-29 15:28:09.407360', time_epoch_executed='1632954489.41' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826696

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826696/ft1_4FGL_J2323.8+4210_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826696/ft2_4FGL_J2323.8+4210_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826696/ft1_4FGL_J2323.8+4210_daily_bin1171.fits outfile=/scratch/kocevski/826696/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1171.fits ra=350.975 dec=42.1826 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.78
user 0.60
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826696/ft1_filtered_4FGL_J2323.8+4210_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/826696/ft2_4FGL_J2323.8+4210_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/826696/ltcube_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.fits outfile=/scratch/kocevski/826696/expmap_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.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/826696/ltcube_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.fits
.....................!
real 190.82
user 186.57
sys 3.94

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/826696/ft1_filtered_4FGL_J2323.8+4210_daily_bin1171.fits scfile=/scratch/kocevski/826696/ft2_4FGL_J2323.8+4210_daily_bin1171.fits outfile=/scratch/kocevski/826696/cmap_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826696/ft1_filtered_4FGL_J2323.8+4210_daily_bin1171.fits scfile=/scratch/kocevski/826696/ft2_4FGL_J2323.8+4210_daily_bin1171.fits outfile=/scratch/kocevski/826696/cmap_HighResolution_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.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.53
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.696       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.441       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    79.443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22581E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.508       1.0000         .10000E-03   10000.    
    16 'norm      '    93.267       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    221.90       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .12474       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97933       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=   717.5890     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     3963 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.200        .18142E-02** at limit **
   2  Prefactor     24.682        62.373        .80607E-04    .51126E-05
   3  norm          .10000E-03    35.595        .15621E-02** at limit **
   4  Prefactor     .10000E-03    14.328        .99057E-03** at limit **
   5  norm          11.203        10.853        .84620E-04    .15954E-05
   6  Prefactor     .10000E-03    9.1490        .79084E-03** at limit **
   7  Prefactor     .10000E-03    184.97        .18142E-02** at limit **
   8  Prefactor     .10001E-03    424.24        .18142E-02** at limit **
   9  Prefactor     38.442        45.626        .64645E-04   -.22027E-04
  10  norm          .10000E-03    33.781        .15171E-02** at limit **
  11  Prefactor     79.429        109.62        .22529E-03    .39739E-05
  12  Prefactor     .10000E-03    960.09        .40561E-02** at limit **
  13  Prefactor     .10000E-03    246.39        .18142E-02** at limit **
  14  norm          13.044        10.579        .72846E-04    .57042E-04
  15  Prefactor     68.487        63.587        .48495E-04    .38710E-04
  16  norm          93.262        53.360        .41614E-04    .27941E-04
  17  norm          .10000E-03    31.499        .14694E-02** at limit **
  18  Prefactor     .10000E-03    103.99        .18142E-02** at limit **
  19  norm          .10000E-03    8.5919        .76658E-03** at limit **
  20  Prefactor     .10000E-03    202.51        .18142E-02** at limit **
  21  norm          .10000E-03    28.365        .13943E-02** at limit **
  22  Prefactor     .10000E-03    80.544        .18142E-02** at limit **
  23  Prefactor     221.83        228.03        .13578E-03    .13206E-04
  24  Prefactor     .10000E-03    17.817        .11047E-02** at limit **
  25  Normalizat    .12602        2.1091        .10361E-01    .92655E-05
  26  Prefactor     .97907        .34332        .14231E-03    .59464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.6816
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 38.4418
  norm       = 0.0001
  Prefactor  = 79.4288
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.0439
  Prefactor  = 68.4874
  norm       = 93.2621
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 221.835
  Prefactor  = 0.0001
  Normalizat = 0.126023
  Prefactor  = 0.97907
 **********
 **   18 **HESSE 
 **********

 FCN=   717.5890     FROM HESSE     STATUS=OK           432 CALLS     4395 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.682        62.362        .32243E-05   -1.4714    
   3  norm          .10000E-03    35.595        .31242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.328        .19811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.203        10.853        .33848E-05   -1.5038    
   6  Prefactor     .10000E-03    9.1491        .15817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    185.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    424.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.442        45.333        .25858E-05   -1.4467    
  10  norm          .10000E-03    33.782        .30343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     79.429        109.59        .90116E-05   -1.3923    
  12  Prefactor     .10000E-03    981.18        .16224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    246.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.044        10.555        .14569E-04   -1.4985    
  15  Prefactor     68.487        63.232        .96989E-05   -1.4051    
  16  norm          93.262        53.335        .83228E-05   -1.3774    
  17  norm          .10000E-03    31.499        .29389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    103.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.5920        .15332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    202.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    28.365        .27886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    80.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     221.83        227.30        .27155E-04   -1.2718    
  24  Prefactor     .10000E-03    17.817        .22093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .12602        1.8606        .41444E-03   -1.3548    
  26  Prefactor     .97907        .32261        .28463E-04   -.93430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9734e-11
Minuit parameter uncertainties:
  1  6.9019e-05
  2  62.5275
  3  9.77876e-06
  4  1.77468e-05
  5  10.8544
  6  1.12271e-05
  7  0.000433684
  8  0.0038191
  9  45.3733
  10  6.02035e-05
  11  109.872
  12  0.00201015
  13  0.000155991
  14  10.5563
  15  63.2943
  16  53.3626
  17  6.13822e-05
  18  2.71527e-05
  19  2.17242e-05
  20  0.000237586
  21  2.48033e-05
  22  0.000264994
  23  228.217
  24  4.93227e-05
  25  0.967327
  26  0.323242
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  6.138e-05  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.791e-01  3.232e-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.260e-01  9.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 3.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826696/likelihoodResults_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 717.589158266
delta logL = -0.000149277736114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 717.558130304
delta logL = 0.0308786839502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13193E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .68001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99180       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=   717.5581     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      326 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13195E-01    .64314E-01    .13168E-03   -.19211E-03
   2  alpha         5.0000        4.7340        .64938E-02** at limit **
   3  Normalizat    .67490E-01    6.6100        .11711E-01   -.18477E-04
   4  Prefactor     .99175        .35401        .14140E-03    .28826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0131947
  alpha      = 5
  Normalizat = 0.0674904
  Prefactor  = 0.991749
 **********
 **   18 **HESSE 
 **********

 FCN=   717.5581     FROM HESSE     STATUS=OK            27 CALLS      353 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13195E-01    .62960E-01    .52670E-05   -1.5685    
   2  alpha         5.0000        4.7340        .12988E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .67490E-01    6.2762        .46842E-03   -1.4189    
   4  Prefactor     .99175        .31687        .28279E-04   -.93005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4307e-10
Minuit parameter uncertainties:
  1  0.0574261
  2  7.73675e-06
  3  0.9273
  4  0.317464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826696': 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) = 717.558129321
delta logL = 0.0308796669025

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.319e-02  5.743e-02  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  5.000e+00  7.737e-06  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.917e-01  3.175e-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:  6.749e-02  9.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.975 42.183

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/826696/cmap_HighResolution_542851201_543110401_4FGL_J2323.8+4210_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-04', job_status='DONE', photon_flux_upper_limit='3.27e-07', time_completed='2021-09-29 15:33:57.880292', job_id='826696', GAL2='0.99', fit_tolerance='1e-08', EG2='0.07', EG='0.13', time_epoch_completed='1632954837.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.09e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1171' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 826696: <4FGL_J2323.8+4210_daily_bin1171> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1171 350.975 42.1826 542851201 543110401 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 :                                   349.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            500 sec.

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

