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


Performing analysis on: 4FGL_J2323.8+4210_daily_bin1240
RA = 350.975, Dec = 42.1826
tmin = 560736001, tmax = 560995201
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='827399', job_status='RUN', time_executed='2021-09-29 15:33:06.968760', time_epoch_executed='1632954786.97' WHERE source_name='4FGL J2323.8+4210' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/827399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/827399/ft1_4FGL_J2323.8+4210_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/827399/ft1_4FGL_J2323.8+4210_daily_bin1240.fits outfile=/scratch/kocevski/827399/ft1_filteredMKT_4FGL_J2323.8+4210_daily_bin1240.fits ra=350.975 dec=42.1826 rad=12.0 tmin=560736001.0 tmax=560995201.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.76
user 3.54
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/827399/ft1_filtered_4FGL_J2323.8+4210_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/827399/ltcube_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.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/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/827399/ft1_filtered_4FGL_J2323.8+4210_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/827399/ltcube_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits outfile=/scratch/kocevski/827399/expmap_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.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/827399/ltcube_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits
.....................!
real 190.90
user 185.41
sys 5.12

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/827399/ft1_filtered_4FGL_J2323.8+4210_daily_bin1240.fits scfile=/scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits outfile=/scratch/kocevski/827399/cmap_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.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.36
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/827399/ft1_filtered_4FGL_J2323.8+4210_daily_bin1240.fits', '/scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits', expMap='/scratch/kocevski/827399/expmap_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits', expCube='/scratch/kocevski/827399/ltcube_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/827399/Model_4FGL_J2323.8+4210_daily_bin1240.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/827399/ft1_filtered_4FGL_J2323.8+4210_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/827399/ft2_4FGL_J2323.8+4210_daily_bin1240.fits
Exposure map: /scratch/kocevski/827399/expmap_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits
Exposure cube: /scratch/kocevski/827399/ltcube_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/827399/Model_4FGL_J2323.8+4210_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 296.588805687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 293.564776952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9206       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8392       1.0000         .10000E-03   10000.    
     3 'norm      '    138.58       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36921       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51922E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4118       1.0000         .10000E-03   10000.    
    10 'norm      '    8.0602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0929       1.0000         .10000E-03   10000.    
    13 'Prefactor '    578.98       1.0000         .10000E-03   10000.    
    14 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73722E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .71523E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .75019E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    132.35       1.0000         .10000E-03   10000.    
    19 'norm      '    .70419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    129.43       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2729       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2871       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5933       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .98004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91986       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   293.5564     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      404 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9206        1.0387         .0000         .0000    
   2  Prefactor     .20050E-01    .72730E-01    .11846E-04   -.11717E-02
   3  norm          138.64        1.0002        .46354E-06   -.11350E-01
   4  Prefactor     .10004E-03    .28754        .15336E-04** at limit **
   5  norm          1.5413        1.0657         .0000         .0000    
   6  Prefactor     .10000E-03    .22920       -.65833E-06** at limit **
   7  Prefactor     .70636E-02    .26832       -.18636E-05    .16914E-02
   8  Prefactor     .36727E-02    .40128        .52947E-05   -.91809E-03
   9  Prefactor     1.4118        1.0828         .0000         .0000    
  10  norm          8.0602        1.0019         .0000         .0000    
  11  Prefactor     .14328E-03    .23652        .23214E-05** at limit **
  12  Prefactor     2.0929        1.0318         .0000         .0000    
  13  Prefactor     577.90        .99913        .17355E-06    .12595E-01
  14  norm          .10000E-03    .20571        .33747E-06** at limit **
  15  Prefactor     .10000E-03    .22020        .30040E-06** at limit **
  16  norm          .10000E-03    .21971       -.37445E-06** at limit **
  17  norm          .10001E-03    .22050        .56020E-05** at limit **
  18  Prefactor     132.00        .99870       -.24055E-06    .50409E-02
  19  norm          .10001E-03    .36468       -.76933E-05** at limit **
  20  Prefactor     127.49        .99259       -.10478E-05   -.49877E-02
  21  norm          7.2729        1.0024         .0000         .0000    
  22  Prefactor     2.6688        .71379        .49749E-05    .37797E-02
  23  Prefactor     .10224E-03    .10031        .10675E-04** at limit **
  24  Prefactor     .10000E-03    .26976       -.21106E-06** at limit **
  25  Normalizat    .10000E-01    .25756       -.58961E-05** at limit **
  26  Prefactor     .92407        1.2664        .35231E-05    .62158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92063
  Prefactor  = 0.0200495
  norm       = 138.641
  Prefactor  = 0.000100039
  norm       = 1.54125
  Prefactor  = 0.0001
  Prefactor  = 0.00706361
  Prefactor  = 0.00367269
  Prefactor  = 1.41184
  norm       = 8.0602
  Prefactor  = 0.000143279
  Prefactor  = 2.09286
  Prefactor  = 577.902
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100011
  Prefactor  = 131.999
  norm       = 0.000100008
  Prefactor  = 127.489
  norm       = 7.27294
  Prefactor  = 2.6688
  Prefactor  = 0.000102244
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.924066
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   293.5564     FROM HESSE     STATUS=FAILED         9 CALLS      413 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     570.31        568.25         .0000       -1.5431    
   2  Prefactor     .20050E-01    .72730E-01    .11846E-04   -1.5736    
   3  norm          138.64        1.0002        .46354E-06   -1.3348    
   4  Prefactor     .10004E-03    .28754        .15336E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5413        1.0657         .0000       -1.5460    
   6  Prefactor     .10000E-03    .22920       -.65833E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .70636E-02    .26832       -.18636E-05   -1.5691    
   8  Prefactor     .36727E-02    .40128        .52947E-05   -1.5720    
   9  Prefactor     1.4118        1.0828         .0000       -1.5470    
  10  norm          8.0602        1.0019         .0000       -1.5140    
  11  Prefactor     .14328E-03    .23652        .23214E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0929        1.0318         .0000       -1.5419    
  13  Prefactor     577.90        .99913        .17355E-06   -1.0852    
  14  norm          .10000E-03    .20571        .33747E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .22020        .30040E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .21971       -.37445E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    .22050        .56020E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     132.00        .99870       -.24055E-06   -1.3405    
  19  norm          .10001E-03    .36468       -.76933E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     127.49        .99259       -.10478E-05   -1.3445    
  21  norm          7.2729        1.0024         .0000       -1.5169    
  22  Prefactor     2.6688        .71379        .49749E-05   -1.5381    
  23  Prefactor     .10224E-03    .10031        .10675E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .26976       -.21106E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25756       -.58961E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .92407        1.2664        .35231E-05   -.95305    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.13335e-10
