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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin1007
RA = 351.315, Dec = 39.9542
tmin = 500342401, tmax = 500601601
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='859730', job_status='RUN', time_executed='2021-09-29 17:13:51.978611', time_epoch_executed='1632960831.98' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859730/ft1_4FGL_J2325.2+3957_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859730/ft1_4FGL_J2325.2+3957_daily_bin1007.fits outfile=/scratch/kocevski/859730/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1007.fits ra=351.315 dec=39.9542 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.66
user 4.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.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/859730/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/859730/ltcube_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.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/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits
.....................!
real 12.24
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/859730/ltcube_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits outfile=/scratch/kocevski/859730/expmap_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.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/859730/ltcube_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits
.....................!
real 191.29
user 185.53
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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2325.2+3957 @ 351.315 39.9542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits outfile=/scratch/kocevski/859730/cmap_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.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.315 yref=39.9542 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits outfile=/scratch/kocevski/859730/cmap_HighResolution_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.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.315 yref=39.9542 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859730/Model_4FGL_J2325.2+3957_daily_bin1007.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits.....................!
real 88.00
user 86.60
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits', '/scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits', expMap='/scratch/kocevski/859730/expmap_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits', expCube='/scratch/kocevski/859730/ltcube_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859730/Model_4FGL_J2325.2+3957_daily_bin1007.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.2+3957'

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/859730/ft1_filtered_4FGL_J2325.2+3957_daily_bin1007.fits
Spacecraft file(s): /scratch/kocevski/859730/ft2_4FGL_J2325.2+3957_daily_bin1007.fits
Exposure map: /scratch/kocevski/859730/expmap_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits
Exposure cube: /scratch/kocevski/859730/ltcube_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859730/Model_4FGL_J2325.2+3957_daily_bin1007.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) = 7555.58975328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1582       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .18417E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11354E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1265       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .52712       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1381       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1915       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7555.485     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2519 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5818       -.32317E-06** at limit **
   2  Prefactor     .10000E-03    12.000       -.33994E-06** at limit **
   3  norm          .10000E-03    3.6062        .95195E-08** at limit **
   4  Prefactor     7.3526        6.1446        .25892E-06    .21248E-03
   5  Prefactor     5.1574        4.6111        .28247E-06    .17984E-03
   6  Prefactor     .10001E-03    43.479        .28580E-05** at limit **
   7  Prefactor     .10000E-03    1.9662        .32736E-08** at limit **
   8  norm          3.4110        3.0700        .46241E-07    .42733E-04
   9  Prefactor     12.877        19.481        .13522E-06    .38121E-05
  10  Prefactor     .10000E-03    2.2120        .30210E-07** at limit **
  11  Prefactor     .10000E-03    18.961        .13496E-05** at limit **
  12  norm          .10008E-03    .70713        .40703E-06** at limit **
  13  Prefactor     .10040E-03    8.9994       -.18936E-05** at limit **
  14  Prefactor     .10001E-03    43.273        .29444E-05** at limit **
  15  norm          1.1247        4.4327        .15981E-05   -.17096E-03
  16  norm          .10000E-03    4.8964       -.43379E-07** at limit **
  17  Prefactor     .10002E-03    26.195       -.48614E-05** at limit **
  18  norm          .52868        2.3837        .15450E-05   -.12420E-03
  19  Prefactor     6.1367        14.954        .30795E-05   -.14986E-03
  20  Prefactor     .10000E-03    17.601        .12615E-05** at limit **
  21  Prefactor     .10000E-03    69.428        .61547E-06** at limit **
  22  Prefactor     .10000E-03    13.013       -.17258E-05** at limit **
  23  Prefactor     .10000E-03    3.4815        .37390E-07** at limit **
  24  Normalizat    1.1916        .22024       -.80412E-06    .42503E-04
  25  Prefactor     .94420        .86078E-01   -.10289E-06    .72110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.3526
  Prefactor  = 5.15737
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 3.41104
  Prefactor  = 12.8766
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100085
  Prefactor  = 0.000100398
  Prefactor  = 0.000100006
  norm       = 1.12466
  norm       = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.528675
  Prefactor  = 6.13673
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.1916
  Prefactor  = 0.944199
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.485     FROM HESSE     STATUS=OK           425 CALLS     2944 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6080        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3526        6.1500        .14792E-03   -1.5166    
   5  Prefactor     5.1574        4.6126        .16958E-03   -1.5254    
   6  Prefactor     .10001E-03    44.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9704        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4110        3.0698        .14042E-03   -1.5339    
   9  Prefactor     12.877        19.485        .11162E-03   -1.4990    
  10  Prefactor     .10000E-03    2.2158        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10008E-03    10.989        .13523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10040E-03    73.042        .47026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    44.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1247        4.4654        .35614E-03   -1.5496    
  16  norm          .10000E-03    4.9071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    28.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .52868        2.4535        .26371E-03   -1.5563    
  19  Prefactor     6.1367        15.262        .81023E-03   -1.5212    
  20  Prefactor     .10000E-03    17.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    70.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5115        .15833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1916        .24956        .35218E-03   -.86863    
  25  Prefactor     .94420        .99731E-01    .15636E-03   -.94613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3711e-08
