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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1006
RA = 351.436, Dec = 18.3654
tmin = 500083201, tmax = 500342401
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='885725', job_status='RUN', time_executed='2021-09-29 18:32:37.938079', time_epoch_executed='1632965557.94' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885725/ft1_4FGL_J2325.7+1821_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885725/ft1_4FGL_J2325.7+1821_daily_bin1006.fits outfile=/scratch/kocevski/885725/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1006.fits ra=351.436 dec=18.3654 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.64
user 5.37
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.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/885725/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.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/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/885725/ltcube_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.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/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/885725/ltcube_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits outfile=/scratch/kocevski/885725/expmap_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.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/885725/ltcube_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits
.....................!
real 190.94
user 185.55
sys 5.05

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/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits outfile=/scratch/kocevski/885725/cmap_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits outfile=/scratch/kocevski/885725/cmap_HighResolution_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885725/Model_4FGL_J2325.7+1821_daily_bin1006.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/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits.....................!
real 65.89
user 64.37
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits', '/scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits', expMap='/scratch/kocevski/885725/expmap_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits', expCube='/scratch/kocevski/885725/ltcube_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885725/Model_4FGL_J2325.7+1821_daily_bin1006.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/885725/ft1_filtered_4FGL_J2325.7+1821_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/885725/ft2_4FGL_J2325.7+1821_daily_bin1006.fits
Exposure map: /scratch/kocevski/885725/expmap_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits
Exposure cube: /scratch/kocevski/885725/ltcube_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885725/Model_4FGL_J2325.7+1821_daily_bin1006.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) = 4952.57085227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9143       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58868E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8583       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.209       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46267       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.723       1.0000         .10000E-03   10000.    
    17 'norm      '    11.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30599E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.025       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8769       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4253       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77572       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4952.549     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2562 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9157        4.5497        .52257E-07   -.21435E-04
   2  Prefactor     .10000E-03    15.353        .61408E-07** at limit **
   3  Prefactor     .10000E-03    17.765       -.16604E-06** at limit **
   4  norm          2.4234        2.3445       -.50292E-08    .97146E-05
   5  Prefactor     .10003E-03    444.86       -.61561E-05** at limit **
   6  Prefactor     25.316        22.541        .16982E-06    .54164E-04
   7  Prefactor     .10000E-03    22.522        .17105E-06** at limit **
   8  Prefactor     5.8580        .58256       -.48955E-07   -.64874E-05
   9  Prefactor     23.205        19.433        .14190E-06    .43621E-04
  10  Prefactor     .46192        7.7914        .67815E-06   -.19054E-03
  11  Prefactor     .10000E-03    5.8826        .10473E-08** at limit **
  12  Prefactor     .10000E-03    37.226       -.12057E-06** at limit **
  13  Prefactor     50.287        43.679        .23222E-06    .55803E-06
  14  Prefactor     4.9234        10.159        .60974E-05   -.20344E-03
  15  Prefactor     5.1095        12.550        .12639E-05   -.29689E-04
  16  Prefactor     19.719        21.961       -.87221E-06    .43195E-04
  17  norm          11.295        13.405        .55246E-06   -.49613E-04
  18  Prefactor     8.3084        13.485        .64717E-06   -.82848E-04
  19  Prefactor     .10003E-03    127.74        .64559E-05** at limit **
  20  norm          18.018        24.277        .36544E-06    .70751E-04
  21  Prefactor     1.8756        8.4845        .12670E-05   -.11908E-03
  22  Normalizat    1.4256        .32847       -.83375E-06   -.55747E-04
  23  Prefactor     .77565        .18487       -.90000E-06   -.69485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42338
  Prefactor  = 0.000100029
  Prefactor  = 25.316
  Prefactor  = 0.0001
  Prefactor  = 5.85805
  Prefactor  = 23.2052
  Prefactor  = 0.461923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.2875
  Prefactor  = 4.92343
  Prefactor  = 5.10946
  Prefactor  = 19.7187
  norm       = 11.2954
  Prefactor  = 8.30839
  Prefactor  = 0.00010003
  norm       = 18.0178
  Prefactor  = 1.87561
  Normalizat = 1.42558
  Prefactor  = 0.775651
 **********
 **   18 **HESSE 
 **********

 FCN=   4952.549     FROM HESSE     STATUS=OK           376 CALLS     2938 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9157        4.5667        .10779E-03   -1.5145    
   2  Prefactor     .10000E-03    15.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4234        2.3509        .10199E-03   -1.5397    
   5  Prefactor     .10003E-03    451.66        .18968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.316        22.507        .79609E-04   -1.4701    
   7  Prefactor     .10000E-03    22.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8580        .58188        .16029E-04   -1.5224    
   9  Prefactor     23.205        19.437        .83146E-04   -1.4744    
  10  Prefactor     .46192        27.559        .37555E-02   -1.5572    
  11  Prefactor     .10000E-03    5.8849        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     50.287        43.703        .56558E-04   -1.4288    
  14  Prefactor     4.9234        10.211        .90693E-03   -1.5264    
  15  Prefactor     5.1095        12.512        .17814E-03   -1.5256    
  16  Prefactor     19.719        21.978        .90187E-04   -1.4820    
  17  norm          11.295        13.360        .11921E-03   -1.5036    
  18  Prefactor     8.3084        13.503        .13914E-03   -1.5131    
  19  Prefactor     .10003E-03    129.82        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.018        24.288        .94336E-04   -1.4859    
  21  Prefactor     1.8756        8.4708        .30393E-03   -1.5434    
  22  Normalizat    1.4256        .39255        .35528E-03   -.79892    
  23  Prefactor     .77565        .22074        .26923E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22421e-10