Minuit parameter uncertainties:
  1  1.03869
  2  0.0727298
  3  1.00021
  4  0.000212731
  5  1.06572
  6  1.1206e-05
  7  0.0864526
  8  0.0757279
  9  1.08278
  10  1.00194
  11  0.00639879
  12  1.03184
  13  0.99913
  14  3.8743e-06
  15  8.95016e-07
  16  4.84395e-06
  17  9.9018e-05
  18  0.998702
  19  0.000105704
  20  0.992586
  21  1.00238
  22  0.713788
  23  0.000948833
  24  3.14812e-06
  25  2.44304e-06
  26  1.31066
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 293.556393676

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  9.902e-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.241e-01  1.311e+00  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.000e-02  2.443e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 4.70e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/827399/likelihoodResults_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.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) = 293.55640552
delta logL = -1.18437689594e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 293.556399701
delta logL = -6.02509561531e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10927E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6735       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92417       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=   293.5564     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      295 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9473.2        .18142E-01** at limit **
   2  alpha         1.2265        3.5796        .16511        .11060E-08
   3  Normalizat    .10000E-01    .48279E-01    .86845E-02** at limit **
   4  Prefactor     .92406        .84002E-01    .19533E-03   -.26307E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.22652
  Normalizat = 0.01
  Prefactor  = 0.924062
 **********
 **   18 **HESSE 
 **********

 FCN=   293.5564     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    533.64        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2265        3.0294        .66044E-02   -.53448    
   3  Normalizat    .10000E-01    .76122        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92406        .33691        .39067E-04   -.95305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41264e-11
Minuit parameter uncertainties:
  1  0.000339684
  2  2434.54
  3  5.61979e-06
  4  0.33767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/827399': 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) = 293.55639365
delta logL = 2.63041215476e-08

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  3.397e-04  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  1.227e+00  2.435e+03  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.241e-01  3.377e-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.000e-02  5.620e-06  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/827399/cmap_HighResolution_560736001_560995201_4FGL_J2323.8+4210_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='4.70e-06', time_completed='2021-09-29 15:38:31.418003', job_id='827399', GAL2='0.92', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632955111.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.92', dlogl='2.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1240' AND source_name='4FGL J2323.8+4210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 15:38:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 827399: <4FGL_J2323.8+4210_daily_bin1240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_daily_bin1240 350.975 42.1826 560736001 560995201 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 :                                   321.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             427.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   490 sec.
    Turnaround time :                            492 sec.

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

