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


Performing analysis on: 4FGL_J2326.2+0113_daily_bin661
RA = 351.575, Dec = 1.2216
tmin = 410659201, tmax = 410918401
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='891684', job_status='RUN', time_executed='2021-09-29 18:53:53.406716', time_epoch_executed='1632966833.41' WHERE source_name='4FGL J2326.2+0113' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891684

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891684/ft1_4FGL_J2326.2+0113_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891684/ft1_4FGL_J2326.2+0113_daily_bin661.fits outfile=/scratch/kocevski/891684/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin661.fits ra=351.575 dec=1.2216 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.85
user 6.56
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.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/891684/ft1_filteredMKT_4FGL_J2326.2+0113_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/891684/ltcube_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.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/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits
.....................!
real 11.76
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/891684/ltcube_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits outfile=/scratch/kocevski/891684/expmap_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.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/891684/ltcube_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits
.....................!
real 189.45
user 184.50
sys 4.65

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
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.2+0113 @ 351.575 1.2216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits outfile=/scratch/kocevski/891684/cmap_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.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=351.575 yref=1.2216 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits outfile=/scratch/kocevski/891684/cmap_HighResolution_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.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=351.575 yref=1.2216 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/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891684/Model_4FGL_J2326.2+0113_daily_bin661.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits.....................!
real 44.78
user 43.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits', '/scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits', expMap='/scratch/kocevski/891684/expmap_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits', expCube='/scratch/kocevski/891684/ltcube_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891684/Model_4FGL_J2326.2+0113_daily_bin661.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.2+0113'

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.628e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/891684/ft1_filtered_4FGL_J2326.2+0113_daily_bin661.fits
Spacecraft file(s): /scratch/kocevski/891684/ft2_4FGL_J2326.2+0113_daily_bin661.fits
Exposure map: /scratch/kocevski/891684/expmap_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits
Exposure cube: /scratch/kocevski/891684/ltcube_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891684/Model_4FGL_J2326.2+0113_daily_bin661.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) = 3786.91285265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    48.918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.652       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11392E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7570       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2935       1.0000         .10000E-03   10000.    
     9 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4389       1.0000         .10000E-03   10000.    
    12 'norm      '    30.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    259.31       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.345       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56524E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    22.118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4474       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72993       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   3786.889     FROM MIGRAD    STATUS=CONVERGED    975 CALLS     3562 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.756        .18142E-02** at limit **
   2  norm          48.930        23.459        .57334E-04    .11005E-04
   3  Prefactor     61.635        56.357        .25551E-03    .39154E-05
   4  Prefactor     3.5875        24.593        .21342E-03    .38887E-05
   5  Prefactor     68.191        40.215        .48612E-04    .36249E-05
   6  Prefactor     .10000E-03    207.19        .18142E-02** at limit **
   7  Prefactor     9.7528        12.682        .12829E-03    .21578E-04
   8  norm          2.2918        1.6419        .62351E-04   -.39840E-04
   9  norm          .10000E-03    21.087        .32412E-02** at limit **
  10  Prefactor     .10000E-03    24.828        .18142E-02** at limit **
  11  Prefactor     1.4708        733.14        .35972E-03    .22123E-06
  12  norm          30.232        18.694        .72874E-04   -.94382E-05
  13  Prefactor     .10000E-03    21.979        .18142E-02** at limit **
  14  Prefactor     259.20        286.02        .12584E-03   -.28818E-05
  15  Prefactor     39.409        48.862        .63901E-04   -.38518E-04
  16  Prefactor     .10003E-03    53.608        .10773    ** at limit **
  17  norm          22.013        134.89        .85169E-04   -.98111E-05
  18  Prefactor     .10000E-03    24.752        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.5394        .11243E-02** at limit **
  20  Prefactor     1.0994        665.45        .93539E-02    .14711E-04
  21  Prefactor     .10000E-03    12.432        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.8180        .15688E-02** at limit **
  23  Normalizat    1.4472        .35017        .28013E-03   -.52617E-04
  24  Prefactor     .73000        .23531        .25880E-03   -.30333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 48.9301
  Prefactor  = 61.6346
  Prefactor  = 3.58747
  Prefactor  = 68.1909
  Prefactor  = 0.0001
  Prefactor  = 9.75285
  norm       = 2.29176
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47078
  norm       = 30.2323
  Prefactor  = 0.0001
  Prefactor  = 259.205
  Prefactor  = 39.4093
  Prefactor  = 0.00010003
  norm       = 22.013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44723
  Prefactor  = 0.730002
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.889     FROM HESSE     STATUS=OK           385 CALLS     3947 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          48.930        23.447        .22934E-05   -1.4308    
   3  Prefactor     61.635        56.340        .10221E-04   -1.4136    
   4  Prefactor     3.5875        24.574        .85367E-05   -1.5329    
   5  Prefactor     68.191        40.196        .19445E-05   -1.4055    
   6  Prefactor     .10000E-03    207.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7528        12.661        .51316E-05   -1.5083    
   8  norm          2.2918        1.6412        .24940E-05   -1.5405    
   9  norm          .10000E-03    21.194        .64824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4708        731.34        .14389E-04   -1.5465    
  12  norm          30.232        18.686        .29150E-05   -1.4608    
  13  Prefactor     .10000E-03    21.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     259.20        285.99        .25169E-04   -1.2474    
  15  Prefactor     39.409        48.820        .25560E-05   -1.4452    
  16  Prefactor     .10003E-03    50.810        .11140       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.013        134.56        .34068E-05   -1.4769    
  18  Prefactor     .10000E-03    24.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5397        .22487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0994        667.03        .37416E-03   -1.5498    
  21  Prefactor     .10000E-03    12.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8181        .31376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4472        .34977        .11205E-04   -.79272    
  24  Prefactor     .73000        .23529        .10352E-04   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72197e-11
