/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 2 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0713.0+5738_daily_bin115
RA = 108.26, Dec = 57.6345
tmin = 269136001, tmax = 269395201
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='181087', job_status='RUN', time_executed='2021-08-26 21:56:14.786602', time_epoch_executed='1630040174.79' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/181087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/181087/ft1_4FGL_J0713.0+5738_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/181087/ft1_4FGL_J0713.0+5738_daily_bin115.fits outfile=/scratch/kocevski/181087/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin115.fits ra=108.26 dec=57.6345 rad=12.0 tmin=269136001.0 tmax=269395201.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 2.76
user 1.49
sys 1.06

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.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/181087/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin115.fits evtable="EVENTS" outfile="/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.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.76
user 0.32
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/181087/ltcube_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.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/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits
.....................!
real 13.57
user 11.91
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/181087/ltcube_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits outfile=/scratch/kocevski/181087/expmap_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.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/181087/ltcube_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits
.....................!
real 193.45
user 187.35
sys 5.42

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
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0713.0+5738 @ 108.26 57.6345

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits outfile=/scratch/kocevski/181087/cmap_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.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=108.26 yref=57.6345 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.51
user 0.38
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits outfile=/scratch/kocevski/181087/cmap_HighResolution_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.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=108.26 yref=57.6345 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.40
user 0.37
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/181087/Model_4FGL_J0713.0+5738_daily_bin115.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
Working on...
/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits.....................!
real 84.54
user 81.95
sys 2.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits', '/scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits', expMap='/scratch/kocevski/181087/expmap_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits', expCube='/scratch/kocevski/181087/ltcube_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/181087/Model_4FGL_J0713.0+5738_daily_bin115.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0713.0+5738'

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  5.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/181087/ft1_filtered_4FGL_J0713.0+5738_daily_bin115.fits
Spacecraft file(s): /scratch/kocevski/181087/ft2_4FGL_J0713.0+5738_daily_bin115.fits
Exposure map: /scratch/kocevski/181087/expmap_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits
Exposure cube: /scratch/kocevski/181087/ltcube_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/181087/Model_4FGL_J0713.0+5738_daily_bin115.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) = 7599.12200612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7657       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10947E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9009       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .86559       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.981       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3262       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93080       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7599.110     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3281 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.726        .12467E-05** at limit **
   2  Prefactor     20.961        31.827       -.80102E-05    .22597E-04
   3  Prefactor     .10000E-03    2.7564       -.53087E-07** at limit **
   4  Prefactor     .10000E-03    49.736       -.44737E-04** at limit **
   5  Prefactor     .10000E-03    17.998       -.41060E-05** at limit **
   6  norm          .10000E-03    1.9311        .73428E-08** at limit **
   7  norm          .10000E-03    2.6675        .10987E-06** at limit **
   8  Prefactor     .10000E-03    4.2108        .74541E-07** at limit **
   9  Prefactor     6.9506        6.7531       -.58312E-06   -.15548E-03
  10  Prefactor     .10000E-03    8.0238        .53878E-06** at limit **
  11  Prefactor     .10000E-03    7.1849       -.12885E-06** at limit **
  12  Prefactor     1.4616        135.06        .26654E-04   -.46915E-04
  13  Prefactor     .10000E-03    27.005        .11163E-04** at limit **
  14  Prefactor     .10000E-03    192.56       -.36221E-04** at limit **
  15  norm          1.7656        1.0583       -.25688E-06   -.77260E-03
  16  Prefactor     .10047E-03    6.7413       -.27238E-05** at limit **
  17  norm          2.9005        2.2624        .12009E-06    .63528E-03
  18  Prefactor     .10000E-03    60.629        .54396E-04** at limit **
  19  norm          1.3759        2.1462       -.28044E-06   -.90610E-03
  20  Prefactor     .10000E-03    8.6784       -.84430E-06** at limit **
  21  norm          2.9013        3.5994       -.12699E-06   -.22634E-03
  22  norm          1.9097        1.5788        .58147E-07    .13483E-03
  23  Prefactor     .86557        1.6700       -.60387E-06   -.24673E-02
  24  Prefactor     12.982        10.310       -.11724E-06   -.20187E-04
  25  Prefactor     8.3263        6.6968       -.27459E-06   -.15530E-03
  26  Normalizat    .93065        .21360       -.35797E-06    .89303E-04
  27  Prefactor     1.1256        .11240        .59077E-06    .95060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.9611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76561
  Prefactor  = 0.000100472
  norm       = 2.90054
  Prefactor  = 0.0001
  norm       = 1.37595
  Prefactor  = 0.0001
  norm       = 2.9013
  norm       = 1.90971
  Prefactor  = 0.865567
  Prefactor  = 12.9816
  Prefactor  = 8.32626
  Normalizat = 0.930649
  Prefactor  = 1.12556
 **********
 **   18 **HESSE 
 **********

 FCN=   7599.110     FROM HESSE     STATUS=OK           488 CALLS     3769 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.961        31.834        .87363E-04   -1.4792    
   3  Prefactor     .10000E-03    2.7587        .14134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    49.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9390        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6905        .13895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2111        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9506        6.7516        .15219E-03   -1.5181    
  10  Prefactor     .10000E-03    8.0383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4616        132.54        .34731E-03   -1.5466    
  13  Prefactor     .10000E-03    27.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    192.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7656        1.0491        .64848E-04   -1.5442    
  16  Prefactor     .10047E-03    41.495        .42983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9005        2.2409        .11164E-03   -1.5367    
  18  Prefactor     .10000E-03    61.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3759        2.0872        .14965E-03   -1.5473    
  20  Prefactor     .10000E-03    8.6823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9013        3.5829        .17500E-03   -1.5367    
  22  norm          1.9097        1.5829        .95339E-04   -1.5432    
  23  Prefactor     .86557        1.5290        .14591E-02   -1.5522    
  24  Prefactor     12.982        10.304        .11117E-03   -1.4987    
  25  Prefactor     8.3263        6.7003        .13893E-03   -1.5131    
  26  Normalizat    .93065        .23369        .35012E-03   -.95391    
  27  Prefactor     1.1256        .12576        .18368E-03   -.88654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2953e-08
