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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin943
RA = 111.39, Dec = 2.2749
tmin = 483753601, tmax = 484012801
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='329457', job_status='RUN', time_executed='2021-08-27 06:08:02.086278', time_epoch_executed='1630069682.09' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/329457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/329457/ft1_4FGL_J0725.5+0216_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/329457/ft1_4FGL_J0725.5+0216_daily_bin943.fits outfile=/scratch/kocevski/329457/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin943.fits ra=111.39 dec=2.2749 rad=12.0 tmin=483753601.0 tmax=484012801.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.29
user 4.01
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.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/329457/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.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.46
user 0.26
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/329457/ltcube_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.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/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits
.....................!
real 9.10
user 8.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/329457/ltcube_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits outfile=/scratch/kocevski/329457/expmap_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.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/329457/ltcube_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits
.....................!
real 144.22
user 140.02
sys 3.86

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/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits outfile=/scratch/kocevski/329457/cmap_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.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 0.54
user 0.29
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits outfile=/scratch/kocevski/329457/cmap_HighResolution_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.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 0.56
user 0.29
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/329457/Model_4FGL_J0725.5+0216_daily_bin943.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/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits.....................!
real 121.95
user 120.05
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits', '/scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits', expMap='/scratch/kocevski/329457/expmap_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits', expCube='/scratch/kocevski/329457/ltcube_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/329457/Model_4FGL_J0725.5+0216_daily_bin943.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/329457/ft1_filtered_4FGL_J0725.5+0216_daily_bin943.fits
Spacecraft file(s): /scratch/kocevski/329457/ft2_4FGL_J0725.5+0216_daily_bin943.fits
Exposure map: /scratch/kocevski/329457/expmap_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits
Exposure cube: /scratch/kocevski/329457/ltcube_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/329457/Model_4FGL_J0725.5+0216_daily_bin943.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) = 10152.9378782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2657       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8918       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7507       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3783       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.167       1.0000         .10000E-03   10000.    
    12 'norm      '    39.447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.105       1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19297E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .74200E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    21.536       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86401       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99479       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=   10152.89     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2069 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2646        10.628       -.73873E-07   -.64001E-04
   2  norm          6.5007        12.499       -.19104E-06   -.28898E-04
   3  Prefactor     .10000E-03    23.221        .65411E-06** at limit **
   4  norm          2.8916        6.7342       -.11785E-05   -.45308E-03
   5  norm          3.7508        2.5282        .20623E-08   -.45220E-03
   6  Prefactor     43.074        44.974       -.41032E-06    .11804E-05
   7  Prefactor     8.3786        7.5256        .47912E-06   -.73211E-06
   8  Prefactor     17.603        17.231        .12117E-07   -.87411E-05
   9  Prefactor     .10000E-03    21.471       -.59464E-06** at limit **
  10  norm          3.5781        2.1525        .93116E-08   -.25058E-03
  11  Prefactor     16.168        22.106        .19864E-05   -.27132E-05
  12  norm          39.449        23.651        .65276E-06    .20999E-05
  13  Prefactor     10.106        6.2777       -.52447E-06   -.73660E-04
  14  norm          .10000E-03    14.376       -.24438E-06** at limit **
  15  Prefactor     15.968        14.625        .60594E-05   -.99268E-05
  16  Prefactor     12.919        11.370        .72658E-06   -.37505E-04
  17  Prefactor     .10000E-03    159.24        .47058E-05** at limit **
  18  norm          .10000E-03    4.3955        .37747E-07** at limit **
  19  norm          .10001E-03    16.505       -.28430E-06** at limit **
  20  norm          21.528        7.4663        .71072E-07   -.18418E-04
  21  Normalizat    .86357        .23394       -.24406E-05   -.17039E-04
  22  Prefactor     .99485        .58772E-01    .32353E-06   -.41413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.26465
  norm       = 6.50066
  Prefactor  = 0.0001
  norm       = 2.89157
  norm       = 3.75082
  Prefactor  = 43.0742
  Prefactor  = 8.37864
  Prefactor  = 17.6029
  Prefactor  = 0.0001
  norm       = 3.57806
  Prefactor  = 16.1682
  norm       = 39.4487
  Prefactor  = 10.1062
  norm       = 0.0001
  Prefactor  = 15.9682
  Prefactor  = 12.9189
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00010001
  norm       = 21.528
  Normalizat = 0.863573
  Prefactor  = 0.994847
 **********
 **   18 **HESSE 
 **********

 FCN=   10152.89     FROM HESSE     STATUS=OK           358 CALLS     2427 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2646        10.683        .13166E-03   -1.5099    
   2  norm          6.5007        12.492        .15740E-03   -1.5198    
   3  Prefactor     .10000E-03    23.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8916        6.8666        .23897E-03   -1.5368    
   5  norm          3.7508        2.5229        .12324E-03   -1.5321    
   6  Prefactor     43.074        44.945        .61085E-04   -1.4394    
   7  Prefactor     8.3786        7.5247        .13850E-03   -1.5129    
   8  Prefactor     17.603        17.226        .95457E-04   -1.4869    
   9  Prefactor     .10000E-03    21.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5781        2.1510        .10897E-03   -1.5330    
  11  Prefactor     16.168        22.085        .99612E-04   -1.4904    
  12  norm          39.449        23.642        .63818E-04   -1.4451    
  13  Prefactor     10.106        6.2980        .12605E-03   -1.5072    
  14  norm          .10000E-03    14.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.968        14.444        .10023E-03   -1.4909    
  16  Prefactor     12.919        11.356        .11145E-03   -1.4989    
  17  Prefactor     .10000E-03    165.57        .40521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    17.355        .13548       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.528        7.4659        .86311E-04   -1.4780    
  21  Normalizat    .86357        .23828        .56898E-03   -.97752    
  22  Prefactor     .99485        .60865E-01    .14057E-03   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91565e-10
