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


Performing analysis on: 4FGL_J0713.0+5738_daily_bin41
RA = 108.26, Dec = 57.6345
tmin = 249955201, tmax = 250214401
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='180973', job_status='RUN', time_executed='2021-08-26 21:56:27.676175', time_epoch_executed='1630040187.68' WHERE source_name='4FGL J0713.0+5738' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180973/ft1_4FGL_J0713.0+5738_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180973/ft1_4FGL_J0713.0+5738_daily_bin41.fits outfile=/scratch/kocevski/180973/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin41.fits ra=108.26 dec=57.6345 rad=12.0 tmin=249955201.0 tmax=250214401.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.56
user 1.23
sys 1.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.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/180973/ft1_filteredMKT_4FGL_J0713.0+5738_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.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.67
user 0.33
sys 1.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/180973/ltcube_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.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/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits
.....................!
real 13.72
user 12.02
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/180973/ltcube_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits outfile=/scratch/kocevski/180973/expmap_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.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/180973/ltcube_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits
.....................!
real 191.37
user 185.33
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
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/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits outfile=/scratch/kocevski/180973/cmap_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.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.61
user 0.36
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits outfile=/scratch/kocevski/180973/cmap_HighResolution_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.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.62
user 0.38
sys 1.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180973/Model_4FGL_J0713.0+5738_daily_bin41.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/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits.....................!
real 72.70
user 69.78
sys 2.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits', '/scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits', expMap='/scratch/kocevski/180973/expmap_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits', expCube='/scratch/kocevski/180973/ltcube_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180973/Model_4FGL_J0713.0+5738_daily_bin41.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/180973/ft1_filtered_4FGL_J0713.0+5738_daily_bin41.fits
Spacecraft file(s): /scratch/kocevski/180973/ft2_4FGL_J0713.0+5738_daily_bin41.fits
Exposure map: /scratch/kocevski/180973/expmap_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits
Exposure cube: /scratch/kocevski/180973/ltcube_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180973/Model_4FGL_J0713.0+5738_daily_bin41.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) = 6233.42850566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     6 'norm      '    .59790E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2151       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.946       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5091       1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.340       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1950       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2137       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68702       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0111       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=   6233.422     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3302 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.181        35.801       -.18088E-05   -.33493E-04
   2  Prefactor     .10000E-03    16.558        .37288E-07** at limit **
   3  Prefactor     9.6714        8.1899        .92369E-07    .16979E-04
   4  Prefactor     78.754        41.534       -.13705E-05   -.68081E-04
   5  Prefactor     14.833        36.201       -.15181E-04   -.17131E-03
   6  norm          .63603E-01    2.3348       -.66146E-06    .56266E-03
   7  norm          6.9639        5.8284        .32815E-06   -.14574E-02
   8  Prefactor     .10000E-03    6.6934        .20382E-06** at limit **
   9  Prefactor     .10000E-03    3.8996        .12729E-06** at limit **
  10  Prefactor     8.2140        15.126       -.16772E-06    .24747E-04
  11  Prefactor     11.595        18.557       -.14659E-06   -.86169E-05
  12  Prefactor     8.5843        25.044        .22954E-05    .28521E-04
  13  Prefactor     .10000E-03    26.610        .32782E-06** at limit **
  14  Prefactor     .10000E-03    76.405        .72106E-06** at limit **
  15  norm          .10000E-03    .68797        .54432E-07** at limit **
  16  Prefactor     15.945        15.006       -.30014E-06   -.42641E-05
  17  norm          .10000E-03    1.6517       -.27210E-06** at limit **
  18  Prefactor     .10000E-03    11.391        .16009E-06** at limit **
  19  norm          5.5090        5.0369        .11060E-05    .18442E-03
  20  Prefactor     70.340        49.188       -.97097E-07    .30976E-04
  21  norm          .10000E-03    2.1857       -.64599E-06** at limit **
  22  norm          1.1953        1.2272        .56498E-06   -.46223E-02
  23  Prefactor     .10000E-03    .52373        .12560E-07** at limit **
  24  Prefactor     7.2140        13.403       -.39376E-06   -.26430E-04
  25  Prefactor     .10000E-03    3.8114        .24841E-06** at limit **
  26  Normalizat    .68704        .22002       -.12442E-05    .68987E-04
  27  Prefactor     1.0111        .11157        .90264E-06   -.76393E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1812
  Prefactor  = 0.0001
  Prefactor  = 9.67136
  Prefactor  = 78.7539
  Prefactor  = 14.8331
  norm       = 0.0636027
  norm       = 6.96392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21398
  Prefactor  = 11.5954
  Prefactor  = 8.58431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9449
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.50903
  Prefactor  = 70.3404
  norm       = 0.0001
  norm       = 1.19526
  Prefactor  = 0.0001
  Prefactor  = 7.21404
  Prefactor  = 0.0001
  Normalizat = 0.687037
  Prefactor  = 1.01111
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.422     FROM HESSE     STATUS=OK           490 CALLS     3792 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.181        35.863        .74163E-04   -1.4627    
   2  Prefactor     .10000E-03    16.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6714        8.1911        .12886E-03   -1.5086    
   4  Prefactor     78.754        41.586        .45252E-04   -1.3931    
   5  Prefactor     14.833        36.821        .10394E-03   -1.4937    
   6  norm          .63603E-01    49.580        .22794E-02   -1.5658    
   7  norm          6.9639        6.2186        .76002E-03   -1.5180    
   8  Prefactor     .10000E-03    6.6968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9294        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2140        15.117        .13988E-03   -1.5135    
  11  Prefactor     11.595        18.543        .11764E-03   -1.5027    
  12  Prefactor     8.5843        24.899        .13685E-03   -1.5122    
  13  Prefactor     .10000E-03    26.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5001        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.945        15.024        .10030E-03   -1.4909    
  17  norm          .10000E-03    1.6651        .99003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5090        5.0365        .15054E-03   -1.5238    
  20  Prefactor     70.340        49.161        .47863E-04   -1.4029    
  21  norm          .10000E-03    2.2025        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1953        1.8754        .66933E-03   -1.5489    
  23  Prefactor     .10000E-03    .52519        .55771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.2140        13.393        .14934E-03   -1.5171    
  25  Prefactor     .10000E-03    3.8363        .15040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .68704        .24384        .37159E-03   -1.0441    
  27  Prefactor     1.0111        .12577        .16829E-03   -.92360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58689e-08
