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


Performing analysis on: 4FGL_J2323.8+4210_monthly_bin118
RA = 350.975, Dec = 42.1826
tmin = 542851201, tmax = 545443201
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='715363', job_status='RUN', time_executed='2021-11-08 12:11:29.912795', time_epoch_executed='1636402289.91' WHERE source_name='4FGL J2323.8+4210' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/715363

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=542851201.0 && nMetStart<545443201.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<545443201.0' /Data/Flight/Level1/LPA

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/715363/ft1_4FGL_J2323.8+4210_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/715363/ft1_4FGL_J2323.8+4210_monthly_bin118.fits outfile=/scratch/kocevski/715363/ft1_filteredMKT_4FGL_J2323.8+4210_monthly_bin118.fits ra=350.975 dec=42.1826 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.34
user 17.81
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/715363/ft1_filtered_4FGL_J2323.8+4210_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/715363/ltcube_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.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/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits
.....................!
real 45.48
user 44.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/715363/ft1_filtered_4FGL_J2323.8+4210_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/715363/ltcube_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.fits outfile=/scratch/kocevski/715363/expmap_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.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/715363/ltcube_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.fits
.....................!
real 192.43
user 186.63
sys 5.13

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/715363/ft1_filtered_4FGL_J2323.8+4210_monthly_bin118.fits scfile=/scratch/kocevski/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits outfile=/scratch/kocevski/715363/cmap_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.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.61
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/715363/ft1_filtered_4FGL_J2323.8+4210_monthly_bin118.fits scfile=/scratch/kocevski/715363/ft2_4FGL_J2323.8+4210_monthly_bin118.fits outfile=/scratch/kocevski/715363/cmap_HighResolution_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.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.61
user 0.45
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.694       1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.474       1.0000         .10000E-03   10000.    
    10 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    78.776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95417E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52784E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.432       1.0000         .10000E-03   10000.    
    15 'Prefactor '    74.516       1.0000         .10000E-03   10000.    
    16 'norm      '    76.764       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12740E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    236.65       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95509       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=   720.9753     FROM MIGRAD    STATUS=CONVERGED   1057 CALLS     3514 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.924        .18142E-02** at limit **
   2  Prefactor     27.687        63.557        .76127E-04   -.54135E-06
   3  norm          .10000E-03    37.236        .16014E-02** at limit **
   4  Prefactor     .10000E-03    14.922        .10132E-02** at limit **
   5  norm          11.508        10.974        .84626E-04    .33585E-06
   6  Prefactor     .10000E-03    9.8076        .82056E-03** at limit **
   7  Prefactor     .10000E-03    300.05        .18142E-02** at limit **
   8  Prefactor     .10000E-03    331.28        .18142E-02** at limit **
   9  Prefactor     43.500        46.254        .60802E-04   -.10728E-04
  10  norm          .10000E-03    32.635        .14951E-02** at limit **
  11  Prefactor     78.915        107.65        .22624E-03    .58920E-05
  12  Prefactor     .10001E-03    1152.9        .44593E-02** at limit **
  13  Prefactor     .10000E-03    263.59        .21130E-02** at limit **
  14  norm          12.430        9.7221        .69852E-04    .39061E-05
  15  Prefactor     74.537        62.916        .23256E-03   -.18332E-05
  16  norm          76.753        44.740        .45831E-04    .53828E-05
  17  norm          .10000E-03    32.271        .14908E-02** at limit **
  18  Prefactor     .10000E-03    91.401        .18142E-02** at limit **
  19  norm          .10000E-03    8.8620        .78036E-03** at limit **
  20  Prefactor     .10000E-03    319.05        .18142E-02** at limit **
  21  norm          .10000E-03    29.197        .14179E-02** at limit **
  22  Prefactor     .10000E-03    81.701        .18142E-02** at limit **
  23  Prefactor     236.53        231.57        .13158E-03    .30717E-05
  24  Prefactor     .10000E-03    18.613        .11316E-02** at limit **
  25  Normalizat    .10000E-01    2.0353        .12756E-01** at limit **
  26  Prefactor     .95474        .16715        .13757E-03    .21878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.6867
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4996
  norm       = 0.0001
  Prefactor  = 78.9152
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 12.4297
  Prefactor  = 74.5371
  norm       = 76.7529
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 236.535
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.954742
 **********
 **   18 **HESSE 
 **********

 FCN=   720.9753     FROM HESSE     STATUS=OK           432 CALLS     3946 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.687        63.546        .30451E-05   -1.4655    
   3  norm          .10000E-03    37.237        .32029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.922        .20264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.508        10.974        .33851E-05   -1.5029    
   6  Prefactor     .10000E-03    9.8078        .16411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    300.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    331.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.500        45.942        .24321E-05   -1.4388    
  10  norm          .10000E-03    32.636        .29903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     78.915        107.63        .90494E-05   -1.3929    
  12  Prefactor     .10001E-03    1182.8        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    263.62        .42261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.430        9.7221        .27941E-05   -1.5003    
  15  Prefactor     74.537        62.912        .93025E-05   -1.3979    
  16  norm          76.753        44.740        .91663E-05   -1.3954    
  17  norm          .10000E-03    32.271        .29817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    91.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.8621        .15607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    319.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    29.197        .28358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    81.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     236.53        231.56        .26315E-04   -1.2620    
  24  Prefactor     .10000E-03    18.613        .22633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    2.0372        .25513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .95474        .16695        .55030E-05   -.94254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59909e-11
