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


Performing analysis on: 4FGL_J1725.0+1152_daily_bin1600
RA = 261.271, Dec = 11.8748
tmin = 654048001, tmax = 654307201
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='261944', job_status='RUN', time_executed='2021-09-26 00:33:09.898888', time_epoch_executed='1632641589.9' WHERE source_name='4FGL J1725.0+1152' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261944/ft1_4FGL_J1725.0+1152_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261944/ft1_4FGL_J1725.0+1152_daily_bin1600.fits outfile=/scratch/kocevski/261944/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1600.fits ra=261.271 dec=11.8748 rad=12.0 tmin=654048001.0 tmax=654307201.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.73
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.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/261944/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/261944/ltcube_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.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/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits
.....................!
real 14.71
user 14.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/261944/ltcube_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits outfile=/scratch/kocevski/261944/expmap_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.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/261944/ltcube_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits
.....................!
real 193.51
user 186.73
sys 5.16

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 J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 179 point sources and 1 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 J1725.0+1152 @ 261.271 11.8748

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits outfile=/scratch/kocevski/261944/cmap_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.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=261.271 yref=11.8748 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits outfile=/scratch/kocevski/261944/cmap_HighResolution_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.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=261.271 yref=11.8748 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/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261944/Model_4FGL_J1725.0+1152_daily_bin1600.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits.....................!
real 112.55
user 110.55
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits', '/scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits', expMap='/scratch/kocevski/261944/expmap_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits', expCube='/scratch/kocevski/261944/ltcube_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261944/Model_4FGL_J1725.0+1152_daily_bin1600.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1725.0+1152'

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  8.675e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.766e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  5.873e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.148e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261944/ft1_filtered_4FGL_J1725.0+1152_daily_bin1600.fits
Spacecraft file(s): /scratch/kocevski/261944/ft2_4FGL_J1725.0+1152_daily_bin1600.fits
Exposure map: /scratch/kocevski/261944/expmap_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits
Exposure cube: /scratch/kocevski/261944/ltcube_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261944/Model_4FGL_J1725.0+1152_daily_bin1600.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) = 13195.4185639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.5327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18177E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0682       1.0000         .10000E-03   10000.    
    12 'norm      '    .52512       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .41181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2819       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13195.37     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1649 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1322        .90712E-02** at limit **
   2  Prefactor     1.5353        6.0028        .86167E-02    .11348E-02
   3  Prefactor     2.7419        129.30        .61452E-02    .10683E-03
   4  Prefactor     .10000E-03    48.976        .90712E-02** at limit **
   5  Prefactor     .10000E-03    4.2481        .90712E-02** at limit **
   6  Prefactor     .10000E-03    7.7702        .90712E-02** at limit **
   7  norm          .10000E-03    .71550        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.6420        .90712E-02** at limit **
   9  norm          11.291        9.1402        .29804E-02   -.16792E-03
  10  Prefactor     .10000E-03    129.24        .90712E-02** at limit **
  11  Prefactor     1.0692        3.0461        .11771E-01    .25632E-02
  12  norm          .49970        4.0123        .86087E-01    .91081E-03
  13  norm          .10000E-03    .99345        .90712E-02** at limit **
  14  norm          .10000E-03    3.6153        .90712E-02** at limit **
  15  norm          .10000E-03    29.531        .90712E-02** at limit **
  16  norm          .41193        .39439        .10905E-01   -.70619E-03
  17  Prefactor     .10000E-03    15.435        .90712E-02** at limit **
  18  Normalizat    1.2818        .25527        .10913        .60571E-04
  19  Prefactor     1.0158        .66801E-01    .42585E-01    .80594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.53533
  Prefactor  = 2.7419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2906
  Prefactor  = 0.0001
  Prefactor  = 1.06925
  norm       = 0.499703
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.411929
  Prefactor  = 0.0001
  Normalizat = 1.28184
  Prefactor  = 1.01579
 **********
 **   18 **HESSE 
 **********

 FCN=   13195.37     FROM HESSE     STATUS=OK           266 CALLS     1915 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1337        .11936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5353        5.9960        .34467E-03   -1.5460    
   3  Prefactor     2.7419        130.25        .24581E-03   -1.5377    
   4  Prefactor     .10000E-03    49.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .71795        .94880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.291        8.9691        .11922E-03   -1.5036    
  10  Prefactor     .10000E-03    130.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0692        2.9851        .29343E-03   -1.5501    
  12  norm          .49970        19.830        .43988E-02   -1.5567    
  13  norm          .10000E-03    .99943        .11180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    29.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .41193        .40840        .68458E-03   -1.5580    
  17  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2818        .29519        .48376E-03   -.84110    
  19  Prefactor     1.0158        .78873E-01    .14676E-03   -.92205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46634e-10
