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


Performing analysis on: 4FGL_J1725.0+1152_daily_bin1432
RA = 261.271, Dec = 11.8748
tmin = 610502401, tmax = 610761601
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='687392', job_status='RUN', time_executed='2021-09-17 09:42:41.488685', time_epoch_executed='1631896961.49' WHERE source_name='4FGL J1725.0+1152' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/687392

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/687392/ft1_4FGL_J1725.0+1152_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/687392/ft1_4FGL_J1725.0+1152_daily_bin1432.fits outfile=/scratch/kocevski/687392/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1432.fits ra=261.271 dec=11.8748 rad=12.0 tmin=610502401.0 tmax=610761601.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.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.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/687392/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/687392/ft1_filtered_4FGL_J1725.0+1152_daily_bin1432.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/687392/ft1_filtered_4FGL_J1725.0+1152_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/687392/ltcube_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.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/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits
.....................!
real 11.94
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/687392/ft1_filtered_4FGL_J1725.0+1152_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/687392/ltcube_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.fits outfile=/scratch/kocevski/687392/expmap_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.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/687392/ltcube_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.fits
.....................!
real 190.34
user 185.07
sys 4.91

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/687392/ft1_filtered_4FGL_J1725.0+1152_daily_bin1432.fits scfile=/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits outfile=/scratch/kocevski/687392/cmap_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/687392/ft1_filtered_4FGL_J1725.0+1152_daily_bin1432.fits scfile=/scratch/kocevski/687392/ft2_4FGL_J1725.0+1152_daily_bin1432.fits outfile=/scratch/kocevski/687392/cmap_HighResolution_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7458       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30691E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49087       1.0000         .10000E-03   10000.    
    12 'norm      '    .98125E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .27507E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15171E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78732       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1038       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=   10456.88     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     1986 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8664        .36285E-03** at limit **
   2  Prefactor     7.7496        7.5040        .14408E-03    .18369E-03
   3  Prefactor     .10000E-03    15.487        .18142E-02** at limit **
   4  Prefactor     .10002E-03    39.104        .20418    ** at limit **
   5  Prefactor     .10000E-03    4.4150        .18142E-02** at limit **
   6  Prefactor     .10000E-03    9.5982        .18142E-02** at limit **
   7  norm          .10000E-03    2.3103        .22234E-02** at limit **
   8  Prefactor     .10000E-03    5.3652        .18142E-02** at limit **
   9  norm          12.225        9.9826        .11460E-03    .14460E-03
  10  Prefactor     .10000E-03    23.190        .18142E-02** at limit **
  11  Prefactor     .48419        4.5247        .21261E-02    .11015E-02
  12  norm          .10000E-03    7.0949        .75675E-01** at limit **
  13  norm          .10000E-03    1.9041        .13656E-02** at limit **
  14  norm          .10004E-03    52.553        .42249E-02** at limit **
  15  norm          .10000E-03    74.488        .18142E-02** at limit **
  16  norm          1.3463        .91434        .77714E-04    .60417E-03
  17  Prefactor     .10000E-03    57.395        .18142E-02** at limit **
  18  Normalizat    .78745        .30081        .54862E-03    .31871E-03
  19  Prefactor     1.1039        .88293E-01    .13926E-03    .70388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.74958
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.2247
  Prefactor  = 0.0001
  Prefactor  = 0.484187
  norm       = 0.000100003
  norm       = 0.0001
  norm       = 0.000100041
  norm       = 0.0001
  norm       = 1.3463
  Prefactor  = 0.0001
  Normalizat = 0.787453
  Prefactor  = 1.1039
 **********
 **   18 **HESSE 
 **********

 FCN=   10456.88     FROM HESSE     STATUS=OK           270 CALLS     2256 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8667        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7496        7.5018        .57633E-05   -1.5151    
   3  Prefactor     .10000E-03    15.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    39.706        .20150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3180        .44469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.225        9.9348        .22920E-04   -1.5009    
  10  Prefactor     .10000E-03    23.191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .48419        4.4552        .85045E-04   -1.5569    
  12  norm          .10000E-03    6.7285        .78752E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9049        .27311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10004E-03    54.460        .16900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    74.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3463        .91431        .31086E-05   -1.5476    
  17  Prefactor     .10000E-03    57.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78745        .30033        .21945E-04   -1.0054    
  19  Prefactor     1.1039        .88290E-01    .27853E-04   -.89342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7765e-09