Minuit parameter uncertainties:
  1  5.58528e-06
  2  23.4518
  3  56.3885
  4  18.7895
  5  40.2117
  6  1.78534e-05
  7  12.6643
  8  1.64122
  9  4.30574e-05
  10  1.58597e-05
  11  66.4239
  12  18.6897
  13  2.11284e-05
  14  287.56
  15  48.8699
  16  0.00248696
  17  109.216
  18  1.55626e-06
  19  5.39625e-07
  20  54.7823
  21  1.40868e-06
  22  9.61436e-07
  23  0.350356
  24  0.235608
Done.

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

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  1.471e+00  6.642e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.119e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.300e-01  2.356e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.447e+00  3.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 351.575 1.222
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891684/likelihoodResults_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.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) = 3786.88565673
delta logL = 0.00331638123271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3786.88337047
delta logL = 0.00560264912701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4668       1.0000          .0000       10.000    
     3 'Normalizat'    1.4448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3786.883     FROM MIGRAD    STATUS=FAILED        85 CALLS      356 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1217        121.65        .19742E-03   -.33568E-03
   2  Index         2.4653        2.5782        .37399E-02   -.74811E-03
   3  Normalizat    1.4449        .33253        .28029E-03   -.46974E-02
   4  Prefactor     .72953        .22747        .25884E-03   -.48004E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3786.883     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      432 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1217        121.65        .11917E-02   -1.5302    
   2  Index         2.4653        2.5782        .31312E-02   -.53162    
   3  Normalizat    1.4449        .33253        .47817E-03   -.79339    
   4  Prefactor     .72953        .22747        .55074E-03   -1.0238    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3786.883     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      458 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1127        114.85        .39485E-04   -.13403E-03
   2  Index         2.4666        2.5143        .14960E-03    .20975E-04
   3  Normalizat    1.4449        .33279        .56059E-04   -.20726E-04
   4  Prefactor     .72954        .22762        .51768E-04   -.16536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1127
  Index      = 2.46657
  Normalizat = 1.44492
  Prefactor  = 0.729539
 **********
 **   18 **HESSE 
 **********

 FCN=   3786.883     FROM HESSE     STATUS=OK            23 CALLS      481 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1127        114.56        .78969E-05   -1.5302    
   2  Index         2.4666        2.5113        .29919E-04   -.53134    
   3  Normalizat    1.4449        .33283        .11212E-04   -.79338    
   4  Prefactor     .72954        .22766        .10354E-04   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32242e-09
Minuit parameter uncertainties:
  1  43.5033
  2  2.68074
  3  0.333337
  4  0.227948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891684': 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) = 3786.88336907
delta logL = 0.00560404060616

Extracting fit parameters...

4FGL J2326.2+0113
   Spectrum: PowerLaw
406    Prefactor:  4.113e+00  4.350e+01  1.000e-04  1.000e+04 ( 1.000e-14)
407        Index:  2.467e+00  2.681e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  2.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.295e-01  2.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.445e+00  3.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 351.575 1.222

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/891684/cmap_HighResolution_410659201_410918401_4FGL_J2326.2+0113_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-29 19:03:33.229426', job_id='891684', GAL2='0.73', fit_tolerance='1e-08', EG2='1.44', EG='1.45', time_epoch_completed='1632967413.23', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='5.60e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='661' AND source_name='4FGL J2326.2+0113' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:03:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 891684: <4FGL_J2326.2+0113_daily_bin661> in cluster <slac> Done

Job <4FGL_J2326.2+0113_daily_bin661> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:50:56 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:50:58 2021
Terminated at Wed Sep 29 19:03:34 2021
Results reported at Wed Sep 29 19:03:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.2+0113_daily_bin661 351.575 1.2216 410659201 410918401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.2+0113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