Minuit parameter uncertainties:
  1  5.37367e-07
  2  31.8595
  3  2.40158e-06
  4  0.00028497
  5  2.18675e-05
  6  4.83892e-07
  7  1.65545e-06
  8  2.673e-06
  9  6.7523
  10  6.50753e-07
  11  2.41527e-05
  12  27.8995
  13  1.38741e-05
  14  4.13216e-05
  15  1.04907
  16  0.0088555
  17  2.241
  18  0.000196969
  19  2.08726
  20  1.01179e-06
  21  3.58318
  22  1.5829
  23  1.52909
  24  10.3051
  25  6.70088
  26  0.23394
  27  0.12579
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.415e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.400e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  1.126e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  9.306e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/181087/likelihoodResults_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.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) = 7599.11058229
delta logL = -0.000661396953547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7599.10992102
delta logL = -1.24378857436e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3958       1.0000          .0000       10.000    
     3 'Normalizat'    .93057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7599.110     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    993.40        .90712E-02** at limit **
   2  Index         2.3919        6.4178        .50000        .47120E-05
   3  Normalizat    .93065        .79421E-01    .79100E-01    .24141E-04
   4  Prefactor     1.1256        .45522E-01    .36686E-01   -.67513E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39191
  Normalizat = 0.930648
  Prefactor  = 1.12556
 **********
 **   18 **HESSE 
 **********

 FCN=   7599.110     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3919        5.0239        .50000       -.54875    
   3  Normalizat    .93065        .21524        .35012E-03   -.95391    
   4  Prefactor     1.1256        .12392        .18368E-03   -.88654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32842e-11
Minuit parameter uncertainties:
  1  1.30477e-06
  2  8.67188
  3  0.215441
  4  0.123954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/181087': 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) = 7599.10992089
delta logL = 8.77844286151e-09

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.305e-06  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.392e+00  8.672e+00  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  9.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
669    Prefactor:  1.126e+00  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
670        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
671        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
668   Normalization:  9.306e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 108.260 57.635

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/181087/cmap_HighResolution_269136001_269395201_4FGL_J0713.0+5738_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-08-26 22:12:25.769557', job_id='181087', GAL2='1.13', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630041145.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.78e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='115' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 181087: <4FGL_J0713.0+5738_daily_bin115> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin115> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 21:55:49 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:55:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 21:55:50 2021
Terminated at Thu Aug 26 22:12:26 2021
Results reported at Thu Aug 26 22:12:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin115 108.26 57.6345 269136001 269395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0713.0+5738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   982.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

