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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin830
RA = 351.315, Dec = 39.9542
tmin = 454464001, tmax = 454723201
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='858337', job_status='RUN', time_executed='2021-09-29 17:06:07.172942', time_epoch_executed='1632960367.17' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858337/ft1_4FGL_J2325.2+3957_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858337/ft1_4FGL_J2325.2+3957_daily_bin830.fits outfile=/scratch/kocevski/858337/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin830.fits ra=351.315 dec=39.9542 rad=12.0 tmin=454464001.0 tmax=454723201.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.59
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.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/858337/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin830.fits evtable="EVENTS" outfile="/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.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.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/858337/ltcube_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.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/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits
.....................!
real 13.18
user 12.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/858337/ltcube_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits outfile=/scratch/kocevski/858337/expmap_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.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/858337/ltcube_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits
.....................!
real 190.94
user 185.01
sys 5.49

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/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits outfile=/scratch/kocevski/858337/cmap_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits outfile=/scratch/kocevski/858337/cmap_HighResolution_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858337/Model_4FGL_J2325.2+3957_daily_bin830.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/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits.....................!
real 110.91
user 109.44
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits', '/scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits', expMap='/scratch/kocevski/858337/expmap_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits', expCube='/scratch/kocevski/858337/ltcube_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/858337/Model_4FGL_J2325.2+3957_daily_bin830.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/858337/ft1_filtered_4FGL_J2325.2+3957_daily_bin830.fits
Spacecraft file(s): /scratch/kocevski/858337/ft2_4FGL_J2325.2+3957_daily_bin830.fits
Exposure map: /scratch/kocevski/858337/expmap_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits
Exposure cube: /scratch/kocevski/858337/ltcube_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/858337/Model_4FGL_J2325.2+3957_daily_bin830.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) = 9662.96283403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22329E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6014       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.848       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1879       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13833E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7819       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9809       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99772       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95647       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9662.959     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2959 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.320        26.046         .0000        .62050E-03
   2  Prefactor     .10000E-03    7.8678         .0000    ** at limit **
   3  norm          .10000E-03    25.683         .0000    ** at limit **
   4  Prefactor     .10000E-03    6.0133         .0000    ** at limit **
   5  Prefactor     1.1023        3.3618         .0000        .17117E-02
   6  Prefactor     .11076E-03    354.02         .0000    ** at limit **
   7  Prefactor     3.6019        5.9637         .0000        .46506E-03
   8  norm          7.6549        4.4226         .0000        .30442E-02
   9  Prefactor     .10000E-03    15.568         .0000    ** at limit **
  10  Prefactor     4.7946        5.2739         .0000        .24965E-03
  11  Prefactor     22.850        19.400         .0000        .50555E-04
  12  norm          2.3280        1.3219         .0000        .40945E-03
  13  Prefactor     22.020        11.974         .0000        .46849E-03
  14  Prefactor     .10000E-03    9.2743         .0000    ** at limit **
  15  norm          7.1834        4.9936         .0000        .19797E-03
  16  norm          2.1755        8.6053         .0000        .46297E-03
  17  Prefactor     .10002E-03    10.555         .0000    ** at limit **
  18  norm          1.5509        2.0454         .0000        .63053E-03
  19  Prefactor     3.7822        10.010         .0000        .12719E-03
  20  Prefactor     .10000E-03    11.776         .0000    ** at limit **
  21  Prefactor     .10001E-03    57.660         .0000    ** at limit **
  22  Prefactor     14.618        56.586         .0000        .27740E-02
  23  Prefactor     1.9893        8.3957         .0000        .16995E-01
  24  Normalizat    .99745        .20570         .0000        .36780E-04
  25  Prefactor     .95647        .78774E-01     .0000        .19241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3204
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10225
  Prefactor  = 0.000110758
  Prefactor  = 3.60188
  norm       = 7.65494
  Prefactor  = 0.0001
  Prefactor  = 4.79458
  Prefactor  = 22.8495
  norm       = 2.32802
  Prefactor  = 22.0195
  Prefactor  = 0.0001
  norm       = 7.18343
  norm       = 2.17548
  Prefactor  = 0.000100022
  norm       = 1.55094
  Prefactor  = 3.78223
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 14.6177
  Prefactor  = 1.98935
  Normalizat = 0.997448
  Prefactor  = 0.956473
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.959     FROM HESSE     STATUS=OK           431 CALLS     3390 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.320        26.039        .10235E-03   -1.4925    
   2  Prefactor     .10000E-03    7.8810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    26.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1023        3.3427        .30125E-03   -1.5498    
   6  Prefactor     .11076E-03    360.65        .20127E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6019        5.9193        .21292E-03   -1.5328    
   8  norm          7.6549        4.4007        .69040E-03   -1.5155    
   9  Prefactor     .10000E-03    15.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7946        5.2608        .18375E-03   -1.5270    
  11  Prefactor     22.850        19.397        .83798E-04   -1.4752    
  12  norm          2.3280        1.3168        .81560E-04   -1.5403    
  13  Prefactor     22.020        11.962        .85365E-04   -1.4769    
  14  Prefactor     .10000E-03    9.2836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1834        4.6144        .14962E-03   -1.5172    
  16  norm          2.1755        8.5924        .27926E-03   -1.5413    
  17  Prefactor     .10002E-03    68.358        .55685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5509        2.0225        .15547E-03   -1.5459    
  19  Prefactor     3.7822        9.9919        .20758E-03   -1.5319    
  20  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    58.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.618        54.253        .10457E-03   -1.4943    
  23  Prefactor     1.9893        7.8040        .14724E-02   -1.5426    
  24  Normalizat    .99745        .23106        .38200E-03   -.93116    
  25  Prefactor     .95647        .90636E-01    .15641E-03   -.94195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9171e-07