Minuit parameter uncertainties:
  1  5.57943e-05
  2  7.01806e-05
  3  3.74504e-07
  4  6.15049
  5  4.61288
  6  0.00104235
  7  3.31936e-07
  8  3.06998
  9  19.4949
  10  2.95463e-06
  11  0.000320552
  12  0.00193292
  13  0.0107919
  14  0.00106058
  15  4.46668
  16  3.01497e-06
  17  0.00134278
  18  2.27773
  19  15.2721
  20  0.000290631
  21  0.000292578
  22  0.000347141
  23  1.02696e-06
  24  0.249805
  25  0.0997502
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  5.287e-01  2.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.442e-01  9.975e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.192e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859730/likelihoodResults_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.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) = 7555.40361045
delta logL = 0.0812791876951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7555.40155713
delta logL = 0.0833325039785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62712       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6198       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   7555.402     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62660        1.9768        .15447E-03   -.17075E-04
   2  alpha         2.6189        1.5240        .28238E-01    .17470E-03
   3  Normalizat    1.1843        .24673        .35309E-03   -.30845E-04
   4  Prefactor     .94391        .99077E-01    .15636E-03   -.80576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.626599
  alpha      = 2.61892
  Normalizat = 1.18431
  Prefactor  = 0.943915
 **********
 **   18 **HESSE 
 **********

 FCN=   7555.402     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62660        1.7604        .61786E-05   -1.5550    
   2  alpha         2.6189        1.3784        .56477E-02    .47586E-01
   3  Normalizat    1.1843        .24669        .14124E-04   -.87089    
   4  Prefactor     .94391        .99061E-01    .31272E-04   -.94623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23039e-12
Minuit parameter uncertainties:
  1  1.76053
  2  1.46015
  3  0.246931
  4  0.0990796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859730': 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) = 7555.40155517
delta logL = 0.0833344600978

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  6.266e-01  1.761e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.619e+00  1.460e+00  0.000e+00  5.000e+00 ( 1.000e+00)
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.439e-01  9.908e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.184e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 351.315 39.954

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/859730/cmap_HighResolution_500342401_500601601_4FGL_J2325.2+3957_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-29 17:26:59.309787', job_id='859730', GAL2='0.94', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1632961619.31', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.33e-02', ts2='0.23', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1007' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 859730: <4FGL_J2325.2+3957_daily_bin1007> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin1007> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 17:10:36 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:10:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:10:37 2021
Terminated at Wed Sep 29 17:27:00 2021
Results reported at Wed Sep 29 17:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin1007 351.315 39.9542 500342401 500601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.2+3957 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

