/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 4 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin424
RA = 351.436, Dec = 18.3654
tmin = 349228801, tmax = 349488001
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='883186', job_status='RUN', time_executed='2021-09-29 18:20:49.316266', time_epoch_executed='1632964849.32' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883186/ft1_4FGL_J2325.7+1821_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883186/ft1_4FGL_J2325.7+1821_daily_bin424.fits outfile=/scratch/kocevski/883186/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin424.fits ra=351.436 dec=18.3654 rad=12.0 tmin=349228801.0 tmax=349488001.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.51
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.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/883186/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/883186/ltcube_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.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/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits
.....................!
real 11.89
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/883186/ltcube_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits outfile=/scratch/kocevski/883186/expmap_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.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/883186/ltcube_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits
.....................!
real 189.47
user 185.18
sys 3.93

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

Setting source of interest to:
4FGL J2325.7+1821 @ 351.436 18.3654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits outfile=/scratch/kocevski/883186/cmap_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.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.436 yref=18.3654 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits outfile=/scratch/kocevski/883186/cmap_HighResolution_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.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.436 yref=18.3654 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883186/Model_4FGL_J2325.7+1821_daily_bin424.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/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits.....................!
real 72.33
user 71.03
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits', '/scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits', expMap='/scratch/kocevski/883186/expmap_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits', expCube='/scratch/kocevski/883186/ltcube_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/883186/Model_4FGL_J2325.7+1821_daily_bin424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.7+1821'

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/883186/ft1_filtered_4FGL_J2325.7+1821_daily_bin424.fits
Spacecraft file(s): /scratch/kocevski/883186/ft2_4FGL_J2325.7+1821_daily_bin424.fits
Exposure map: /scratch/kocevski/883186/expmap_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits
Exposure cube: /scratch/kocevski/883186/ltcube_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/883186/Model_4FGL_J2325.7+1821_daily_bin424.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) = 6456.11446126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3234       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7520       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6928       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.561       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6607       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5523       1.0000         .10000E-03   10000.    
    20 'norm      '    10.941       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62765       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6455.975     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2191 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3239        2.9962         .0000        .71080E-03
   2  Prefactor     1.1926        20.566         .0000        .55939E-03
   3  Prefactor     .10000E-03    4.1066         .0000    ** at limit **
   4  norm          2.7520        1.7824         .0000       -.18180E-03
   5  Prefactor     .10000E-03    59.009         .0000    ** at limit **
   6  Prefactor     17.272        12.968         .0000       -.20691E-03
   7  Prefactor     .10001E-03    9.8265         .0000    ** at limit **
   8  Prefactor     .28673        .12691         .0000       -.26641E-02
   9  Prefactor     .10000E-03    12.291         .0000    ** at limit **
  10  Prefactor     12.380        7.2802         .0000        .97907E-03
  11  Prefactor     .10001E-03    9.6763         .0000    ** at limit **
  12  Prefactor     34.975        20.550         .0000       -.54034E-03
  13  Prefactor     5.3107        16.931         .0000        .10906E-02
  14  Prefactor     10.273        7.3995         .0000        .90609E-03
  15  Prefactor     1.6983        31.129         .0000        .95957E-03
  16  Prefactor     12.560        20.874         .0000        .46144E-03
  17  norm          2.6507        9.4652         .0000        .82844E-02
  18  Prefactor     .10000E-03    3.8865         .0000    ** at limit **
  19  Prefactor     3.5486        19.561         .0000        .25051E-03
  20  norm          10.941        10.135         .0000       -.73187E-04
  21  Prefactor     .10000E-03    3.5064         .0000    ** at limit **
  22  Normalizat    .62778        .20610         .0000       -.11336E-04
  23  Prefactor     1.0249        .11814         .0000       -.31230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32391
  Prefactor  = 1.19261
  Prefactor  = 0.0001
  norm       = 2.75202
  Prefactor  = 0.0001
  Prefactor  = 17.2722
  Prefactor  = 0.000100008
  Prefactor  = 0.286731
  Prefactor  = 0.0001
  Prefactor  = 12.3801
  Prefactor  = 0.000100008
  Prefactor  = 34.9747
  Prefactor  = 5.31075
  Prefactor  = 10.273
  Prefactor  = 1.69826
  Prefactor  = 12.5597
  norm       = 2.65071
  Prefactor  = 0.0001
  Prefactor  = 3.54855
  norm       = 10.9414
  Prefactor  = 0.0001
  Normalizat = 0.62778
  Prefactor  = 1.02489
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.975     FROM HESSE     STATUS=OK           374 CALLS     2565 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3239        2.9015        .13627E-03   -1.5403    
   2  Prefactor     1.1926        19.743        .41699E-03   -1.5490    
   3  Prefactor     .10000E-03    4.1191        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7520        1.7852        .81562E-04   -1.5376    
   5  Prefactor     .10000E-03    60.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.272        12.943        .96370E-04   -1.4877    
   7  Prefactor     .10001E-03    9.8486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28673        .12547        .18192E-04   -1.5601    
   9  Prefactor     .10000E-03    12.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.380        7.2751        .56924E-03   -1.5004    
  11  Prefactor     .10001E-03    9.7677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.975        20.536        .67763E-04   -1.4524    
  13  Prefactor     5.3107        16.927        .87177E-03   -1.5247    
  14  Prefactor     10.273        7.3789        .12501E-03   -1.5067    
  15  Prefactor     1.6983        27.870        .32349E-03   -1.5447    
  16  Prefactor     12.560        20.828        .11302E-03   -1.4999    
  17  norm          2.6507        8.9577        .12494E-02   -1.5382    
  18  Prefactor     .10000E-03    3.8978        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5486        19.264        .21445E-03   -1.5331    
  20  norm          10.941        10.136        .12112E-03   -1.5046    
  21  Prefactor     .10000E-03    3.5381        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .62778        .23066        .35125E-03   -1.0682    
  23  Prefactor     1.0249        .13446        .17359E-03   -.91904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07707e-08