Minuit parameter uncertainties:
  1  26.0585
  2  4.89788e-07
  3  3.48539e-05
  4  1.12548e-06
  5  3.34323
  6  0.12534
  7  5.92027
  8  4.40092
  9  1.99059e-05
  10  5.26129
  11  19.4022
  12  1.31686
  13  11.9633
  14  1.28685e-05
  15  4.61462
  16  8.59725
  17  0.00245749
  18  2.02255
  19  9.9963
  20  2.01544e-06
  21  0.00185937
  22  54.4367
  23  7.80798
  24  0.231294
  25  0.0906504
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.551e+00  2.023e+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.565e-01  9.065e-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:  9.974e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/858337/likelihoodResults_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.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) = 9662.86565761
delta logL = 0.0938004216569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9662.85824931
delta logL = 0.101208727094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3748       1.0000          .0000       5.0000    
     3 'Normalizat'    .99135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95704       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.

 FCN=   9662.858     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3202        39.624        .95654E-02    .71874E-03
   2  alpha         2.3751        3.5738        .41217        .50456E-04
   3  Normalizat    .99143        .59395E-01    .86498E-01    .31241E-04
   4  Prefactor     .95704        .22180E-01    .45728E-01   -.32634E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32022
  alpha      = 2.37506
  Normalizat = 0.991428
  Prefactor  = 0.957035
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.858     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3202        1.9779        .13096E-03   -1.5478    
   2  alpha         2.3751        .89689        .20255E-01   -.49998E-01
   3  Normalizat    .99143        .22162        .38297E-03   -.93318    
   4  Prefactor     .95704        .89617E-01    .15635E-03   -.94176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49953e-09
Minuit parameter uncertainties:
  1  1.97804
  2  0.91739
  3  0.221822
  4  0.089631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858337': 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) = 9662.85824878
delta logL = 0.101209248865

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.320e+00  1.978e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.375e+00  9.174e-01  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.570e-01  8.963e-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:  9.914e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 351.315 39.954
Photon Index (Free Index): 2.38 +/- 0.92
Photon Flux (Free Index): 2.37e-08 +/- 3.12e-08
Energy Flux (Free Index): 8.89e-06 +/- 1.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/858337/cmap_HighResolution_454464001_454723201_4FGL_J2325.2+3957_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', comment='SUCCESS', energy_flux2='8.89e-06', dlogl='1.01e-01', photon_flux2='2.37e-08', job_status='DONE', time_completed='2021-09-29 17:22:10.629145', photon_index_error2='0.92', photon_index2='2.38', ts='0.99', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.10e-08', energy_flux_error2='1.13e-05', EG='1.00', time_epoch_completed='1632961330.63', return_code='0', job_id='858337', GAL2='0.96', EG2='0.99', return_code2='0', photon_flux_error2='3.12e-08', ts2='1.19', photon_index='1.99' WHERE bin_id='830' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:22:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 858337: <4FGL_J2325.2+3957_daily_bin830> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin830> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:05:49 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:05:50 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:05:50 2021
Terminated at Wed Sep 29 17:22:11 2021
Results reported at Wed Sep 29 17:22:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin830 351.315 39.9542 454464001 454723201 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 :                                   953.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

