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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin582
RA = 111.39, Dec = 2.2749
tmin = 390182401, tmax = 390441601
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='326295', job_status='RUN', time_executed='2021-08-27 05:59:12.102027', time_epoch_executed='1630069152.1' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326295

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326295/ft1_4FGL_J0725.5+0216_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326295/ft1_4FGL_J0725.5+0216_daily_bin582.fits outfile=/scratch/kocevski/326295/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin582.fits ra=111.39 dec=2.2749 rad=12.0 tmin=390182401.0 tmax=390441601.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 5.97
user 3.88
sys 2.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.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/326295/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin582.fits evtable="EVENTS" outfile="/scratch/kocevski/326295/ft1_filtered_4FGL_J0725.5+0216_daily_bin582.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 2.33
user 0.34
sys 1.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326295/ft1_filtered_4FGL_J0725.5+0216_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/326295/ltcube_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.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/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits
.....................!
real 13.94
user 11.48
sys 2.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326295/ft1_filtered_4FGL_J0725.5+0216_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/326295/ltcube_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.fits outfile=/scratch/kocevski/326295/expmap_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.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/326295/ltcube_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.fits
.....................!
real 193.37
user 186.04
sys 6.68

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/326295/ft1_filtered_4FGL_J0725.5+0216_daily_bin582.fits scfile=/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits outfile=/scratch/kocevski/326295/cmap_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.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 2.46
user 0.37
sys 1.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326295/ft1_filtered_4FGL_J0725.5+0216_daily_bin582.fits scfile=/scratch/kocevski/326295/ft2_4FGL_J0725.5+0216_daily_bin582.fits outfile=/scratch/kocevski/326295/cmap_HighResolution_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.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 2.66
user 0.40
sys 1.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.592       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16685E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0117       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11605E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .32993E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5522       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7748       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1127       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85960       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=   6907.945     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2056 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.588        13.801       -.20590E-07   -.15401E-04
   2  norm          .10000E-03    8.1983       -.57183E-07** at limit **
   3  Prefactor     .10000E-03    43.536       -.79071E-06** at limit **
   4  norm          .57113E-01    3.9738        .40308E-06   -.17081E-03
   5  norm          2.9221        3.1530        .19620E-06    .85297E-04
   6  Prefactor     .10000E-03    90.037       -.54141E-05** at limit **
   7  Prefactor     9.0090        11.986        .16557E-06    .83806E-05
   8  Prefactor     .10000E-03    20.627        .12566E-06** at limit **
   9  Prefactor     .10000E-03    16.423        .45090E-06** at limit **
  10  norm          4.1245        2.8267        .50023E-07    .21713E-04
  11  Prefactor     .10000E-03    16.720       -.76931E-06** at limit **
  12  norm          .10000E-03    15.232       -.21815E-06** at limit **
  13  Prefactor     .10000E-03    11.079       -.57067E-07** at limit **
  14  norm          .10000E-03    61.922        .23446E-06** at limit **
  15  Prefactor     9.0743        20.638        .29406E-06   -.96113E-06
  16  Prefactor     .10000E-03    35.386        .63945E-06** at limit **
  17  Prefactor     .10000E-03    73.543        .56002E-05** at limit **
  18  norm          2.5546        21.529        .66245E-05   -.76443E-05
  19  norm          .10000E-03    15.319        .48250E-06** at limit **
  20  norm          6.7680        8.0917       -.94729E-06   -.59671E-04
  21  Normalizat    1.1127        .27225       -.15508E-05   -.40714E-04
  22  Prefactor     .85952        .64444E-01    .24323E-06   -.36183E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.5882
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0571132
  norm       = 2.92206
  Prefactor  = 0.0001
  Prefactor  = 9.00899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.0743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55463
  norm       = 0.0001
  norm       = 6.76805
  Normalizat = 1.11275
  Prefactor  = 0.859519
 **********
 **   18 **HESSE 
 **********

 FCN=   6907.945     FROM HESSE     STATUS=OK           348 CALLS     2404 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.588        13.875        .86198E-04   -1.4778    
   2  norm          .10000E-03    8.2016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .57113E-01    8.1793        .53292E-01   -1.5660    
   5  norm          2.9221        3.1449        .14211E-03   -1.5366    
   6  Prefactor     .10000E-03    89.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0090        11.980        .13351E-03   -1.5108    
   8  Prefactor     .10000E-03    20.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1245        2.8263        .10993E-03   -1.5302    
  11  Prefactor     .10000E-03    16.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    62.577        .21349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0743        20.639        .13281E-03   -1.5105    
  16  Prefactor     .10000E-03    36.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    74.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5546        21.578        .12779E-02   -1.5388    
  19  norm          .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7680        8.1498        .15415E-03   -1.5188    
  21  Normalizat    1.1127        .28407        .47649E-03   -.89344    
  22  Prefactor     .85952        .67909E-01    .13662E-03   -.97570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61893e-10
Minuit parameter uncertainties:
  1  13.877
  2  7.48974e-07
  3  2.12497e-06
  4  1.36595
  5  3.14513
  6  0.000121512
  7  11.9834
  8  1.30389e-05
  9  6.34493e-06
  10  2.82638
  11  5.71782e-06
  12  8.24155e-08
  13  4.02684e-06
  14  6.07814e-05
  15  20.6554
  16  3.02428e-05
  17  7.25468e-05
  18  14.856
  19  1.3747e-05
  20  8.15111
  21  0.284461
  22  0.0679159
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  1.215e-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:  8.595e-01  6.792e-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:  1.113e+00  2.845e-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: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326295/likelihoodResults_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.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) = 6907.94541731
delta logL = -5.29093531441e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6907.94536449
delta logL = -8.29604687169e-08

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     '    1.9806       1.0000          .0000       10.000    
     3 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85952       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.

 FCN=   6907.945     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      251 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1587.9        .90712E-02** at limit **
   2  Index         2.0541        8.9696        .50000       -.91792E-05
   3  Normalizat    1.1127        .34492E-01    .10748        .10234E-03
   4  Prefactor     .85952        .88684E-02    .30916E-01    .51437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.05412
  Normalizat = 1.11275
  Prefactor  = 0.859519
 **********
 **   18 **HESSE 
 **********

 FCN=   6907.945     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6930.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0541        5.7543        .50000       -.63004    
   3  Normalizat    1.1127        .57984E-01    .47650E-03   -.89344    
   4  Prefactor     .85952        .14961E-01    .13662E-03   -.97570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1325e-08
Minuit parameter uncertainties:
  1  0.00911886
  2  27.2803
  3  0.0579871
  4  0.0149615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326295': 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): 102
logL (Free Index) = 6907.94536434
delta logL = 6.7763721745e-08

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  9.119e-03  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.054e+00  2.728e+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:  8.595e-01  1.496e-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:  1.113e+00  5.799e-02  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/326295/cmap_HighResolution_390182401_390441601_4FGL_J0725.5+0216_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-08-27 06:11:01.778242', job_id='326295', GAL2='0.86', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630069861.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='582' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 326295: <4FGL_J0725.5+0216_daily_bin582> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin582> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 05:55:36 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 05:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 05:55:45 2021
Terminated at Fri Aug 27 06:11:02 2021
Results reported at Fri Aug 27 06:11:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin582 111.39 2.2749 390182401 390441601 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 :                                   735.00 sec.
    Max Memory :                                 1120 MB
    Average Memory :                             282.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            926 sec.

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

