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


Performing analysis on: 4FGL_J0725.5+0216_daily_bin1387
RA = 111.39, Dec = 2.2749
tmin = 598838401, tmax = 599097601
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='331232', job_status='RUN', time_executed='2021-08-27 06:13:29.667739', time_epoch_executed='1630070009.67' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331232/ft1_4FGL_J0725.5+0216_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331232/ft1_4FGL_J0725.5+0216_daily_bin1387.fits outfile=/scratch/kocevski/331232/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin1387.fits ra=111.39 dec=2.2749 rad=12.0 tmin=598838401.0 tmax=599097601.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 3.13
user 2.65
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.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/331232/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/331232/ft1_filtered_4FGL_J0725.5+0216_daily_bin1387.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.71
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331232/ft1_filtered_4FGL_J0725.5+0216_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/331232/ltcube_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.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/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits
.....................!
real 13.08
user 12.44
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331232/ft1_filtered_4FGL_J0725.5+0216_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/331232/ltcube_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.fits outfile=/scratch/kocevski/331232/expmap_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.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/331232/ltcube_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.fits
.....................!
real 191.71
user 185.90
sys 5.30

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/331232/ft1_filtered_4FGL_J0725.5+0216_daily_bin1387.fits scfile=/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits outfile=/scratch/kocevski/331232/cmap_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.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.76
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331232/ft1_filtered_4FGL_J0725.5+0216_daily_bin1387.fits scfile=/scratch/kocevski/331232/ft2_4FGL_J0725.5+0216_daily_bin1387.fits outfile=/scratch/kocevski/331232/cmap_HighResolution_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.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.77
user 0.37
sys 0.37

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.468       1.0000         .10000E-03   10000.    
     2 'norm      '    30.752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4108       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    316.51       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44915E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    56.890       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    85.229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    42.072       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .44334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85887       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=   1653.355     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2691 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.463        41.488       -.25760E-05    .34240E-04
   2  norm          30.782        314.46        .24825E-05    .97738E-05
   3  Prefactor     .10000E-03    296.39       -.26311E-05** at limit **
   4  norm          4.4138        23.185       -.57913E-05    .12216E-04
   5  norm          .10000E-03    4.4351       -.91121E-06** at limit **
   6  Prefactor     316.59        339.60       -.21170E-05    .26796E-05
   7  Prefactor     .10000E-03    16.253       -.13913E-05** at limit **
   8  Prefactor     .10000E-03    22.402        .10935E-06** at limit **
   9  Prefactor     .10000E-03    461.86       -.55496E-05** at limit **
  10  norm          22.957        11.197        .21163E-06    .82066E-04
  11  Prefactor     .10000E-03    46.104        .24810E-06** at limit **
  12  norm          56.894        48.655       -.62919E-06    .18632E-04
  13  Prefactor     .10000E-03    32.201        .68544E-06** at limit **
  14  norm          85.227        70.064        .93432E-07    .30312E-05
  15  Prefactor     .10000E-03    43.629        .59632E-06** at limit **
  16  Prefactor     .10000E-03    15.346       -.59235E-07** at limit **
  17  Prefactor     .10000E-03    64.839       -.35901E-06** at limit **
  18  norm          .10000E-03    375.73       -.11353E-04** at limit **
  19  norm          .10000E-03    41.506       -.51045E-06** at limit **
  20  norm          42.073        21.332        .43705E-06    .92126E-06
  21  Normalizat    .44339        .59466       -.10137E-04   -.98702E-05
  22  Prefactor     .85884        .15356        .31856E-05    .61302E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.463
  norm       = 30.7825
  Prefactor  = 0.000100001
  norm       = 4.41381
  norm       = 0.0001
  Prefactor  = 316.593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.9573
  Prefactor  = 0.0001
  norm       = 56.8937
  Prefactor  = 0.0001
  norm       = 85.227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 42.0728
  Normalizat = 0.443391
  Prefactor  = 0.85884
 **********
 **   18 **HESSE 
 **********

 FCN=   1653.355     FROM HESSE     STATUS=OK           340 CALLS     3031 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.463        41.397        .93198E-04   -1.4848    
   2  norm          30.782        314.47        .72252E-04   -1.4598    
   3  Prefactor     .10000E-03    296.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4138        22.810        .19176E-03   -1.5288    
   5  norm          .10000E-03    4.4383        .83653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     316.59        338.84        .11424E-03   -1.2130    
   7  Prefactor     .10000E-03    16.260        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    463.35        .21210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.957        11.115        .83596E-04   -1.4749    
  11  Prefactor     .10000E-03    46.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          56.894        48.453        .53186E-04   -1.4198    
  13  Prefactor     .10000E-03    32.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          85.227        69.667        .21757E-03   -1.3859    
  15  Prefactor     .10000E-03    43.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.359        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    363.67        .51725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    41.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          42.073        20.999        .61803E-04   -1.4410    
  21  Normalizat    .44339        .54171        .74336E-03   -1.1512    
  22  Prefactor     .85884        .15184        .14661E-03   -.97595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55685e-11
