/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 2 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 = 7435
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1725.0+1152_daily_bin313
RA = 261.271, Dec = 11.8748
tmin = 320457601, tmax = 320716801
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='680830', job_status='RUN', time_executed='2021-09-17 09:15:53.459737', time_epoch_executed='1631895353.46' WHERE source_name='4FGL J1725.0+1152' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680830/ft1_4FGL_J1725.0+1152_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680830/ft2_4FGL_J1725.0+1152_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680830/ft1_4FGL_J1725.0+1152_daily_bin313.fits outfile=/scratch/kocevski/680830/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin313.fits ra=261.271 dec=11.8748 rad=12.0 tmin=320457601.0 tmax=320716801.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.78
user 3.55
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680830/ft1_filtered_4FGL_J1725.0+1152_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/680830/ft2_4FGL_J1725.0+1152_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/680830/ltcube_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.fits outfile=/scratch/kocevski/680830/expmap_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.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/680830/ltcube_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.fits
.....................!
real 189.61
user 185.12
sys 4.15

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/680830/ft1_filtered_4FGL_J1725.0+1152_daily_bin313.fits scfile=/scratch/kocevski/680830/ft2_4FGL_J1725.0+1152_daily_bin313.fits outfile=/scratch/kocevski/680830/cmap_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680830/ft1_filtered_4FGL_J1725.0+1152_daily_bin313.fits scfile=/scratch/kocevski/680830/ft2_4FGL_J1725.0+1152_daily_bin313.fits outfile=/scratch/kocevski/680830/cmap_HighResolution_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.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/680830/ft1_filtered_4FGL_J1725.0+1152_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/680830/ft2_4FGL_J1725.0+1152_daily_bin313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680830/Model_4FGL_J1725.0+1152_daily_bin313.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/680830/ft1_filtered_4FGL_J1725.0+1152_daily_bin313.fits.....................!
real 113.57
user 112.19
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15425E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24629       1.0000         .10000E-03   10000.    
     7 'norm      '    .38550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4362       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .84527       1.0000         .10000E-03   10000.    
    13 'norm      '    .54644       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3684       1.0000         .10000E-03   10000.    
    15 'norm      '    .14427E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1016       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.

 FCN=   13744.94     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2024 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0375       -.21046E-08** at limit **
   2  Prefactor     .10000E-03    2.9248        .45832E-08** at limit **
   3  Prefactor     41.964        34.589        .39705E-05    .11951E-04
   4  Prefactor     24.206        55.212        .14899E-04    .70954E-05
   5  Prefactor     .10000E-03    3.5972       -.16027E-06** at limit **
   6  Prefactor     .14879        5.4019       -.49817E-06    .71824E-04
   7  norm          .38527        1.1159        .58296E-07    .35239E-05
   8  Prefactor     .10000E-03    8.0901        .38572E-07** at limit **
   9  norm          6.4524        7.9837        .20603E-07   -.10162E-04
  10  Prefactor     60.752        53.744        .20438E-05    .44249E-06
  11  Prefactor     .10000E-03    1.0045        .29503E-07** at limit **
  12  norm          .84301        .55681       -.10139E-07   -.15986E-03
  13  norm          .54627        1.4477        .23027E-07    .17966E-04
  14  norm          2.3677        4.4667        .52600E-07   -.28988E-04
  15  norm          .10000E-03    369.58        .23908E-05** at limit **
  16  norm          5.1433        1.1828        .22080E-07    .39995E-04
  17  Prefactor     .10000E-03    20.252        .25273E-06** at limit **
  18  Normalizat    1.0287        .27440       -.24581E-05    .43203E-04
  19  Prefactor     1.1016        .73616E-01    .14013E-06    .10391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9636
  Prefactor  = 24.2064
  Prefactor  = 0.0001
  Prefactor  = 0.14879
  norm       = 0.38527
  Prefactor  = 0.0001
  norm       = 6.45236
  Prefactor  = 60.7515
  Prefactor  = 0.0001
  norm       = 0.843015
  norm       = 0.546265
  norm       = 2.36765
  norm       = 0.0001
  norm       = 5.14328
  Prefactor  = 0.0001
  Normalizat = 1.02873
  Prefactor  = 1.10157
 **********
 **   18 **HESSE 
 **********

 FCN=   13744.94     FROM HESSE     STATUS=OK           286 CALLS     2310 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.340        .38305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.964        34.609        .61855E-04   -1.4411    
   4  Prefactor     24.206        55.239        .81463E-04   -1.4724    
   5  Prefactor     .10000E-03    3.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14879        10.633        .88580E-01   -1.5631    
   7  norm          .38527        1.2941        .20352E-02   -1.5584    
   8  Prefactor     .10000E-03    8.1564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4524        7.8371        .79100E-03   -1.5200    
  10  Prefactor     60.752        53.785        .51482E-04   -1.4148    
  11  Prefactor     .10000E-03    6.4165        .22005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .84301        5.1728        .25215E-02   -1.5524    
  13  norm          .54627        1.6277        .22332E-02   -1.5560    
  14  norm          2.3677        4.4652        .13312E-02   -1.5400    
  15  norm          .10000E-03    381.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1433        1.1835        .58395E-04   -1.5254    
  17  Prefactor     .10000E-03    20.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0287        .30093        .55697E-03   -.92074    
  19  Prefactor     1.1016        .83600E-01    .15115E-03   -.89416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31532e-08
