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


Performing analysis on: 4FGL_J1725.0+1152_daily_bin1035
RA = 261.271, Dec = 11.8748
tmin = 507600001, tmax = 507859201
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='685849', job_status='RUN', time_executed='2021-09-17 09:37:56.871968', time_epoch_executed='1631896676.87' WHERE source_name='4FGL J1725.0+1152' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685849/ft1_4FGL_J1725.0+1152_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685849/ft1_4FGL_J1725.0+1152_daily_bin1035.fits outfile=/scratch/kocevski/685849/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1035.fits ra=261.271 dec=11.8748 rad=12.0 tmin=507600001.0 tmax=507859201.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.58
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.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/685849/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/685849/ltcube_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.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/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits
.....................!
real 11.98
user 11.64
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/685849/ltcube_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits outfile=/scratch/kocevski/685849/expmap_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.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/685849/ltcube_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits
.....................!
real 190.08
user 185.45
sys 4.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/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits outfile=/scratch/kocevski/685849/cmap_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits outfile=/scratch/kocevski/685849/cmap_HighResolution_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685849/Model_4FGL_J1725.0+1152_daily_bin1035.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/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits.....................!
real 102.39
user 100.30
sys 1.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits', '/scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits', expMap='/scratch/kocevski/685849/expmap_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits', expCube='/scratch/kocevski/685849/ltcube_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/685849/Model_4FGL_J1725.0+1152_daily_bin1035.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/685849/ft1_filtered_4FGL_J1725.0+1152_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/685849/ft2_4FGL_J1725.0+1152_daily_bin1035.fits
Exposure map: /scratch/kocevski/685849/expmap_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits
Exposure cube: /scratch/kocevski/685849/ltcube_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/685849/Model_4FGL_J1725.0+1152_daily_bin1035.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) = 12143.0612427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73668E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30374E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    86.012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6384       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1065       1.0000         .10000E-03   10000.    
    13 'norm      '    .13111E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.5583       1.0000         .10000E-03   10000.    
    15 'norm      '    .11043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11292       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3543       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87745       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=   12143.05     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     2294 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.633        .39154E-02** at limit **
   2  Prefactor     .10000E-03    6.1244        .36285E-03** at limit **
   3  Prefactor     .10000E-03    79.540        .21385E-02** at limit **
   4  Prefactor     27.644        44.966        .76230E-04    .18195E-04
   5  Prefactor     .10000E-03    2.6741        .17524E-02** at limit **
   6  Prefactor     .10000E-03    19.245        .18142E-02** at limit **
   7  norm          1.8909        2.1102        .16533E-03    .57349E-04
   8  Prefactor     .10000E-03    7.4507        .18142E-02** at limit **
   9  norm          24.976        12.639        .80161E-04    .24110E-04
  10  Prefactor     85.763        87.738        .43318E-04   -.83984E-05
  11  Prefactor     1.6387        2.9854        .23095E-03   -.14768E-04
  12  norm          2.1223        9.3721        .28429E-03   -.22954E-04
  13  norm          .10001E-03    9.3049        .30917E-02** at limit **
  14  norm          6.5766        11.646        .15671E-03    .91411E-05
  15  norm          .10000E-03    26.911        .18142E-02** at limit **
  16  norm          .32079        .80794        .11261E-02    .65853E-03
  17  Prefactor     .10000E-03    23.495        .17866    ** at limit **
  18  Normalizat    1.3547        .28562        .44845E-03   -.56076E-04
  19  Prefactor     .87747        .78022E-01    .14678E-03   -.86162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89087
  Prefactor  = 0.0001
  norm       = 24.9756
  Prefactor  = 85.7626
  Prefactor  = 1.63869
  norm       = 2.12226
  norm       = 0.000100007
  norm       = 6.57655
  norm       = 0.0001
  norm       = 0.320789
  Prefactor  = 0.000100003
  Normalizat = 1.35471
  Prefactor  = 0.877468
 **********
 **   18 **HESSE 
 **********

 FCN=   12143.05     FROM HESSE     STATUS=OK           260 CALLS     2554 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.999        .78309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1247        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    79.608        .42769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.644        44.959        .30492E-05   -1.4656    
   5  Prefactor     .10000E-03    2.6748        .35048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8909        2.1101        .66132E-05   -1.5433    
   8  Prefactor     .10000E-03    7.4521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.976        12.637        .32064E-05   -1.4708    
  10  Prefactor     85.763        87.711        .86635E-05   -1.3853    
  11  Prefactor     1.6387        2.9840        .92379E-05   -1.5452    
  12  norm          2.1223        9.3630        .11371E-04   -1.5417    
  13  norm          .10001E-03    9.4575        .61835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5766        11.642        .62682E-05   -1.5195    
  15  norm          .10000E-03    26.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .32079        .80629        .45045E-04   -1.5595    
  17  Prefactor     .10000E-03    23.582        .17806       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3547        .28572        .17938E-04   -.81948    
  19  Prefactor     .87747        .77993E-01    .29355E-04   -.96933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90615e-10