Minuit parameter uncertainties:
  1  9.1193e-07
  2  5.99839
  3  37.8828
  4  0.000152173
  5  8.99624e-08
  6  1.1275e-05
  7  1.40686e-06
  8  4.094e-06
  9  8.97013
  10  0.000185705
  11  2.98553
  12  6.29733
  13  1.62344e-06
  14  5.09612e-07
  15  5.14946e-05
  16  0.408399
  17  4.17233e-06
  18  0.295579
  19  0.0788819
Done.

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

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  1.129e+01  8.970e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.766e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  5.873e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.148e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.016e+00  7.888e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.282e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 261.271 11.875
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 2.66e-05

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) = 13195.3668207
delta logL = 0.0039418479937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13195.3667082
delta logL = 0.00405436702567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.319       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8374       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   13195.37     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      255 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.323        8.3603        .11908E-03    .34832E-03
   2  alpha         1.8382        .77639        .18063E-01    .30253E-04
   3  Normalizat    1.2800        .28162        .48403E-03   -.12923E-03
   4  Prefactor     1.0157        .77588E-01    .14676E-03   -.62865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3231
  alpha      = 1.83824
  Normalizat = 1.28001
  Prefactor  = 1.01567
 **********
 **   18 **HESSE 
 **********

 FCN=   13195.37     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.323        8.3240        .23816E-04   -1.5035    
   2  alpha         1.8382        .77326        .72253E-03   -.26790    
   3  Normalizat    1.2800        .28169        .19361E-04   -.84165    
   4  Prefactor     1.0157        .77640E-01    .29352E-04   -.92209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38939e-10
Minuit parameter uncertainties:
  1  8.32484
  2  0.787169
  3  0.282024
  4  0.0776482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261944': 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) = 13195.3667074
delta logL = 0.0040551647653

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  1.132e+01  8.325e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.838e+00  7.872e-01  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  5.873e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.148e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.016e+00  7.765e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.280e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.72
Ra Dec: 261.271 11.875
Photon Index (Free Index): 1.84 +/- 0.79
Photon Flux (Free Index): 2.89e-08 +/- 4.41e-08
Energy Flux (Free Index): 3.15e-05 +/- 3.06e-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/261944/cmap_HighResolution_654048001_654307201_4FGL_J1725.0+1152_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='3.15e-05', photon_flux_error='2.02e-08', dlogl='4.06e-03', energy_flux='3.34e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-26 00:46:15.500396', photon_index_error2='0.79', photon_index2='1.84', ts='8.71', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.28', time_epoch_completed='1632642375.5', return_code='0', job_id='261944', GAL2='1.02', EG2='1.28', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='4.41e-08', ts2='8.72', photon_index='1.77' WHERE bin_id='1600' AND source_name='4FGL J1725.0+1152' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 261944: <4FGL_J1725.0+1152_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1725.0+1152_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 00:30:17 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:30:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:30:46 2021
Terminated at Sun Sep 26 00:46:17 2021
Results reported at Sun Sep 26 00:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.0+1152_daily_bin1600 261.271 11.8748 654048001 654307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1725.0+1152 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            960 sec.

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