Minuit parameter uncertainties:
  1  2.34728e-07
  2  63.7022
  3  2.11745e-05
  4  4.12153e-07
  5  10.9764
  6  6.64179e-06
  7  0.00020096
  8  3.2246e-05
  9  45.9797
  10  5.34528e-05
  11  107.899
  12  0.00843775
  13  3.3174e-06
  14  9.72329
  15  62.9684
  16  44.7596
  17  1.53251e-05
  18  8.17014e-06
  19  4.55849e-07
  20  0.000202751
  21  1.05382e-05
  22  6.75771e-05
  23  232.47
  24  1.90968e-06
  25  1.17166e-06
  26  0.16704
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.000e-04  1.533e-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.547e-01  1.670e-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  1.172e-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: 3.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/715363/likelihoodResults_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.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) = 720.975447913
delta logL = -0.000149230222746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 720.939562123
delta logL = 0.0357365605241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14000E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94992       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=   720.9396     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      276 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13997E-01    9.9559        .28757E-02    .73263E-03
   2  alpha         5.0000        3.0715        .46392    ** at limit **
   3  Normalizat    .10000E-01    .38659        .32094    ** at limit **
   4  Prefactor     .94996        .11963        .31144E-01   -.12250E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0139966
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.94996
 **********
 **   18 **HESSE 
 **********

 FCN=   720.9396     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13997E-01    .58661E-01    .13152E-03   -1.5684    
   2  alpha         5.0000        4.7202        .63635E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    1.5480        .12273E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94996        .15501        .13765E-03   -.94417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77258e-11
Minuit parameter uncertainties:
  1  0.0571028
  2  4.03095e-05
  3  2.63191e-06
  4  0.155078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/715363': 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) = 720.939562051
delta logL = 0.0357366317832

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  1.400e-02  5.710e-02  1.000e-04  1.000e+04 ( 1.000e-13)
459        alpha:  5.000e+00  4.031e-05  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.500e-01  1.551e-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  2.632e-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/715363/cmap_HighResolution_542851201_545443201_4FGL_J2323.8+4210_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-04', job_status='DONE', photon_flux_upper_limit='3.32e-07', time_completed='2021-11-08 12:20:36.722972', job_id='715363', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1636402836.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.57e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='118' AND source_name='4FGL J2323.8+4210' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 12:20:36 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 715363: <4FGL_J2323.8+4210_monthly_bin118> in cluster <slac> Done

Job <4FGL_J2323.8+4210_monthly_bin118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Nov  8 12:10:13 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 12:10:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  8 12:10:15 2021
Terminated at Mon Nov  8 12:20:37 2021
Results reported at Mon Nov  8 12:20:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_monthly_bin118 350.975 42.1826 542851201 545443201 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 :                                   504.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             251.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            624 sec.

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

