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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1426
RA = 351.436, Dec = 18.3654
tmin = 608947201, tmax = 609206401
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='888327', job_status='RUN', time_executed='2021-09-29 18:42:54.247195', time_epoch_executed='1632966174.25' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888327

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888327/ft1_4FGL_J2325.7+1821_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888327/ft1_4FGL_J2325.7+1821_daily_bin1426.fits outfile=/scratch/kocevski/888327/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1426.fits ra=351.436 dec=18.3654 rad=12.0 tmin=608947201.0 tmax=609206401.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.15
user 2.94
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/888327/ltcube_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.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/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits
.....................!
real 12.76
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/888327/ltcube_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.fits outfile=/scratch/kocevski/888327/expmap_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.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/888327/ltcube_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.fits
.....................!
real 192.31
user 186.39
sys 4.86

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/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits scfile=/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits outfile=/scratch/kocevski/888327/cmap_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits scfile=/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits outfile=/scratch/kocevski/888327/cmap_HighResolution_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/888327/ft2_4FGL_J2325.7+1821_daily_bin1426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888327/Model_4FGL_J2325.7+1821_daily_bin1426.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/888327/ft1_filtered_4FGL_J2325.7+1821_daily_bin1426.fits.....................!
real 72.04
user 70.58
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30816E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.685       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5170       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.733       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90655       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=   5891.545     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2560 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    4.1048        .28401E-05** at limit **
   2  Prefactor     13.719        24.367       -.46088E-05   -.36724E-03
   3  Prefactor     .10000E-03    13.438        .75348E-06** at limit **
   4  norm          1.0130        1.0611       -.29203E-08    .19472E-04
   5  Prefactor     .10000E-03    8.1535        .43676E-07** at limit **
   6  Prefactor     34.927        15.936        .30761E-06    .23765E-04
   7  Prefactor     5.2645        9.7061        .12689E-06   -.28458E-05
   8  Prefactor     .24188        .13097        .28779E-07   -.21828E-03
   9  Prefactor     8.8959        13.655        .47460E-06    .49836E-05
  10  Prefactor     .10000E-03    4.0120       -.11487E-06** at limit **
  11  Prefactor     .10000E-03    4.7771       -.44813E-07** at limit **
  12  Prefactor     .10000E-03    12.348       -.26207E-06** at limit **
  13  Prefactor     .10000E-03    8.4085        .42258E-07** at limit **
  14  Prefactor     3.5200        8.9809        .14306E-05   -.10466E-03
  15  Prefactor     .10000E-03    10.792        .85795E-06** at limit **
  16  Prefactor     .10000E-03    76.285       -.48550E-06** at limit **
  17  norm          .10000E-03    7.0056        .66964E-06** at limit **
  18  Prefactor     .10000E-03    2.6266        .23754E-06** at limit **
  19  Prefactor     11.771        36.428        .15152E-05    .82409E-04
  20  norm          .10000E-03    5.9365        .30088E-07** at limit **
  21  Prefactor     .10000E-03    13.592        .51925E-07** at limit **
  22  Normalizat    1.2568        .26005       -.44871E-05   -.28818E-03
  23  Prefactor     .90660        .13585        .15458E-05   -.68569E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  Prefactor  = 13.7187
  Prefactor  = 0.0001
  norm       = 1.013
  Prefactor  = 0.0001
  Prefactor  = 34.9272
  Prefactor  = 5.26454
  Prefactor  = 0.241876
  Prefactor  = 8.89586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.771
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25684
  Prefactor  = 0.906595
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.545     FROM HESSE     STATUS=OK           362 CALLS     2922 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    11.736        .25733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.719        25.648        .10827E-03   -1.4967    
   3  Prefactor     .10000E-03    13.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0130        1.0616        .78116E-04   -1.5507    
   5  Prefactor     .10000E-03    8.1570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.927        15.892        .67804E-04   -1.4525    
   7  Prefactor     5.2645        9.6962        .17516E-03   -1.5249    
   8  Prefactor     .24188        .12915        .19372E-04   -1.5610    
   9  Prefactor     8.8959        13.653        .13439E-03   -1.5111    
  10  Prefactor     .10000E-03    4.0433        .15006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7849        .16383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.4106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5200        8.9140        .21557E-03   -1.5333    
  15  Prefactor     .10000E-03    10.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    77.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6320        .12144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.771        36.153        .11695E-03   -1.5022    
  20  norm          .10000E-03    5.9393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2568        .29309        .30807E-03   -.84864    
  23  Prefactor     .90660        .15678        .20093E-03   -.95911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00513e-09
Minuit parameter uncertainties:
  1  0.001038
  2  25.6684
  3  8.11437e-06
  4  1.06167
  5  1.98782e-05
  6  15.8942
  7  9.69908
  8  0.129154
  9  13.6575
  10  9.28898e-06
  11  5.67709e-06
  12  2.19092e-05
  13  3.62973e-05
  14  8.9174
  15  4.94836e-05
  16  7.30932e-05
  17  5.76595e-05
  18  1.54792e-06
  19  36.2207
  20  1.55706e-05
  21  6.85808e-05
  22  0.29348
  23  0.156856
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  7.309e-05  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:  9.066e-01  1.569e-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.257e+00  2.935e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/888327/likelihoodResults_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.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) = 5891.54514686
delta logL = -6.14761065663e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.54508571
delta logL = -3.29207068717e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3836       1.0000          .0000       10.000    
     3 'Normalizat'    1.2568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90660       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=   5890.667     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      298 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38817        11.489        .81250E-02   -.18214E-02
   2  Index         4.9855        3.6101        .12218        .16190E-03
   3  Normalizat    1.1038        .21989        .73621E-01    .50494E-04
   4  Prefactor     .96138        .89464E-01    .45089E-01    .32934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.388174
  Index      = 4.98545
  Normalizat = 1.10376
  Prefactor  = 0.96138
 **********
 **   18 **HESSE 
 **********

 FCN=   5890.667     FROM HESSE     STATUS=OK            35 CALLS      333 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38817        1.9214        .36834E-03   -1.5833    
   2  Index         4.9855        2.0448        .43072E-02   -.29090E-02
   3  Normalizat    1.1038        .29543        .32584E-03   -.89631    
   4  Prefactor     .96138        .16153        .19576E-03   -.94028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05265e-11
Minuit parameter uncertainties:
  1  1.72709
  2  2.10658
  3  0.29587
  4  0.161614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888327': 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) = 5890.66714233
delta logL = 0.877943049018

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.882e-01  1.727e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  4.985e+00  2.107e+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.614e-01  1.616e-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.104e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 351.436 18.365
Photon Index (Free Index): 4.99 +/- 2.11
Photon Flux (Free Index): 1.19e-07 +/- 1.05e-06
Energy Flux (Free Index): 1.59e-05 +/- 1.37e-04

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/888327/cmap_HighResolution_608947201_609206401_4FGL_J2325.7+1821_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='8.78e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 18:53:41.703562', photon_index_error2='2.11', photon_index2='4.99', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.37e-04', EG='1.26', time_epoch_completed='1632966821.7', return_code='0', job_id='888327', GAL2='0.96', EG2='1.10', return_code2='0', photon_flux_error2='1.05e-06', ts2='2.08', photon_index='2.43' WHERE bin_id='1426' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:53:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 888327: <4FGL_J2325.7+1821_daily_bin1426> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1426> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:13 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:15 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:40:15 2021
Terminated at Wed Sep 29 18:53:42 2021
Results reported at Wed Sep 29 18:53:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1426 351.436 18.3654 608947201 609206401 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 :                                   634.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

