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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin351
RA = 351.436, Dec = 18.3654
tmin = 330307201, tmax = 330566401
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='883080', job_status='RUN', time_executed='2021-09-29 18:20:47.039395', time_epoch_executed='1632964847.04' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883080/ft1_4FGL_J2325.7+1821_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883080/ft1_4FGL_J2325.7+1821_daily_bin351.fits outfile=/scratch/kocevski/883080/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin351.fits ra=351.436 dec=18.3654 rad=12.0 tmin=330307201.0 tmax=330566401.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.89
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/883080/ltcube_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.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/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits
.....................!
real 11.98
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/883080/ltcube_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.fits outfile=/scratch/kocevski/883080/expmap_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.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/883080/ltcube_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.fits
.....................!
real 190.29
user 184.80
sys 5.17

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/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits scfile=/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits outfile=/scratch/kocevski/883080/cmap_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits scfile=/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits outfile=/scratch/kocevski/883080/cmap_HighResolution_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.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/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/883080/ft2_4FGL_J2325.7+1821_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883080/Model_4FGL_J2325.7+1821_daily_bin351.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/883080/ft1_filtered_4FGL_J2325.7+1821_daily_bin351.fits.....................!
real 80.00
user 78.57
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .26768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65322       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82811E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.934       1.0000         .10000E-03   10000.    
    20 'norm      '    27.084       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28154       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87771       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=   7146.238     FROM MIGRAD    STATUS=CONVERGED    942 CALLS     2664 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79001        .73052E-03** at limit **
   2  Prefactor     .10000E-03    3.1997        .14749E-02** at limit **
   3  Prefactor     .10000E-03    4.1584        .16793E-02** at limit **
   4  norm          .26708        1.4430        .19017E-03   -.26961E-04
   5  Prefactor     .10000E-03    11.384        .18142E-02** at limit **
   6  Prefactor     5.2035        6.8998        .17626E-03    .73853E-04
   7  Prefactor     11.891        11.499        .11617E-03    .47952E-05
   8  Prefactor     .65321        .15990        .15991E-04    .29361E-03
   9  Prefactor     .10000E-03    3.1252        .14575E-02** at limit **
  10  Prefactor     .10000E-03    2.6735        .13465E-02** at limit **
  11  Prefactor     .10002E-03    57.509        .46329E-02** at limit **
  12  Prefactor     .10023E-03    18.334        .92740E-01** at limit **
  13  Prefactor     .10000E-03    33.918        .18142E-02** at limit **
  14  Prefactor     .15460        57.701        .27833E-02    .46324E-04
  15  Prefactor     .10000E-03    2.4438        .12901E-02** at limit **
  16  Prefactor     .10000E-03    8.6883        .18142E-02** at limit **
  17  norm          .10000E-03    3.6893        .15787E-02** at limit **
  18  Prefactor     .10000E-03    3.5051        .15375E-02** at limit **
  19  Prefactor     24.914        22.040        .80222E-04   -.22675E-05
  20  norm          27.074        17.026        .76979E-04    .11815E-05
  21  Prefactor     .27951        29.516        .36318E-02    .12902E-03
  22  Normalizat    1.2030        .23205        .28294E-03    .31742E-04
  23  Prefactor     .87773        .13481        .19609E-03    .87083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.267081
  Prefactor  = 0.0001
  Prefactor  = 5.20352
  Prefactor  = 11.8914
  Prefactor  = 0.653211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.000100234
  Prefactor  = 0.0001
  Prefactor  = 0.1546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9145
  norm       = 27.0739
  Prefactor  = 0.279508
  Normalizat = 1.20298
  Prefactor  = 0.877732
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.238     FROM HESSE     STATUS=OK           360 CALLS     3024 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .79005        .14610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1999        .29497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1591        .33585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26708        1.4421        .76069E-05   -1.5605    
   5  Prefactor     .10000E-03    11.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2035        6.8978        .70503E-05   -1.5252    
   7  Prefactor     11.891        11.499        .46469E-05   -1.5018    
   8  Prefactor     .65321        .15987        .63966E-06   -1.5546    
   9  Prefactor     .10000E-03    3.1254        .29151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6738        .26930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    58.716        .92659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10023E-03    16.950        .97845E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15460        57.556        .11133E-03   -1.5629    
  15  Prefactor     .10000E-03    2.4438        .25803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6902        .31573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5061        .30749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.914        22.033        .32089E-05   -1.4709    
  20  norm          27.074        17.025        .30791E-05   -1.4667    
  21  Prefactor     .27951        29.799        .14527E-03   -1.5602    
  22  Normalizat    1.2030        .23001        .11318E-04   -.86511    
  23  Prefactor     .87773        .13482        .78434E-05   -.96924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34695e-10
Minuit parameter uncertainties:
  1  1.51611e-08
  2  2.74212e-08
  3  2.50736e-08
  4  1.24103
  5  1.61669e-07
  6  6.89883
  7  11.5008
  8  0.159871
  9  3.7416e-08
  10  8.80136e-07
  11  0.0022438
  12  0.00398431
  13  7.44725e-06
  14  5.9698
  15  6.91581e-06
  16  2.38802e-06
  17  2.11352e-05
  18  1.92622e-05
  19  22.0397
  20  17.028
  21  5.77393
  22  0.2302
  23  0.134869
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  2.388e-06  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.777e-01  1.349e-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.203e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/883080/likelihoodResults_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.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) = 7146.23868688
delta logL = -0.00054854273094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7146.23813974
delta logL = -1.40428528539e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4176       1.0000          .0000       10.000    
     3 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87777       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=   7146.238     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.734        .90712E-02** at limit **
   2  Index         2.4041        6.1804        .50000        .13324E-04
   3  Normalizat    1.2030        .18651        .63964E-01    .13518E-04
   4  Prefactor     .87773        .11296        .44721E-01   -.68762E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40408
  Normalizat = 1.20298
  Prefactor  = 0.877732
 **********
 **   18 **HESSE 
 **********

 FCN=   7146.238     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1911.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4041        6.5390        .50000       -.54590    
   3  Normalizat    1.2030        .15624        .28294E-03   -.86511    
   4  Prefactor     .87773        .94630E-01    .19609E-03   -.96924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7483e-08
Minuit parameter uncertainties:
  1  0.000171558
  2  65.2049
  3  0.156296
  4  0.094648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883080': 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) = 7146.23813825
delta logL = 8.7729858933e-08

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  1.716e-04  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.404e+00  6.520e+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:  8.777e-01  9.465e-02  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.203e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.436 18.365

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/883080/cmap_HighResolution_330307201_330566401_4FGL_J2325.7+1821_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-29 18:32:59.001064', job_id='883080', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632965579.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='351' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:32:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 883080: <4FGL_J2325.7+1821_daily_bin351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin351 351.436 18.3654 330307201 330566401 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 :                                   717.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