Minuit parameter uncertainties:
  1  35.8896
  2  2.68814e-05
  3  8.19202
  4  41.6017
  5  36.8777
  6  3.55174
  7  6.21922
  8  9.99541e-06
  9  3.68103e-06
  10  15.1237
  11  18.5524
  12  24.9289
  13  1.82535e-05
  14  5.02425e-05
  15  3.03109e-05
  16  15.0276
  17  3.04347e-06
  18  3.63093e-06
  19  5.0369
  20  49.189
  21  1.01796e-05
  22  1.87549
  23  1.64087e-06
  24  13.3986
  25  2.93123e-06
  26  0.244229
  27  0.125804
Done.

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

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.160e+01  1.855e+01  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.011e+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:  6.870e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 108.260 57.635
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180973/likelihoodResults_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.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) = 6233.16822985
delta logL = 0.253783334396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6233.1300096
delta logL = 0.292003585262

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6233.130     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      253 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.510        23.285        .95688E-04   -.74851E-05
   2  Index         1.7541        .74416        .11577E-01   -.79115E-04
   3  Normalizat    .69695        .22435        .36904E-03    .37645E-04
   4  Prefactor     1.0072        .12222        .16853E-03   -.52105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5105
  Index      = 1.7541
  Normalizat = 0.696948
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.130     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.510        23.455        .38275E-05   -1.4871    
   2  Index         1.7541        .74973        .23154E-02   -.70651    
   3  Normalizat    .69695        .22445        .14762E-04   -1.0401    
   4  Prefactor     1.0072        .12227        .33706E-04   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7864e-11
Minuit parameter uncertainties:
  1  23.4671
  2  0.754676
  3  0.224742
  4  0.1223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180973': 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) = 6233.13000897
delta logL = 0.292004213421

Extracting fit parameters...

4FGL J0713.0+5738
   Spectrum: PowerLaw
284    Prefactor:  1.751e+01  2.347e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.754e+00  7.547e-01  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.007e+00  1.223e-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:  6.969e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 108.260 57.635
Photon Index (Free Index): 1.75 +/- 0.75
Photon Flux (Free Index): 1.21e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.67e-05 +/- 3.09e-05

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/180973/cmap_HighResolution_249955201_250214401_4FGL_J0713.0+5738_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='2.92e-01', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-08-26 22:10:32.379911', photon_index_error2='0.75', photon_index2='1.75', ts='0.59', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='3.09e-05', EG='0.69', time_epoch_completed='1630041032.38', return_code='0', job_id='180973', GAL2='1.01', EG2='0.70', return_code2='0', photon_flux_error2='2.02e-08', ts2='1.17', photon_index='2.40' WHERE bin_id='41' AND source_name='4FGL J0713.0+5738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 22:10:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 180973: <4FGL_J0713.0+5738_daily_bin41> in cluster <slac> Done

Job <4FGL_J0713.0+5738_daily_bin41> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 21:55:39 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 21:55:41 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:41 2021
Terminated at Thu Aug 26 22:10:33 2021
Results reported at Thu Aug 26 22:10:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0713.0+5738_daily_bin41 108.26 57.6345 249955201 250214401 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 :                                   860.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

