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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1123
RA = 351.436, Dec = 18.3654
tmin = 530409601, tmax = 530668801
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='886912', job_status='RUN', time_executed='2021-09-29 18:37:50.204957', time_epoch_executed='1632965870.2' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886912

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886912/ft1_4FGL_J2325.7+1821_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886912/ft1_4FGL_J2325.7+1821_daily_bin1123.fits outfile=/scratch/kocevski/886912/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1123.fits ra=351.436 dec=18.3654 rad=12.0 tmin=530409601.0 tmax=530668801.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.00
user 2.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.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/886912/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.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.44
user 0.26
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/886912/ltcube_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.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/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits
.....................!
real 9.79
user 9.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/886912/ltcube_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.fits outfile=/scratch/kocevski/886912/expmap_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.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/886912/ltcube_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.fits
.....................!
real 153.55
user 148.87
sys 4.31

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/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits outfile=/scratch/kocevski/886912/cmap_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.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.47
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits outfile=/scratch/kocevski/886912/cmap_HighResolution_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.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.47
user 0.30
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/886912/ft2_4FGL_J2325.7+1821_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886912/Model_4FGL_J2325.7+1821_daily_bin1123.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/886912/ft1_filtered_4FGL_J2325.7+1821_daily_bin1123.fits.....................!
real 69.74
user 68.55
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.136       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19251E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1270       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4360       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3033       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.525       1.0000         .10000E-03   10000.    
    17 'norm      '    .21454E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96766       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87032       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7839.637     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     3009 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.248        6.3660        .71679E-04   -.91199E-04
   2  Prefactor     11.000        17.982        .12080E-03   -.27293E-05
   3  Prefactor     33.137        18.012        .69611E-04   -.13555E-04
   4  norm          2.3823        1.5809        .88041E-04    .75154E-04
   5  Prefactor     .10000E-03    138.71        .40526E-03** at limit **
   6  Prefactor     .10000E-03    3.7898        .16821E-02** at limit **
   7  Prefactor     3.0922        22.225        .22927E-03    .81173E-04
   8  Prefactor     .83412        .19084        .17272E-04    .34291E-02
   9  Prefactor     2.5553        6.7224        .12773E-02   -.53099E-04
  10  Prefactor     .10000E-03    3.4107        .15901E-02** at limit **
  11  Prefactor     .10000E-03    2.7604        .14361E-02** at limit **
  12  Prefactor     5.4406        21.208        .17235E-03   -.32982E-05
  13  Prefactor     6.2548        11.557        .16051E-03   -.31873E-05
  14  Prefactor     5.2966        10.958        .17453E-03   -.85464E-04
  15  Prefactor     6.6020        9.1139        .15629E-03   -.97547E-04
  16  Prefactor     41.542        30.825        .62207E-04   -.52999E-05
  17  norm          .10000E-03    7.2609        .60327E-01** at limit **
  18  Prefactor     .36397        13.240        .33493E-02   -.23599E-03
  19  Prefactor     .10000E-03    9.5651        .18142E-02** at limit **
  20  norm          .10000E-03    4.1643        .17641E-02** at limit **
  21  Prefactor     .10000E-03    5.6915        .36285E-03** at limit **
  22  Normalizat    .96776        .25920        .34685E-03   -.18080E-03
  23  Prefactor     .87022        .13736        .20493E-03   -.31781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.2477
  Prefactor  = 11.0001
  Prefactor  = 33.137
  norm       = 2.38227
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.09216
  Prefactor  = 0.834119
  Prefactor  = 2.5553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44057
  Prefactor  = 6.25482
  Prefactor  = 5.29658
  Prefactor  = 6.60198
  Prefactor  = 41.5419
  norm       = 0.0001
  Prefactor  = 0.363973
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.967757
  Prefactor  = 0.870223
 **********
 **   18 **HESSE 
 **********

 FCN=   7839.637     FROM HESSE     STATUS=OK           360 CALLS     3369 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.248        6.3652        .28671E-05   -1.4589    
   2  Prefactor     11.000        17.978        .48318E-05   -1.5045    
   3  Prefactor     33.137        18.010        .27844E-05   -1.4556    
   4  norm          2.3823        1.5808        .35216E-05   -1.5399    
   5  Prefactor     .10000E-03    138.72        .81051E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7899        .33641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0922        22.215        .91708E-05   -1.5356    
   8  Prefactor     .83412        .19081        .34545E-05   -1.5525    
   9  Prefactor     2.5553        6.7200        .51094E-04   -1.5388    
  10  Prefactor     .10000E-03    3.4116        .31802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7605        .28722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4406        21.202        .68939E-05   -1.5241    
  13  Prefactor     6.2548        11.557        .64204E-05   -1.5208    
  14  Prefactor     5.2966        10.949        .69811E-05   -1.5248    
  15  Prefactor     6.6020        9.1101        .62515E-05   -1.5194    
  16  Prefactor     41.542        30.799        .24883E-05   -1.4418    
  17  norm          .10000E-03    6.8134        .62610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .36397        13.103        .13397E-03   -1.5587    
  19  Prefactor     .10000E-03    9.5657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.1644        .35281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6917        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96776        .25925        .13874E-04   -.94119    
  23  Prefactor     .87022        .13748        .40986E-04   -.97189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16862e-10