Minuit parameter uncertainties:
  1  3.98945e-05
  2  7.5027
  3  1.1984e-05
  4  0.00195723
  5  1.92311e-05
  6  1.45067e-05
  7  9.24222e-05
  8  6.54815e-06
  9  9.93619
  10  3.09979e-05
  11  2.93743
  12  0.000299126
  13  3.55444e-06
  14  0.00297385
  15  0.000317641
  16  0.914319
  17  0.000245164
  18  0.300964
  19  0.0883019
Done.

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

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  1.222e+01  9.936e+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.104e+00  8.830e-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:  7.875e-01  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.62
Ra Dec: 261.271 11.875
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 2.94e-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) = 10454.6152783
delta logL = 2.26427318728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10453.8300753
delta logL = 3.04947616695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2349       1.0000         .10000E-03   10000.    
     2 'alpha     '    .25137       1.0000          .0000       5.0000    
     3 'Normalizat'    .78778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1078       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=   10453.83     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      228 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2267        2.1420        .68742E-02   -.13599E-02
   2  alpha         .25000        .43751        .50000        .10670E-03
   3  Normalizat    .78777        .26373        .12358        .66105E-04
   4  Prefactor     1.1079        .78536E-01    .37297E-01    .45403E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22672
  alpha      = 0.250002
  Normalizat = 0.787767
  Prefactor  = 1.10786
 **********
 **   18 **HESSE 
 **********

 FCN=   10453.83     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2267        3.5947        .10576E-03   -1.5410    
   2  alpha         .25000        .57763        .30433E-01   -1.1198    
   3  Normalizat    .78777        .28951        .54823E-03   -1.0052    
   4  Prefactor     1.1079        .86609E-01    .13902E-03   -.89216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6182e-10
Minuit parameter uncertainties:
  1  3.59506
  2  0.608812
  3  0.290082
  4  0.0866198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/687392': 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) = 10453.8300725
delta logL = 3.04947889772

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  2.227e+00  3.595e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.500e-01  6.088e-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.108e+00  8.662e-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:  7.878e-01  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.72
Ra Dec: 261.271 11.875
Photon Index (Free Index): 0.25 +/- 0.61
Photon Flux (Free Index): 7.32e-09 +/- 5.26e-09
Energy Flux (Free Index): 2.60e-04 +/- 2.22e-04

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/687392/cmap_HighResolution_610502401_610761601_4FGL_J1725.0+1152_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='2.60e-04', photon_flux_error='2.24e-08', dlogl='3.05e+00', energy_flux='3.62e-05', photon_flux2='7.32e-09', job_status='DONE', time_completed='2021-09-17 09:55:24.974157', photon_index_error2='0.61', photon_index2='0.25', ts='8.62', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.22e-04', EG='0.79', time_epoch_completed='1631897724.97', return_code='0', job_id='687392', GAL2='1.11', EG2='0.79', return_code2='0', energy_flux_error='2.94e-05', photon_flux_error2='5.26e-09', ts2='14.72', photon_index='1.77' WHERE bin_id='1432' AND source_name='4FGL J1725.0+1152' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 687392: <4FGL_J1725.0+1152_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1725.0+1152_daily_bin1432> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 09:40:30 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:40:32 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:40:32 2021
Terminated at Fri Sep 17 09:55:25 2021
Results reported at Fri Sep 17 09:55:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.0+1152_daily_bin1432 261.271 11.8748 610502401 610761601 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