Minuit parameter uncertainties:
  1  4.56691
  2  3.39133e-05
  3  3.81408e-05
  4  2.351
  5  0.00724201
  6  22.5149
  7  8.86954e-05
  8  0.581877
  9  19.4418
  10  7.13853
  11  1.53551e-07
  12  9.08958e-05
  13  43.7305
  14  10.2151
  15  12.5187
  16  21.9866
  17  13.3631
  18  13.5084
  19  0.00395271
  20  24.3018
  21  7.9736
  22  0.393383
  23  0.220993
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.972e+01  2.199e+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:  7.757e-01  2.210e-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:  1.426e+00  3.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.46e-05

TS (Fixed Index): 1.85
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885725/likelihoodResults_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.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) = 4952.46535097
delta logL = 0.0834704185918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4952.46420178
delta logL = 0.0846196053208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0846       1.0000          .0000       10.000    
     3 'Normalizat'    1.4370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77164       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=   4952.464     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      256 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.993        1103.7        .19668E-02   -.14138E-04
   2  Index         2.0873        5.4728        .25324        .20591E-04
   3  Normalizat    1.4367        .15938        .80011E-01   -.26068E-04
   4  Prefactor     .77166        .73008E-01    .43347E-01   -.30969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9925
  Index      = 2.0873
  Normalizat = 1.43665
  Prefactor  = 0.771656
 **********
 **   18 **HESSE 
 **********

 FCN=   4952.464     FROM HESSE     STATUS=OK            31 CALLS      287 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.993        30.793        .78673E-04   -1.4688    
   2  Index         2.0873        .80788        .92876E-02   -.62185    
   3  Normalizat    1.4367        .36818        .35413E-03   -.79574    
   4  Prefactor     .77166        .21384        .26984E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31795e-10
Minuit parameter uncertainties:
  1  30.8118
  2  0.813296
  3  0.368869
  4  0.214065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885725': 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) = 4952.46418983
delta logL = 0.0846315580829

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  2.599e+01  3.081e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.087e+00  8.133e-01  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:  7.717e-01  2.141e-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:  1.437e+00  3.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 351.436 18.365
Photon Index (Free Index): 2.09 +/- 0.81
Photon Flux (Free Index): 3.22e-08 +/- 4.29e-08
Energy Flux (Free Index): 1.81e-05 +/- 2.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/885725/cmap_HighResolution_500083201_500342401_4FGL_J2325.7+1821_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='1.81e-05', photon_flux_error='4.64e-08', dlogl='8.46e-02', energy_flux='1.31e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-29 18:43:00.317346', photon_index_error2='0.81', photon_index2='2.09', ts='1.85', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.76e-05', EG='1.43', time_epoch_completed='1632966180.32', return_code='0', job_id='885725', GAL2='0.77', EG2='1.44', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.29e-08', ts2='2.01', photon_index='2.43' WHERE bin_id='1006' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:43:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 885725: <4FGL_J2325.7+1821_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1006> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 18:30:50 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:30:51 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:30:51 2021
Terminated at Wed Sep 29 18:43:01 2021
Results reported at Wed Sep 29 18:43:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1006 351.436 18.3654 500083201 500342401 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