Minuit parameter uncertainties:
  1  6.36536
  2  17.9872
  3  18.0127
  4  1.58086
  5  0.00097434
  6  1.31672e-05
  7  16.5846
  8  0.190812
  9  6.72196
  10  2.06286e-05
  11  5.02332e-06
  12  21.2315
  13  11.5608
  14  10.9532
  15  9.112
  16  30.8108
  17  1.19283e-05
  18  4.36812
  19  1.68261e-05
  20  5.14793e-06
  21  2.958e-05
  22  0.259584
  23  0.137531
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  4.154e+01  3.081e+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:  8.702e-01  1.375e-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:  9.678e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 351.436 18.365
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.77e-08 +/- 6.50e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/886912/likelihoodResults_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.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) = 7838.29906121
delta logL = 1.33806005739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7838.27951537
delta logL = 1.35760589848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.313       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4002       1.0000          .0000       10.000    
     3 'Normalizat'    .85916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91083       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=   7838.280     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      260 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.271        97.872        .26467E-02   -.10901E-03
   2  Index         3.4019        2.3953        .97898E-01    .13460E-03
   3  Normalizat    .85908        .88951E-01    .82560E-01    .25781E-04
   4  Prefactor     .91075        .46965E-01    .45143E-01   -.72211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.271
  Index      = 3.40193
  Normalizat = 0.859081
  Prefactor  = 0.910754
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.280     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.271        27.993        .10587E-03   -1.4952    
   2  Index         3.4019        1.0607        .38409E-02   -.32532    
   3  Normalizat    .85908        .25523        .36553E-03   -.97913    
   4  Prefactor     .91075        .14025        .20073E-03   -.95766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67645e-11
Minuit parameter uncertainties:
  1  28.0186
  2  1.06977
  3  0.25559
  4  0.140309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886912': 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) = 7838.27951059
delta logL = 1.35761068028

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.427e+01  2.802e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.402e+00  1.070e+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:  9.108e-01  1.403e-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:  8.591e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 351.436 18.365
Photon Index (Free Index): 3.40 +/- 1.07
Photon Flux (Free Index): 1.76e-07 +/- 8.80e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/886912/cmap_HighResolution_530409601_530668801_4FGL_J2325.7+1821_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='8.77e-08', energy_flux2='3.01e-05', photon_flux_error='6.50e-08', dlogl='1.36e+00', energy_flux='2.76e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-29 18:48:22.538590', photon_index_error2='1.07', photon_index2='3.40', ts='3.93', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.50e-05', EG='0.97', time_epoch_completed='1632966502.54', return_code='0', job_id='886912', GAL2='0.91', EG2='0.86', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='8.80e-08', ts2='7.07', photon_index='2.43' WHERE bin_id='1123' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 886912: <4FGL_J2325.7+1821_daily_bin1123> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1123> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:35:25 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:35:26 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:35:26 2021
Terminated at Wed Sep 29 18:48:23 2021
Results reported at Wed Sep 29 18:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1123 351.436 18.3654 530409601 530668801 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 :                                   624.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

