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


Performing analysis on: 4FGL_J1725.0+1152_daily_bin361
RA = 261.271, Dec = 11.8748
tmin = 332899201, tmax = 333158401
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='681956', job_status='RUN', time_executed='2021-09-17 09:20:34.988695', time_epoch_executed='1631895634.99' WHERE source_name='4FGL J1725.0+1152' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681956/ft1_4FGL_J1725.0+1152_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681956/ft2_4FGL_J1725.0+1152_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681956/ft1_4FGL_J1725.0+1152_daily_bin361.fits outfile=/scratch/kocevski/681956/ft1_filteredMKT_4FGL_J1725.0+1152_daily_bin361.fits ra=261.271 dec=11.8748 rad=12.0 tmin=332899201.0 tmax=333158401.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 4.16
user 3.91
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681956/ft1_filtered_4FGL_J1725.0+1152_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/681956/ft2_4FGL_J1725.0+1152_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/681956/ltcube_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.fits outfile=/scratch/kocevski/681956/expmap_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.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/681956/ltcube_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.fits
.....................!
real 192.64
user 187.45
sys 4.87

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/681956/ft1_filtered_4FGL_J1725.0+1152_daily_bin361.fits scfile=/scratch/kocevski/681956/ft2_4FGL_J1725.0+1152_daily_bin361.fits outfile=/scratch/kocevski/681956/cmap_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681956/ft1_filtered_4FGL_J1725.0+1152_daily_bin361.fits scfile=/scratch/kocevski/681956/ft2_4FGL_J1725.0+1152_daily_bin361.fits outfile=/scratch/kocevski/681956/cmap_HighResolution_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.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/681956/ft1_filtered_4FGL_J1725.0+1152_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/681956/ft2_4FGL_J1725.0+1152_daily_bin361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681956/Model_4FGL_J1725.0+1152_daily_bin361.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/681956/ft1_filtered_4FGL_J1725.0+1152_daily_bin361.fits.....................!
real 104.18
user 102.76
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2841       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.731       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    148.90       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59776E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6218       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .58774       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.682       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96122       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=   12208.09     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1983 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.550        7.7581        .19187E-05   -.45608E-04
   2  Prefactor     11.316        8.0647        .63217E-06   -.10363E-03
   3  Prefactor     7.9855        39.066       -.10891E-03    .14601E-04
   4  Prefactor     .10000E-03    77.139        .41542E-04** at limit **
   5  Prefactor     .10000E-03    4.6891       -.15183E-06** at limit **
   6  Prefactor     7.2856        10.087       -.11583E-05   -.29057E-05
   7  norm          .10000E-03    1.9461        .22499E-06** at limit **
   8  Prefactor     13.736        13.342       -.20499E-05    .14139E-03
   9  norm          .10000E-03    4.5427       -.11848E-06** at limit **
  10  Prefactor     148.93        97.812        .18837E-04    .93664E-04
  11  Prefactor     .10103E-03    1.2293       -.63465E-06** at limit **
  12  norm          4.6215        8.5278       -.11117E-04   -.26043E-03
  13  norm          .10000E-03    1.1119       -.20137E-07** at limit **
  14  norm          .10000E-03    9.1232       -.42594E-06** at limit **
  15  norm          .10000E-03    60.895       -.27262E-04** at limit **
  16  norm          .58768        .46704       -.91391E-07   -.21357E-03
  17  Prefactor     19.680        31.728       -.21653E-05   -.13837E-06
  18  Normalizat    1.3760        .28365        .79202E-05    .39076E-04
  19  Prefactor     .96131        .72288E-01   -.51799E-06    .99301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5497
  Prefactor  = 11.3156
  Prefactor  = 7.98553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.28558
  norm       = 0.0001
  Prefactor  = 13.7361
  norm       = 0.0001
  Prefactor  = 148.929
  Prefactor  = 0.000101035
  norm       = 4.62152
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.587681
  Prefactor  = 19.6803
  Normalizat = 1.37605
  Prefactor  = 0.961311
 **********
 **   18 **HESSE 
 **********

 FCN=   12208.09     FROM HESSE     STATUS=OK           276 CALLS     2259 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.550        7.7569        .11788E-03   -1.5028    
   2  Prefactor     11.316        8.0735        .11909E-03   -1.5035    
   3  Prefactor     7.9855        39.272        .14115E-03   -1.5143    
   4  Prefactor     .10000E-03    77.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.7370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2856        10.067        .14861E-03   -1.5168    
   7  norm          .10000E-03    6.3634        .29638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.736        13.364        .10809E-03   -1.4967    
   9  norm          .10000E-03    4.5522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     148.93        97.780        .33027E-04   -1.3261    
  11  Prefactor     .10103E-03    3.7009        .36982E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6215        8.5429        .18722E-03   -1.5278    
  13  norm          .10000E-03    1.1196        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.2480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    60.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .58768        .47088        .65245E-04   -1.5555    
  17  Prefactor     19.680        31.731        .90280E-04   -1.4820    
  18  Normalizat    1.3760        .32489        .48657E-03   -.81324    
  19  Prefactor     .96131        .83652E-01    .15286E-03   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42849e-09
