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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin390
RA = 351.436, Dec = 18.3654
tmin = 340416001, tmax = 340675201
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='883137', job_status='RUN', time_executed='2021-09-29 18:23:02.713764', time_epoch_executed='1632964982.71' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883137

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883137/ft1_4FGL_J2325.7+1821_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883137/ft1_4FGL_J2325.7+1821_daily_bin390.fits outfile=/scratch/kocevski/883137/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin390.fits ra=351.436 dec=18.3654 rad=12.0 tmin=340416001.0 tmax=340675201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.74
user 6.45
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.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/883137/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.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/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/883137/ltcube_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.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/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits
.....................!
real 11.30
user 10.98
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/883137/ltcube_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.fits outfile=/scratch/kocevski/883137/expmap_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.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/883137/ltcube_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.fits
.....................!
real 190.01
user 185.21
sys 4.44

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/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits outfile=/scratch/kocevski/883137/cmap_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits outfile=/scratch/kocevski/883137/cmap_HighResolution_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.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/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/883137/ft2_4FGL_J2325.7+1821_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883137/Model_4FGL_J2325.7+1821_daily_bin390.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/883137/ft1_filtered_4FGL_J2325.7+1821_daily_bin390.fits.....................!
real 74.24
user 72.90
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44149E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.788       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6666       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65254       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1542       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=   6505.753     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2251 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0472        .11031E-07** at limit **
   2  Prefactor     12.640        9.4605        .75357E-07   -.98276E-04
   3  Prefactor     .10000E-03    3.8121       -.38792E-08** at limit **
   4  norm          .10000E-03    .92022       -.17001E-05** at limit **
   5  Prefactor     .16865        21.084       -.25816E-05    .15037E-03
   6  Prefactor     18.044        11.924        .12966E-05    .82449E-04
   7  Prefactor     .10000E-03    15.614        .58775E-07** at limit **
   8  Prefactor     .44098E-01    .11285        .57491E-09    .72266E-03
   9  Prefactor     10.037        11.457       -.15274E-07    .21791E-03
  10  Prefactor     .50473        4.3288       -.98983E-06    .11821E-03
  11  Prefactor     2.5679        9.2347        .59895E-05   -.35905E-04
  12  Prefactor     36.787        22.271        .14829E-06   -.98872E-04
  13  Prefactor     .10000E-03    8.8299       -.15279E-07** at limit **
  14  Prefactor     .10000E-03    5.6254        .15649E-06** at limit **
  15  Prefactor     6.7508        10.140       -.22659E-06   -.35411E-04
  16  Prefactor     6.6650        13.981       -.81094E-08    .13894E-03
  17  norm          .10000E-03    4.0039        .15807E-07** at limit **
  18  Prefactor     5.8598        7.5183        .14251E-05   -.53798E-04
  19  Prefactor     .10000E-03    5.5852       -.37644E-08** at limit **
  20  norm          3.6096        9.9440        .51269E-07    .29511E-05
  21  Prefactor     .10000E-03    2.1101        .30663E-07** at limit **
  22  Normalizat    .65258        .21277       -.11948E-05    .26929E-03
  23  Prefactor     1.1542        .12495        .11445E-06    .52332E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.6398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.16865
  Prefactor  = 18.0439
  Prefactor  = 0.0001
  Prefactor  = 0.044098
  Prefactor  = 10.0374
  Prefactor  = 0.504726
  Prefactor  = 2.5679
  Prefactor  = 36.7873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.75075
  Prefactor  = 6.665
  norm       = 0.0001
  Prefactor  = 5.85984
  Prefactor  = 0.0001
  norm       = 3.6096
  Prefactor  = 0.0001
  Normalizat = 0.652583
  Prefactor  = 1.15417
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.753     FROM HESSE     STATUS=OK           384 CALLS     2635 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0632        .80543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.640        9.4570        .11267E-03   -1.4997    
   3  Prefactor     .10000E-03    3.8222        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3914        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16865        21.855        .11907       -1.5626    
   6  Prefactor     18.044        12.166        .94295E-04   -1.4858    
   7  Prefactor     .10000E-03    15.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44098E-01    .12406        .38315E-03   -1.5666    
   9  Prefactor     10.037        11.455        .12647E-03   -1.5074    
  10  Prefactor     .50473        24.604        .30613E-02   -1.5566    
  11  Prefactor     2.5679        9.6106        .12736E-02   -1.5387    
  12  Prefactor     36.787        22.262        .66077E-04   -1.4494    
  13  Prefactor     .10000E-03    8.8478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7508        10.131        .15442E-03   -1.5188    
  16  Prefactor     6.6650        13.965        .15541E-03   -1.5192    
  17  norm          .10000E-03    4.0186        .15744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8598        7.5739        .82950E-03   -1.5224    
  19  Prefactor     .10000E-03    5.5860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6096        9.9241        .21266E-03   -1.5328    
  21  Prefactor     .10000E-03    2.1156        .11441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .65258        .23466        .36425E-03   -1.0580    
  23  Prefactor     1.1542        .14069        .17238E-03   -.87753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30682e-09
Minuit parameter uncertainties:
  1  7.99414e-07
  2  9.45809
  3  7.51736e-07
  4  3.75285e-05
  5  3.84004
  6  12.1677
  7  6.77376e-06
  8  0.124058
  9  11.457
  10  7.05024
  11  9.61636
  12  22.2671
  13  2.79236e-06
  14  2.97425e-06
  15  10.1332
  16  13.9721
  17  4.66431e-06
  18  7.57518
  19  1.41249e-05
  20  9.92866
  21  2.34843e-06
  22  0.235022
  23  0.140739
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  6.665e+00  1.397e+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.154e+00  1.407e-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.526e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/883137/likelihoodResults_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.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) = 6505.74903583
delta logL = 0.00396708434528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.74785467
delta logL = 0.00514824490347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9534       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5736       1.0000          .0000       10.000    
     3 'Normalizat'    .65007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1551       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=   6505.748     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      254 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9583        16.092        .16457E-03   -.35576E-03
   2  Index         2.5695        1.4876        .13424E-01   -.96521E-04
   3  Normalizat    .65026        .22690        .36488E-03    .10160E-02
   4  Prefactor     1.1550        .13920        .17233E-03    .21251E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9583
  Index      = 2.56948
  Normalizat = 0.650261
  Prefactor  = 1.155
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.748     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9583        14.747        .65829E-05   -1.5220    
   2  Index         2.5695        1.3667        .53695E-03   -.50763    
   3  Normalizat    .65026        .22685        .72975E-04   -1.0589    
   4  Prefactor     1.1550        .13918        .34465E-04   -.87727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66895e-09
Minuit parameter uncertainties:
  1  14.7559
  2  1.39002
  3  0.227179
  4  0.139226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883137': 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) = 6505.74784851
delta logL = 0.00515440624804

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  5.958e+00  1.476e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.569e+00  1.390e+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.155e+00  1.392e-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.503e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
Ra Dec: 351.436 18.365

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/883137/cmap_HighResolution_340416001_340675201_4FGL_J2325.7+1821_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2021-09-29 18:34:04.258263', job_id='883137', GAL2='1.16', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632965644.26', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.15e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='390' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:34:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 883137: <4FGL_J2325.7+1821_daily_bin390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin390 351.436 18.3654 340416001 340675201 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

