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


Performing analysis on: 4FGL_J0706.8+7742_daily_bin1
RA = 106.725, Dec = 77.7002
tmin = 239587201, tmax = 239846401
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='104177', job_status='RUN', time_executed='2021-08-26 17:54:26.647296', time_epoch_executed='1630025666.65' WHERE source_name='4FGL J0706.8+7742' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104177

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104177/ft1_4FGL_J0706.8+7742_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104177/ft1_4FGL_J0706.8+7742_daily_bin1.fits outfile=/scratch/kocevski/104177/ft1_filteredMKT_4FGL_J0706.8+7742_daily_bin1.fits ra=106.725 dec=77.7002 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.47
user 0.86
sys 0.57

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.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/104177/ft1_filteredMKT_4FGL_J0706.8+7742_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.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.84
user 0.27
sys 0.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/104177/ltcube_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.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/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits
.....................!
real 10.18
user 9.35
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/104177/ltcube_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits outfile=/scratch/kocevski/104177/expmap_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.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/104177/ltcube_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits
.....................!
real 140.97
user 136.69
sys 3.93

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

Setting source of interest to:
4FGL J0706.8+7742 @ 106.725 77.7002

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits outfile=/scratch/kocevski/104177/cmap_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.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=106.725 yref=77.7002 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.92
user 0.29
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits outfile=/scratch/kocevski/104177/cmap_HighResolution_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.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=106.725 yref=77.7002 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.86
user 0.30
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104177/Model_4FGL_J0706.8+7742_daily_bin1.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/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits.....................!
real 68.21
user 66.43
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits', '/scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits', expMap='/scratch/kocevski/104177/expmap_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits', expCube='/scratch/kocevski/104177/ltcube_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104177/Model_4FGL_J0706.8+7742_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0706.8+7742'

4FGL J0706.8+7742
   Spectrum: LogParabola
253         norm:  6.953e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
254        alpha:  1.861e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  1.188e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/104177/ft1_filtered_4FGL_J0706.8+7742_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/104177/ft2_4FGL_J0706.8+7742_daily_bin1.fits
Exposure map: /scratch/kocevski/104177/expmap_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits
Exposure cube: /scratch/kocevski/104177/ltcube_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104177/Model_4FGL_J0706.8+7742_daily_bin1.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) = 7076.0231812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.735       1.0000         .10000E-03   10000.    
     6 'norm      '    28.080       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25760       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5286       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .71870       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7075.991     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1666 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.801        8.7937        .20053E-05   -.44302E-04
   2  Prefactor     .10000E-03    10.590       -.12191E-04** at limit **
   3  Prefactor     .10000E-03    43.210        .59075E-07** at limit **
   4  Prefactor     30.712        20.391       -.24841E-05    .10846E-04
   5  Prefactor     13.741        21.591        .12846E-04    .27321E-04
   6  norm          28.079        18.186        .19087E-05   -.10436E-04
   7  norm          2.8668        .79053        .16032E-09    .72203E-03
   8  Prefactor     .10040E-03    19.165       -.18136E-05** at limit **
   9  norm          .10000E-03    13.249       -.11364E-05** at limit **
  10  Prefactor     7.7006        25.839        .25382E-04   -.90959E-05
  11  Prefactor     .10000E-03    3.2669       -.22993E-06** at limit **
  12  norm          1.0305        1.6391       -.11421E-06   -.15994E-02
  13  Prefactor     .10000E-03    10.844        .10424E-04** at limit **
  14  Prefactor     1.5271        6.7668       -.17936E-05   -.69496E-03
  15  Prefactor     .10000E-03    9.7336        .25730E-05** at limit **
  16  norm          2.0601        2.9695        .89728E-07   -.34035E-03
  17  Prefactor     .10000E-03    7.0205        .61977E-07** at limit **
  18  Normalizat    .71904        .16071       -.42908E-05    .12206E-03
  19  Prefactor     .80854        .80981E-01    .39968E-06   -.13871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.7119
  Prefactor  = 13.7407
  norm       = 28.0785
  norm       = 2.86684
  Prefactor  = 0.000100398
  norm       = 0.0001
  Prefactor  = 7.70062
  Prefactor  = 0.0001
  norm       = 1.03051
  Prefactor  = 0.0001
  Prefactor  = 1.52714
  Prefactor  = 0.0001
  norm       = 2.06008
  Prefactor  = 0.0001
  Normalizat = 0.719037
  Prefactor  = 0.808536
 **********
 **   18 **HESSE 
 **********

 FCN=   7075.991     FROM HESSE     STATUS=OK           280 CALLS     1946 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.801        8.7825        .11661E-03   -1.5021    
   2  Prefactor     .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.712        20.384        .72300E-04   -1.4599    
   5  Prefactor     13.741        21.500        .10808E-03   -1.4966    
   6  norm          28.079        18.175        .75603E-04   -1.4648    
   7  norm          2.8668        .79233        .37094E-04   -1.5369    
   8  Prefactor     .10040E-03    24.779        .10332       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7006        25.709        .14445E-03   -1.5153    
  11  Prefactor     .10000E-03    3.4134        .29684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0305        1.4976        .12998E-02   -1.5505    
  13  Prefactor     .10000E-03    10.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5271        6.8544        .34528E-03   -1.5461    
  15  Prefactor     .10000E-03    9.8135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0601        2.9495        .16776E-03   -1.5421    
  17  Prefactor     .10000E-03    7.0686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .71904        .18020        .30509E-03   -1.0315    
  19  Prefactor     .80854        .91912E-01    .15403E-03   -.99414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15262e-09