Minuit parameter uncertainties:
  1  7.75757
  2  8.07426
  3  35.455
  4  0.000254993
  5  5.71927e-05
  6  10.0692
  7  7.76962e-05
  8  13.367
  9  4.61012e-07
  10  97.8869
  11  0.00391375
  12  8.54515
  13  9.77987e-07
  14  9.00769e-05
  15  3.54548e-05
  16  0.470885
  17  31.7577
  18  0.325375
  19  0.0836634
Done.

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

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  1.000e-04  4.610e-07  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:  9.613e-01  8.366e-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.376e+00  3.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/681956/likelihoodResults_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.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) = 12208.0958806
delta logL = -0.00104696548442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12208.0948336
delta logL = 1.64855009643e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7729       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96131       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12208.09     FROM MIGRAD    STATUS=FAILED       157 CALLS      299 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52837E-01    5.1179        .18142E-01   -.34048E-02
   2  alpha         3.7684        4.1215        .50000        .72099E-04
   3  Normalizat    1.3637        .40350E-01    .48657E-03    .65049E-04
   4  Prefactor     .96273        .10552E-01    .15286E-03    .18197E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12208.09     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      366 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52837E-01    5.1179        .10920E-03   -.34048E-02
   2  alpha         3.7684        4.1215        .45411E-02    .72099E-04
   3  Normalizat    1.3637        .40350E-01    .21092E-03    .65049E-04
   4  Prefactor     .96273        .10552E-01    .29567E-04    .18197E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12208.09     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      413 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52837E-01    1.8924         .0000       -.57064E-03
   2  alpha         3.7684        4.2707         .0000        .28916E-03
   3  Normalizat    1.3637        .31727         .0000        .65189E-04
   4  Prefactor     .96273        .83324E-01     .0000        .18221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0528374
  alpha      = 3.76837
  Normalizat = 1.36367
  Prefactor  = 0.962733
 **********
 **   18 **HESSE 
 **********

 FCN=   12208.09     FROM HESSE     STATUS=OK            27 CALLS      440 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52837E-01    2.2360        .36259E-04   -1.5754    
   2  alpha         3.7684        4.3254        .11067E-01    .53210    
   3  Normalizat    1.3637        .31793        .38925E-05   -.81685    
   4  Prefactor     .96273        .83269E-01    .61145E-05   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95167e-10
Minuit parameter uncertainties:
  1  0.686816
  2  3.86702
  3  0.318389
  4  0.0832803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681956': 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) = 12208.085678
delta logL = 0.00915565634932

Extracting fit parameters...

4FGL J1725.0+1152
   Spectrum: LogParabola
268         norm:  5.284e-02  6.868e-01  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  3.768e+00  3.867e+00  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:  9.627e-01  8.328e-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.364e+00  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 261.271 11.875

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/681956/cmap_HighResolution_332899201_333158401_4FGL_J1725.0+1152_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-05', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2021-09-17 09:35:43.897248', job_id='681956', GAL2='0.96', fit_tolerance='1e-08', EG2='1.36', EG='1.38', time_epoch_completed='1631896543.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.16e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='361' AND source_name='4FGL J1725.0+1152' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 09:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 681956: <4FGL_J1725.0+1152_daily_bin361> in cluster <slac> Done

Job <4FGL_J1725.0+1152_daily_bin361> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 09:20:20 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 09:20:21 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:20:21 2021
Terminated at Fri Sep 17 09:35:44 2021
Results reported at Fri Sep 17 09:35:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1725.0+1152_daily_bin361 261.271 11.8748 332899201 333158401 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 :                                   906.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