Minuit parameter uncertainties:
  1  5.09192e-06
  2  3.78078e-05
  3  34.6258
  4  55.3557
  5  1.48666e-05
  6  2.51522
  7  1.29419
  8  2.95866e-06
  9  7.83838
  10  53.8284
  11  1.5416e-06
  12  4.17678
  13  1.62779
  14  4.46585
  15  0.000187361
  16  1.18349
  17  6.49529e-06
  18  0.301433
  19  0.0836101
Done.

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

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  6.452e+00  7.838e+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.102e+00  8.361e-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.029e+00  3.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 261.271 11.875
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 2.32e-05

TS (Fixed Index): 1.24
Ra Dec: 261.271 11.875
Photon Flux Upper Limit: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680830/likelihoodResults_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.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) = 13744.5977948
delta logL = 0.34106933843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13744.4697616
delta logL = 0.469102491639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4623       1.0000         .10000E-03   10000.    
     2 'alpha     '    .77390       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1045       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=   13744.47     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      211 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4623        2.9641        .65156E-02    .11456E-02
   2  alpha         .77390        .58132        .50000       -.96262E-04
   3  Normalizat    1.0266        .25830        .12563        .28667E-03
   4  Prefactor     1.1045        .72690E-01    .37416E-01    .89674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46232
  alpha      = 0.773901
  Normalizat = 1.02658
  Prefactor  = 1.10455
 **********
 **   18 **HESSE 
 **********

 FCN=   13744.47     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4623        4.5963        .20905E-03   -1.5394    
   2  alpha         .77390        .81325        .36210E-01   -.76210    
   3  Normalizat    1.0266        .28933        .55743E-03   -.92145    
   4  Prefactor     1.1045        .81803E-01    .15097E-03   -.89321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25784e-09
Minuit parameter uncertainties:
  1  4.59696
  2  0.843497
  3  0.289771
  4  0.0818127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680830': 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) = 13744.4697616
delta logL = 0.469102492561

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  2.462e+00  4.597e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  7.739e-01  8.435e-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.105e+00  8.181e-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.027e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 261.271 11.875
Photon Index (Free Index): 0.77 +/- 0.84
Photon Flux (Free Index): 3.37e-09 +/- 4.48e-09
Energy Flux (Free Index): 5.93e-05 +/- 8.84e-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/680830/cmap_HighResolution_320457601_320716801_4FGL_J1725.0+1152_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-05', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='5.93e-05', photon_flux_error='1.77e-08', dlogl='4.69e-01', energy_flux='1.91e-05', photon_flux2='3.37e-09', job_status='DONE', time_completed='2021-09-17 09:32:09.838131', photon_index_error2='0.84', photon_index2='0.77', ts='1.24', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='6.37e-08', energy_flux_error2='8.84e-05', EG='1.03', time_epoch_completed='1631896329.84', return_code='0', job_id='680830', GAL2='1.10', EG2='1.03', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='4.48e-09', ts2='2.18', photon_index='1.77' WHERE bin_id='313' AND source_name='4FGL J1725.0+1152' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 680830: <4FGL_J1725.0+1152_daily_bin313> in cluster <slac> Done

Job <4FGL_J1725.0+1152_daily_bin313> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 09:15:42 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:15:44 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:15:44 2021
Terminated at Fri Sep 17 09:32:10 2021
Results reported at Fri Sep 17 09:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.0+1152_daily_bin313 261.271 11.8748 320457601 320716801 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 :                                   964.00 sec.
    Max Memory :                                 1233 MB
    Average Memory :                             351.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

