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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1359
RA = 350.975, Dec = 42.1826
tmin = 591580801, tmax = 591840001
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='827584', job_status='RUN', time_executed='2021-09-29 15:30:47.422074', time_epoch_executed='1632954647.42' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/827584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/827584/ft1_4FGL_J2323.8+4210_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/827584/ft2_4FGL_J2323.8+4210_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/827584/ft1_4FGL_J2323.8+4210_daily_bin1359.fits outfile=/scratch/kocevski/827584/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1359.fits ra=350.975 dec=42.1826 rad=12.0 tmin=591580801.0 tmax=591840001.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.85
user 3.59
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/827584/ft1_filtered_4FGL_J2323.8+4210_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/827584/ft2_4FGL_J2323.8+4210_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/827584/ltcube_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.fits outfile=/scratch/kocevski/827584/expmap_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.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/827584/ltcube_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.fits
.....................!
real 193.21
user 187.61
sys 5.21

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/827584/ft1_filtered_4FGL_J2323.8+4210_daily_bin1359.fits scfile=/scratch/kocevski/827584/ft2_4FGL_J2323.8+4210_daily_bin1359.fits outfile=/scratch/kocevski/827584/cmap_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/827584/ft1_filtered_4FGL_J2323.8+4210_daily_bin1359.fits scfile=/scratch/kocevski/827584/ft2_4FGL_J2323.8+4210_daily_bin1359.fits outfile=/scratch/kocevski/827584/cmap_HighResolution_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.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/827584/ft1_filtered_4FGL_J2323.8+4210_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/827584/ft2_4FGL_J2323.8+4210_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/827584/Model_4FGL_J2323.8+4210_daily_bin1359.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/827584/ft1_filtered_4FGL_J2323.8+4210_daily_bin1359.fits.....................!
real 54.23
user 52.87
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8161       1.0000         .10000E-03   10000.    
     5 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.619       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.998       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8097       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .18993E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5852       1.0000         .10000E-03   10000.    
    17 'norm      '    19.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.518       1.0000         .10000E-03   10000.    
    19 'norm      '    .10053E-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 '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71752       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98418       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=   3869.837     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3132 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.417        .57131E-05** at limit **
   2  Prefactor     .10000E-03    11.189        .68604E-06** at limit **
   3  norm          .10000E-03    97.951       -.13568E-04** at limit **
   4  Prefactor     7.8120        12.345       -.11609E-05    .64726E-04
   5  norm          .10000E-03    2.1461       -.14830E-06** at limit **
   6  Prefactor     .10000E-03    1.5281       -.15196E-07** at limit **
   7  Prefactor     .10000E-03    27.305       -.13751E-04** at limit **
   8  Prefactor     26.624        80.160        .91257E-05    .68061E-05
   9  Prefactor     21.997        13.764        .44889E-06    .30725E-04
  10  norm          4.4403        6.8051       -.88245E-07   -.71879E-04
  11  Prefactor     8.8860        55.973       -.96478E-04   -.24399E-04
  12  Prefactor     7.8173        14.304        .10774E-04    .14181E-03
  13  Prefactor     .10000E-03    34.372        .18990E-06** at limit **
  14  norm          .10006E-03    1.1931        .24988E-06** at limit **
  15  Prefactor     .10000E-03    15.851       -.35590E-05** at limit **
  16  norm          7.5860        9.7281       -.51357E-06   -.98808E-04
  17  norm          19.460        23.662       -.78592E-06   -.53886E-06
  18  Prefactor     41.519        32.153       -.85966E-07   -.23139E-04
  19  norm          .10000E-03    4.0009       -.50590E-07** at limit **
  20  Prefactor     .10000E-03    8.9255       -.21618E-06** at limit **
  21  norm          .10000E-03    5.9334       -.31116E-08** at limit **
  22  Prefactor     .10000E-03    93.501        .18953E-04** at limit **
  23  Prefactor     .10000E-03    35.556        .53900E-05** at limit **
  24  Prefactor     .10000E-03    5.3582       -.31473E-07** at limit **
  25  Normalizat    .71768        .34345        .70037E-05    .47693E-04
  26  Prefactor     .98415        .12022       -.22278E-07    .16178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.81199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6241
  Prefactor  = 21.9972
  norm       = 4.44027
  Prefactor  = 8.88604
  Prefactor  = 7.81729
  Prefactor  = 0.0001
  norm       = 0.000100064
  Prefactor  = 0.0001
  norm       = 7.58604
  norm       = 19.4595
  Prefactor  = 41.5193
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.717681
  Prefactor  = 0.984154
 **********
 **   18 **HESSE 
 **********

 FCN=   3869.837     FROM HESSE     STATUS=OK           454 CALLS     3586 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    99.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8120        12.313        .14343E-03   -1.5149    
   5  norm          .10000E-03    3.8894        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5302        .75099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.624        80.181        .77646E-04   -1.4676    
   9  Prefactor     21.997        13.771        .85401E-04   -1.4770    
  10  norm          4.4403        6.7875        .17171E-03   -1.5286    
  11  Prefactor     8.8860        56.130        .13408E-03   -1.5112    
  12  Prefactor     7.8173        14.240        .14349E-03   -1.5149    
  13  Prefactor     .10000E-03    34.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10006E-03    21.300        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5860        9.6940        .14561E-03   -1.5157    
  17  norm          19.460        23.652        .90797E-04   -1.4825    
  18  Prefactor     41.519        32.131        .62212E-04   -1.4418    
  19  norm          .10000E-03    4.0624        .12142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.9352        .14800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    93.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3638        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71768        .36663        .45136E-03   -1.0320    
  26  Prefactor     .98415        .13098        .14232E-03   -.93260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05716e-09