Minuit parameter uncertainties:
  1  8.78341
  2  8.19249e-06
  3  8.75704e-05
  4  20.389
  5  21.5121
  6  18.1788
  7  0.792331
  8  0.00627994
  9  0.000122293
  10  25.7461
  11  4.07766e-05
  12  1.49762
  13  7.13324e-06
  14  6.47179
  15  2.54237e-05
  16  2.94972
  17  1.62702e-05
  18  0.180348
  19  0.091929
Done.

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

Extracting fit parameters...

4FGL J0706.8+7742
   Spectrum: LogParabola
253         norm:  2.808e+01  1.818e+01  1.000e-04  1.000e+04 ( 1.000e-13)
254        alpha:  1.861e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  1.188e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.085e-01  9.193e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.190e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 106.725 77.700
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.49e-05

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) = 7075.60706513
delta logL = 0.384022944684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7075.59041869
delta logL = 0.400669378007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.962       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4430       1.0000          .0000       5.0000    
     3 'Normalizat'    .69076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7075.590     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      268 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.951        260.95        .21367E-02    .22655E-04
   2  alpha         2.4421        3.6604        .24412        .74411E-04
   3  Normalizat    .69094        .12128        .70183E-01   -.12823E-03
   4  Prefactor     .81522        .39481E-01    .43914E-01   -.37425E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9511
  alpha      = 2.44208
  Normalizat = 0.690942
  Prefactor  = 0.815218
 **********
 **   18 **HESSE 
 **********

 FCN=   7075.590     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.951        18.635        .85469E-04   -1.4771    
   2  alpha         2.4421        .67869        .12038E-01   -.23171E-01
   3  Normalizat    .69094        .17246        .31061E-03   -1.0425    
   4  Prefactor     .81522        .90587E-01    .15339E-03   -.99170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5909e-11
Minuit parameter uncertainties:
  1  18.6404
  2  0.68732
  3  0.17259
  4  0.0906036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104177': 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) = 7075.59041013
delta logL = 0.400677940069

Extracting fit parameters...

4FGL J0706.8+7742
   Spectrum: LogParabola
253         norm:  2.195e+01  1.864e+01  1.000e-04  1.000e+04 ( 1.000e-13)
254        alpha:  2.442e+00  6.873e-01  0.000e+00  5.000e+00 ( 1.000e+00)
255         beta:  1.188e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  1.302e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.152e-01  9.060e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  6.909e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 106.725 77.700
Photon Index (Free Index): 2.44 +/- 0.69
Photon Flux (Free Index): 5.13e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.08e-05

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/104177/cmap_HighResolution_239587201_239846401_4FGL_J0706.8+7742_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='1.83e-05', photon_flux_error='1.75e-08', dlogl='4.01e-01', energy_flux='2.30e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-08-26 18:02:21.614658', photon_index_error2='0.69', photon_index2='2.44', ts='5.68', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.72', time_epoch_completed='1630026141.61', return_code='0', job_id='104177', GAL2='0.82', EG2='0.69', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.02e-08', ts2='6.51', photon_index='1.86' WHERE bin_id='1' AND source_name='4FGL J0706.8+7742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 18:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 104177: <4FGL_J0706.8+7742_daily_bin1> in cluster <slac> Done

Job <4FGL_J0706.8+7742_daily_bin1> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 17:50:19 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:50:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 17:50:21 2021
Terminated at Thu Aug 26 18:02:22 2021
Results reported at Thu Aug 26 18:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0706.8+7742_daily_bin1 106.725 77.7002 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0706.8+7742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   482.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             260.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

