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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin698
RA = 111.39, Dec = 2.2749
tmin = 420249601, tmax = 420508801
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='327710', job_status='RUN', time_executed='2021-08-27 06:00:59.861645', time_epoch_executed='1630069259.86' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327710/ft1_4FGL_J0725.5+0216_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327710/ft1_4FGL_J0725.5+0216_daily_bin698.fits outfile=/scratch/kocevski/327710/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin698.fits ra=111.39 dec=2.2749 rad=12.0 tmin=420249601.0 tmax=420508801.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.00
user 3.16
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.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/327710/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.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 1.08
user 0.31
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/327710/ltcube_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.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/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits
.....................!
real 12.80
user 11.80
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/327710/ltcube_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits outfile=/scratch/kocevski/327710/expmap_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.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/327710/ltcube_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits
.....................!
real 190.92
user 185.83
sys 4.71

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 154 point sources and 2 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 J0725.5+0216 @ 111.39 2.2749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits outfile=/scratch/kocevski/327710/cmap_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.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=111.39 yref=2.2749 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 1.12
user 0.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits outfile=/scratch/kocevski/327710/cmap_HighResolution_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.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=111.39 yref=2.2749 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 1.12
user 0.38
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/327710/Model_4FGL_J0725.5+0216_daily_bin698.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 GAL_V02
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits.....................!
real 174.64
user 172.26
sys 1.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits', '/scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits', expMap='/scratch/kocevski/327710/expmap_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits', expCube='/scratch/kocevski/327710/ltcube_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/327710/Model_4FGL_J0725.5+0216_daily_bin698.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0725.5+0216'

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  8.002e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/327710/ft1_filtered_4FGL_J0725.5+0216_daily_bin698.fits
Spacecraft file(s): /scratch/kocevski/327710/ft2_4FGL_J0725.5+0216_daily_bin698.fits
Exposure map: /scratch/kocevski/327710/expmap_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits
Exposure cube: /scratch/kocevski/327710/ltcube_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/327710/Model_4FGL_J0725.5+0216_daily_bin698.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) = 11432.8477875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6472       1.0000         .10000E-03   10000.    
     2 'norm      '    26.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.620       1.0000         .10000E-03   10000.    
     4 'norm      '    5.3766       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6010       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16375E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.9857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.273       1.0000         .10000E-03   10000.    
    19 'norm      '    10.395       1.0000         .10000E-03   10000.    
    20 'norm      '    .10451E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96770       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0741       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11432.72     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2065 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6471        11.105        .98602E-06   -.84700E-03
   2  norm          26.866        26.196       -.63051E-06   -.35247E-04
   3  Prefactor     54.619        40.770       -.63678E-06   -.42638E-04
   4  norm          5.3756        5.1026        .52359E-06   -.15235E-02
   5  norm          3.7425        2.1738        .20284E-08   -.25543E-03
   6  Prefactor     .10000E-03    38.446       -.59441E-05** at limit **
   7  Prefactor     2.6006        3.4523        .11217E-05   -.22443E-02
   8  Prefactor     .10000E-03    47.358       -.24009E-05** at limit **
   9  Prefactor     .10001E-03    27.369        .10533E-04** at limit **
  10  norm          1.5293        1.5975        .87313E-08   -.31123E-03
  11  Prefactor     .10000E-03    19.270       -.62194E-05** at limit **
  12  norm          .10000E-03    6.4970       -.83833E-07** at limit **
  13  Prefactor     .10000E-03    1.9892        .27946E-07** at limit **
  14  norm          6.9880        13.814        .62153E-06   -.36678E-03
  15  Prefactor     .10000E-03    7.6959        .16108E-05** at limit **
  16  Prefactor     .10000E-03    8.1346       -.18400E-05** at limit **
  17  Prefactor     .10000E-03    9.6189       -.48332E-06** at limit **
  18  norm          13.269        11.704        .11646E-07   -.18339E-04
  19  norm          10.384        19.748       -.44854E-05   -.25204E-03
  20  norm          .10002E-03    2.0506        .68851E-06** at limit **
  21  Normalizat    .96755        .20447        .13756E-06   -.64546E-04
  22  Prefactor     1.0741        .56129E-01   -.11203E-06    .77056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.64707
  norm       = 26.8665
  Prefactor  = 54.619
  norm       = 5.37557
  norm       = 3.74248
  Prefactor  = 0.000100003
  Prefactor  = 2.6006
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.52931
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.98796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2693
  norm       = 10.3837
  norm       = 0.000100022
  Normalizat = 0.967548
  Prefactor  = 1.07414
 **********
 **   18 **HESSE 
 **********

 FCN=   11432.72     FROM HESSE     STATUS=OK           346 CALLS     2411 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6471        11.939        .77821E-03   -1.5192    
   2  norm          26.866        26.242        .77287E-04   -1.4671    
   3  Prefactor     54.619        40.788        .54274E-04   -1.4229    
   4  norm          5.3756        5.3445        .86656E-03   -1.5244    
   5  norm          3.7425        2.1703        .11438E-03   -1.5321    
   6  Prefactor     .10000E-03    38.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6006        4.1176        .12648E-02   -1.5385    
   8  Prefactor     .10000E-03    49.051        .40801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    28.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5293        1.5821        .13224E-03   -1.5461    
  11  Prefactor     .10000E-03    19.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.5014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0155        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.9880        14.040        .75893E-03   -1.5179    
  15  Prefactor     .10000E-03    7.7514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.269        11.723        .10995E-03   -1.4979    
  19  norm          10.384        19.968        .12427E-03   -1.5063    
  20  norm          .10002E-03    11.960        .29488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96755        .21143        .52968E-03   -.94126    
  22  Prefactor     1.0741        .59424E-01    .14043E-03   -.90297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94565e-09