Minuit parameter uncertainties:
  1  2.32649e-05
  2  1.61753e-05
  3  4.8034e-05
  4  12.3175
  5  3.53365e-05
  6  2.48667e-06
  7  3.81949e-05
  8  80.508
  9  13.7726
  10  6.78869
  11  44.7279
  12  14.2458
  13  0.000134541
  14  0.00233925
  15  1.04667e-05
  16  9.69605
  17  23.6632
  18  32.1449
  19  1.56432e-05
  20  3.37896e-06
  21  3.42301e-06
  22  0.000210113
  23  9.48122e-06
  24  3.65192e-06
  25  0.367895
  26  0.131027
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  9.842e-01  1.310e-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:  7.177e-01  3.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/827584/likelihoodResults_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.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): 0
logL (Free Index) = 3869.14538
delta logL = 0.691229907662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3869.10866837
delta logL = 0.727941535745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7201       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8695       1.0000          .0000       5.0000    
     3 'Normalizat'    .62051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       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=   3869.109     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      280 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7172        74.403        .11631E-03   -.21719E-02
   2  alpha         2.8696        3.8054        .71814E-02   -.37827E-03
   3  Normalizat    .62054        .42320        .48249E-03   -.29007E-03
   4  Prefactor     1.0005        .14674        .14115E-03   -.14300E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.71722
  alpha      = 2.86961
  Normalizat = 0.620538
  Prefactor  = 1.0005
 **********
 **   18 **HESSE 
 **********

 FCN=   3869.109     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7172        15.539        .46522E-05   -1.5190    
   2  alpha         2.8696        1.0465        .28726E-03    .14839    
   3  Normalizat    .62054        .36548        .19300E-04   -1.0712    
   4  Prefactor     1.0005        .13158        .28229E-04   -.92713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86274e-09
Minuit parameter uncertainties:
  1  15.5488
  2  1.08059
  3  0.366911
  4  0.131623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/827584': 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) = 3869.10866832
delta logL = 0.727941585354

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  6.717e+00  1.555e+01  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  2.870e+00  1.081e+00  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.001e+00  1.316e-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.205e-01  3.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 350.975 42.183
Photon Index (Free Index): 2.87 +/- 1.08
Photon Flux (Free Index): 1.19e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.88e-05 +/- 2.45e-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/827584/cmap_HighResolution_591580801_591840001_4FGL_J2323.8+4210_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-04', comment='SUCCESS', energy_flux2='2.88e-05', dlogl='7.28e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 15:40:46.871270', photon_index_error2='1.08', photon_index2='2.87', ts='1.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.45e-05', EG='0.72', time_epoch_completed='1632955246.87', return_code='0', job_id='827584', GAL2='1.00', EG2='0.62', return_code2='0', photon_flux_error2='1.01e-07', ts2='2.51', photon_index='1.78' WHERE bin_id='1359' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:40:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 827584: <4FGL_J2323.8+4210_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1359 350.975 42.1826 591580801 591840001 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 :                                   588.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            610 sec.

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