Minuit parameter uncertainties:
  1  2.90167
  2  9.70812
  3  1.23976e-05
  4  1.78521
  5  0.000317625
  6  12.945
  7  0.00056582
  8  0.125469
  9  1.67207e-05
  10  7.27566
  11  0.000553379
  12  20.5402
  13  16.9421
  14  7.37953
  15  13.7665
  16  20.8399
  17  8.96221
  18  1.93148e-05
  19  16.5438
  20  10.1375
  21  1.69159e-05
  22  0.231013
  23  0.134509
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.256e+01  2.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.025e+00  1.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  6.278e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883186/likelihoodResults_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.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) = 6455.16594163
delta logL = 0.809084869386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6455.15061032
delta logL = 0.824416181074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76180E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5988       1.0000          .0000       10.000    
     3 'Normalizat'    .55215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6455.151     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      344 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75360E-02    .89771E-01    .92801E-03    .10630E-01
   2  Index         6.6039        2.4061        .12641        .16470E-03
   3  Normalizat    .55192        .48105E-01    .84194E-01    .40855E-04
   4  Prefactor     1.0607        .29914E-01    .39329E-01   -.14179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00753598
  Index      = 6.60391
  Normalizat = 0.551923
  Prefactor  = 1.06068
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.151     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      377 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75360E-02    .22488        .52360E-05   -1.5691    
   2  Index         6.6039        7.4438        .46558E-02    .32656    
   3  Normalizat    .55192        .18657        .37292E-03   -1.1007    
   4  Prefactor     1.0607        .11433        .17094E-03   -.90733    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.23738e-10
Minuit parameter uncertainties:
  1  0.0817846
  2  4.93968
  3  0.186785
  4  0.114356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883186': 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): 102
logL (Free Index) = 6455.15060853
delta logL = 0.824417973061

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  7.536e-03  8.178e-02  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  6.604e+00  4.940e+00  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.061e+00  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  5.519e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 351.436 18.365
Photon Index (Free Index): 6.60 +/- 4.94
Photon Flux (Free Index): 7.41e-08 +/- 5.56e-08
Energy Flux (Free Index): 8.99e-06 +/- 7.21e-06

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/883186/cmap_HighResolution_349228801_349488001_4FGL_J2325.7+1821_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', comment='SUCCESS', energy_flux2='8.99e-06', dlogl='8.24e-01', photon_flux2='7.41e-08', job_status='DONE', time_completed='2021-09-29 18:31:48.903309', photon_index_error2='4.94', photon_index2='6.60', ts='0.51', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.21e-06', EG='0.63', time_epoch_completed='1632965508.9', return_code='0', job_id='883186', GAL2='1.06', EG2='0.55', return_code2='102', photon_flux_error2='5.56e-08', ts2='2.34', photon_index='2.43' WHERE bin_id='424' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 883186: <4FGL_J2325.7+1821_daily_bin424> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin424> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 18:20:36 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:20:37 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:20:37 2021
Terminated at Wed Sep 29 18:31:49 2021
Results reported at Wed Sep 29 18:31:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin424 351.436 18.3654 349228801 349488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.7+1821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

