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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin1178
RA = 111.39, Dec = 2.2749
tmin = 544665601, tmax = 544924801
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='330922', job_status='RUN', time_executed='2021-08-27 06:14:32.218626', time_epoch_executed='1630070072.22' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330922/ft1_4FGL_J0725.5+0216_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330922/ft1_4FGL_J0725.5+0216_daily_bin1178.fits outfile=/scratch/kocevski/330922/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin1178.fits ra=111.39 dec=2.2749 rad=12.0 tmin=544665601.0 tmax=544924801.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.62
user 3.78
sys 0.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330922/ft1_filtered_4FGL_J0725.5+0216_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/330922/ltcube_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.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/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits
.....................!
real 12.32
user 11.29
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330922/ft1_filtered_4FGL_J0725.5+0216_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/330922/ltcube_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.fits outfile=/scratch/kocevski/330922/expmap_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.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/330922/ltcube_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.fits
.....................!
real 193.18
user 187.09
sys 5.53

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/330922/ft1_filtered_4FGL_J0725.5+0216_daily_bin1178.fits scfile=/scratch/kocevski/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits outfile=/scratch/kocevski/330922/cmap_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.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.05
user 0.36
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330922/ft1_filtered_4FGL_J0725.5+0216_daily_bin1178.fits scfile=/scratch/kocevski/330922/ft2_4FGL_J0725.5+0216_daily_bin1178.fits outfile=/scratch/kocevski/330922/cmap_HighResolution_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.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.09
user 0.38
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.206       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46300E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9368       1.0000         .10000E-03   10000.    
    12 'norm      '    15.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    32.739       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .22048       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99306       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=   1794.143     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     3008 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.240        .18142E-02** at limit **
   2  norm          .10002E-03    173.87        .18142E-02** at limit **
   3  Prefactor     .10002E-03    356.63        .18142E-02** at limit **
   4  norm          19.208        23.303        .91391E-04   -.12866E-03
   5  norm          .10000E-03    3.9448        .82163E-03** at limit **
   6  Prefactor     .10000E-03    95.280        .18142E-02** at limit **
   7  Prefactor     .10000E-03    96.429        .18142E-02** at limit **
   8  Prefactor     .10000E-03    422.83        .57713E-02** at limit **
   9  Prefactor     .10001E-03    122.02        .18142E-02** at limit **
  10  norm          18.979        11.154        .91942E-04   -.25988E-03
  11  Prefactor     3.7661        666.36        .20332E-02   -.70734E-05
  12  norm          15.073        40.375        .10318E-03   -.51316E-04
  13  Prefactor     .10000E-03    94.454        .18142E-02** at limit **
  14  norm          .10000E-03    98.659        .18142E-02** at limit **
  15  Prefactor     .10000E-03    90.784        .18142E-02** at limit **
  16  Prefactor     4.0100        55.420        .20173E-03   -.61286E-04
  17  Prefactor     .10000E-03    49.338        .18142E-02** at limit **
  18  norm          32.740        32.267        .70031E-04   -.14837E-03
  19  norm          .10000E-03    45.597        .18142E-02** at limit **
  20  norm          .10000E-03    5.7610        .99252E-03** at limit **
  21  Normalizat    .22039        .74215        .11642E-01   -.13206E-04
  22  Prefactor     .99303        .15203        .13422E-03    .81738E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.000100023
  norm       = 19.2082
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 18.9791
  Prefactor  = 3.76608
  norm       = 15.0731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.00998
  Prefactor  = 0.000100001
  norm       = 32.74
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.220393
  Prefactor  = 0.993032
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.143     FROM HESSE     STATUS=OK           322 CALLS     3330 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    173.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    356.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.208        23.299        .36556E-05   -1.4831    
   5  norm          .10000E-03    3.9449        .16433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    95.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    96.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    431.92        .23085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    122.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.979        11.107        .36777E-05   -1.4836    
  11  Prefactor     3.7661        655.90        .81327E-04   -1.5320    
  12  norm          15.073        40.270        .41273E-05   -1.4931    
  13  Prefactor     .10000E-03    94.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    98.659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0100        54.459        .80693E-05   -1.5307    
  17  Prefactor     .10000E-03    49.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          32.740        32.229        .14006E-04   -1.4563    
  19  norm          .10000E-03    45.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.7611        .19850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .22039        .71822        .46567E-03   -1.2795    
  22  Prefactor     .99303        .14895        .53688E-05   -.92962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95372e-10
Minuit parameter uncertainties:
  1  2.32851e-06
  2  0.00338029
  3  0.0057201
  4  23.3095
  5  1.42683e-05
  6  0.000188536
  7  0.000575435
  8  0.00152131
  9  0.0016324
  10  11.1086
  11  100.54
  12  40.3425
  13  0.000350145
  14  9.18398e-05
  15  0.000475202
  16  29.5879
  17  0.000529603
  18  32.2465
  19  0.000248051
  20  1.8976e-05
  21  0.752227
  22  0.149015
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  1.885e-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:  9.930e-01  1.490e-01  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:  2.204e-01  7.522e-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: 3.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330922/likelihoodResults_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.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) = 1794.14351889
delta logL = -4.98059339407e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1794.14346934
delta logL = -2.55016175288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10939E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2526       1.0000          .0000       10.000    
     3 'Normalizat'    .22039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99303       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=   1794.143     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      289 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    399.78        .18142E-02** at limit **
   2  Index         2.1883        8.7968        .50000        .38590E-05
   3  Normalizat    .22040        .43149E-01    .11637E-01    .62408E-05
   4  Prefactor     .99303        .99918E-02    .13422E-03    .34834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101907
  Index      = 2.18832
  Normalizat = 0.220397
  Prefactor  = 0.993031
 **********
 **   18 **HESSE 
 **********

 FCN=   1794.143     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10191E-03    1650.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1883        6.9735        .50000       -.59721    
   3  Normalizat    .22040        .91316E-01    .46547E-03   -1.2795    
   4  Prefactor     .99303        .21155E-01    .53688E-05   -.92962    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63381e-09
Minuit parameter uncertainties:
  1  0.11557
  2  842.766
  3  0.0913777
  4  0.021155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330922': 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) = 1794.14346922
delta logL = -1.37490587804e-07

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.019e-04  1.156e-01  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.188e+00  8.428e+02  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.930e-01  2.115e-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:  2.204e-01  9.138e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/330922/cmap_HighResolution_544665601_544924801_4FGL_J0725.5+0216_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', job_status='DONE', photon_flux_upper_limit='3.81e-07', time_completed='2021-08-27 06:21:41.805600', job_id='330922', GAL2='0.99', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1630070501.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1178' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:21:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 330922: <4FGL_J0725.5+0216_daily_bin1178> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin1178> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 06:10:21 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 06:10:22 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:10:22 2021
Terminated at Fri Aug 27 06:21:42 2021
Results reported at Fri Aug 27 06:21:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin1178 111.39 2.2749 544665601 544924801 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 :                                   434.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             215.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            681 sec.

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