Minuit parameter uncertainties:
  1  0.000341332
  2  6.43729e-06
  3  4.55512e-05
  4  45.0142
  5  1.19157e-05
  6  2.14915e-05
  7  2.11019
  8  2.98122e-07
  9  12.6379
  10  87.8441
  11  2.98429
  12  8.91743
  13  0.000526681
  14  11.6464
  15  3.27911e-06
  16  0.806317
  17  0.000569071
  18  0.286053
  19  0.0780026
Done.

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

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  2.498e+01  1.264e+01  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:  8.775e-01  7.800e-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.355e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 261.271 11.875
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 7.40e-05 +/- 3.74e-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) = 12141.9289382
delta logL = 1.12511558735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12141.9274386
delta logL = 1.12661516062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.547       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3719       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88252       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=   12141.93     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      290 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.549        11.543        .95612E-04   -.40190E-04
   2  alpha         2.3721        .41273        .80520E-02    .53540E-03
   3  Normalizat    1.2931        .28305        .45664E-03    .27187E-03
   4  Prefactor     .88244        .75849E-01    .14623E-03    .13369E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5492
  alpha      = 2.3721
  Normalizat = 1.29308
  Prefactor  = 0.882439
 **********
 **   18 **HESSE 
 **********

 FCN=   12141.93     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.549        10.801        .38245E-05   -1.4870    
   2  alpha         2.3721        .38607        .16104E-02   -.51181E-01
   3  Normalizat    1.2931        .28258        .18265E-04   -.83773    
   4  Prefactor     .88244        .75845E-01    .29247E-04   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44189e-10
Minuit parameter uncertainties:
  1  10.8021
  2  0.387625
  3  0.282919
  4  0.075854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685849': 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) = 12141.9274373
delta logL = 1.12661646376

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  1.755e+01  1.080e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.372e+00  3.876e-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:  8.824e-01  7.585e-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.293e+00  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.83
Ra Dec: 261.271 11.875
Photon Index (Free Index): 2.37 +/- 0.39
Photon Flux (Free Index): 1.31e-07 +/- 7.35e-08
Energy Flux (Free Index): 5.10e-05 +/- 2.14e-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/685849/cmap_HighResolution_507600001_507859201_4FGL_J1725.0+1152_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='5.10e-05', photon_flux_error='2.85e-08', dlogl='1.13e+00', energy_flux='7.40e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-17 09:52:14.367811', photon_index_error2='0.39', photon_index2='2.37', ts='12.58', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.35', time_epoch_completed='1631897534.37', return_code='0', job_id='685849', GAL2='0.88', EG2='1.29', return_code2='0', energy_flux_error='3.74e-05', photon_flux_error2='7.35e-08', ts2='14.83', photon_index='1.77' WHERE bin_id='1035' AND source_name='4FGL J1725.0+1152' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 685849: <4FGL_J1725.0+1152_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1725.0+1152_daily_bin1035> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 09:35:36 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:35:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 09:35:37 2021
Terminated at Fri Sep 17 09:52:15 2021
Results reported at Fri Sep 17 09:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.0+1152_daily_bin1035 261.271 11.8748 507600001 507859201 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 :                                   855.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