Minuit parameter uncertainties:
  1  10.6854
  2  12.4966
  3  6.2698e-06
  4  6.86849
  5  2.52297
  6  44.9803
  7  7.52558
  8  17.2309
  9  1.09265e-05
  10  2.15106
  11  22.0966
  12  23.648
  13  6.29842
  14  9.86304e-05
  15  14.4475
  16  11.3574
  17  0.000185221
  18  1.38633e-06
  19  0.000835746
  20  7.46622
  21  0.23857
  22  0.0608694
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  4.307e+01  4.498e+01  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:  9.948e-01  6.087e-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:  8.636e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 111.390 2.275
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 2.14e-05

TS (Fixed Index): 2.64
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/329457/likelihoodResults_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.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) = 10152.8351469
delta logL = 0.0545208117674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10152.8344437
delta logL = 0.0552239529297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.616       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7558       1.0000          .0000       10.000    
     3 'Normalizat'    .87079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99476       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.

 FCN=   10152.83     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      300 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.759        54.146        .56931E-04   -.27605E-03
   2  Index         1.7604        .77900        .10331E-01   -.20083E-03
   3  Normalizat    .87048        .21282        .56710E-03    .24084E-03
   4  Prefactor     .99472        .56439E-01    .14058E-03   -.49676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.7588
  Index      = 1.76038
  Normalizat = 0.870484
  Prefactor  = 0.994725
 **********
 **   18 **HESSE 
 **********

 FCN=   10152.83     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.759        53.733        .11386E-04   -1.4296    
   2  Index         1.7604        .77306        .41324E-03   -.70486    
   3  Normalizat    .87048        .21277        .22684E-04   -.97505    
   4  Prefactor     .99472        .56443E-01    .28117E-04   -.92906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66395e-09
Minuit parameter uncertainties:
  1  53.7854
  2  0.778474
  3  0.212974
  4  0.0564468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/329457': 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) = 10152.834418
delta logL = 0.0552496422424

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  4.976e+01  5.379e+01  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  1.760e+00  7.785e-01  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:  9.947e-01  5.645e-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:  8.705e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 111.390 2.275
Photon Index (Free Index): 1.76 +/- 0.78
Photon Flux (Free Index): 2.06e-08 +/- 3.54e-08
Energy Flux (Free Index): 2.78e-05 +/- 4.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/329457/cmap_HighResolution_483753601_484012801_4FGL_J0725.5+0216_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.78e-05', photon_flux_error='3.27e-08', dlogl='5.52e-02', energy_flux='2.05e-05', photon_flux2='2.06e-08', job_status='DONE', time_completed='2021-08-27 06:19:07.237711', photon_index_error2='0.78', photon_index2='1.76', ts='2.64', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='4.14e-05', EG='0.86', time_epoch_completed='1630070347.24', return_code='0', job_id='329457', GAL2='0.99', EG2='0.87', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='3.54e-08', ts2='2.75', photon_index='2.02' WHERE bin_id='943' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 329457: <4FGL_J0725.5+0216_daily_bin943> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin943> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 06:05:28 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 06:05:30 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:05:30 2021
Terminated at Fri Aug 27 06:19:07 2021
Results reported at Fri Aug 27 06:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin943 111.39 2.2749 483753601 484012801 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 :                                   659.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