Minuit parameter uncertainties:
  1  41.4615
  2  198.133
  3  0.0012076
  4  20.0796
  5  2.4654e-06
  6  340.989
  7  4.55341e-06
  8  8.24156e-06
  9  0.00018595
  10  11.1163
  11  6.97361e-05
  12  48.4865
  13  6.33124e-06
  14  69.734
  15  1.8317e-05
  16  1.52297e-06
  17  3.66263e-06
  18  0.0004349
  19  5.30422e-05
  20  21.0028
  21  0.548318
  22  0.15191
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  3.166e+02  3.410e+02  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.588e-01  1.519e-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:  4.434e-01  5.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 111.390 2.275
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.30e-07 +/- 2.48e-07
Energy Flux (Fixed Index): 1.51e-04 +/- 1.62e-04

TS (Fixed Index): 1.31
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 8.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331232/likelihoodResults_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.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) = 1653.31775834
delta logL = 0.0369091367081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1653.31270566
delta logL = 0.0419618169838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    403.91       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8506       1.0000          .0000       10.000    
     3 'Normalizat'    .44720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85853       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=   1653.313     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     403.93        499.19        .10159E-03   -.69960E-04
   2  Index         1.8505        .58724        .44722E-02   -.14867E-03
   3  Normalizat    .44762        .48247        .74033E-03    .10803E-04
   4  Prefactor     .85850        .13359        .14661E-03    .73678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 403.928
  Index      = 1.85051
  Normalizat = 0.44762
  Prefactor  = 0.858504
 **********
 **   18 **HESSE 
 **********

 FCN=   1653.313     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     403.93        488.99        .20318E-04   -1.1661    
   2  Index         1.8505        .57507        .17889E-03   -.68142    
   3  Normalizat    .44762        .48238        .29613E-04   -1.1491    
   4  Prefactor     .85850        .13357        .29322E-04   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33975e-10
Minuit parameter uncertainties:
  1  494.162
  2  0.577191
  3  0.486972
  4  0.13362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331232': 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) = 1653.31270517
delta logL = 0.0419623112198

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  4.039e+02  4.942e+02  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  1.851e+00  5.772e-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.585e-01  1.336e-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:  4.476e-01  4.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 111.390 2.275
Photon Index (Free Index): 1.85 +/- 0.58
Photon Flux (Free Index): 2.01e-07 +/- 2.40e-07
Energy Flux (Free Index): 2.07e-04 +/- 3.11e-04

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/331232/cmap_HighResolution_598838401_599097601_4FGL_J0725.5+0216_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-02', comment='SUCCESS', photon_flux='2.30e-07', energy_flux2='2.07e-04', photon_flux_error='2.48e-07', dlogl='4.20e-02', energy_flux='1.51e-04', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-08-27 06:20:22.760183', photon_index_error2='0.58', photon_index2='1.85', ts='1.31', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.34e-07', energy_flux_error2='3.11e-04', EG='0.44', time_epoch_completed='1630070422.76', return_code='0', job_id='331232', GAL2='0.86', EG2='0.45', return_code2='0', energy_flux_error='1.62e-04', photon_flux_error2='2.40e-07', ts2='1.41', photon_index='2.02' WHERE bin_id='1387' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 331232: <4FGL_J0725.5+0216_daily_bin1387> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin1387 111.39 2.2749 598838401 599097601 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 :                                   403.63 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             205.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            581 sec.

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