Minuit parameter uncertainties:
  1  11.9429
  2  26.253
  3  40.8091
  4  5.34493
  5  2.1703
  6  0.000713079
  7  4.11808
  8  0.000292759
  9  0.00105095
  10  1.58215
  11  0.000527525
  12  4.42141e-06
  13  2.74386e-08
  14  14.0462
  15  8.49127e-05
  16  9.73203e-05
  17  1.68975e-05
  18  11.725
  19  19.9813
  20  0.00102871
  21  0.211616
  22  0.0594274
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  7.131e-04  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.074e+00  5.943e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.675e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/327710/likelihoodResults_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.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): 102
logL (Free Index) = 11432.7201047
delta logL = -0.000122858689792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11432.719982
delta logL = -2.17951310333e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0865       1.0000          .0000       10.000    
     3 'Normalizat'    .96755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0741       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   11432.72     FROM MIGRAD    STATUS=FAILED        94 CALLS      278 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8028.7        .18142E-02** at limit **
   2  Index         2.0279        5.1807        .50000        .13175E-04
   3  Normalizat    .96755        .14366        .52968E-03   -.93966E-04
   4  Prefactor     1.0741        .40341E-01    .14043E-03    .37401E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11432.72     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      466 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8028.7        .12639E-02** at limit **
   2  Index         2.0279        5.1807        .29754E-06    .13175E-04
   3  Normalizat    .96755        .14366        .87017E-07   -.93966E-04
   4  Prefactor     1.0741        .40341E-01    .48913E-08    .37401E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11432.72     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      500 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    41.607        .36285E-03** at limit **
   2  Index         2.0278        5.9970        .50000        .13172E-04
   3  Normalizat    .96755        .19570        .21187E-04   -.92936E-04
   4  Prefactor     1.0741        .54982E-01    .28086E-04    .37628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.02784
  Normalizat = 0.967547
  Prefactor  = 1.07414
 **********
 **   18 **HESSE 
 **********

 FCN=   11432.72     FROM HESSE     STATUS=OK            29 CALLS      529 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    37.822        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0278        6.0082        .50000       -.63656    
   3  Normalizat    .96755        .19581        .42375E-05   -.94126    
   4  Prefactor     1.0741        .54999E-01    .56173E-05   -.90297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64733e-10
Minuit parameter uncertainties:
  1  0.00101443
  2  4.02785
  3  0.195957
  4  0.0550014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327710': 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) = 11432.7199818
delta logL = -1.68893166119e-08

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  1.014e-03  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.028e+00  4.028e+00  0.000e+00  1.000e+01 (-1.000e+00)
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.074e+00  5.500e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  9.675e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 111.390 2.275

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/327710/cmap_HighResolution_420249601_420508801_4FGL_J0725.5+0216_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-27 06:16:41.012921', job_id='327710', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630070201.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='698' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 327710: <4FGL_J0725.5+0216_daily_bin698> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin698> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 27 06:00:21 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 06:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 06:00:24 2021
Terminated at Fri Aug 27 06:16:41 2021
Results reported at Fri Aug 27 06:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin698 111.39 2.2749 420249601 420508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0725.5+0216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   948.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

