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


Performing analysis on: 4FGL_J0718.0+4536_daily_bin1012
RA = 109.516, Dec = 45.6163
tmin = 501638401, tmax = 501897601
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='207843', job_status='RUN', time_executed='2021-08-26 23:28:13.203434', time_epoch_executed='1630045693.2' WHERE source_name='4FGL J0718.0+4536' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207843

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207843/ft1_4FGL_J0718.0+4536_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207843/ft1_4FGL_J0718.0+4536_daily_bin1012.fits outfile=/scratch/kocevski/207843/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1012.fits ra=109.516 dec=45.6163 rad=12.0 tmin=501638401.0 tmax=501897601.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.78
user 3.26
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.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/207843/ft1_filteredMKT_4FGL_J0718.0+4536_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.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.74
user 0.31
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/207843/ltcube_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.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/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits
.....................!
real 12.08
user 11.46
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/207843/ltcube_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits outfile=/scratch/kocevski/207843/expmap_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.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/207843/ltcube_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits
.....................!
real 190.77
user 185.60
sys 4.86

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

Setting source of interest to:
4FGL J0718.0+4536 @ 109.516 45.6163

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits outfile=/scratch/kocevski/207843/cmap_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.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=109.516 yref=45.6163 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.80
user 0.36
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits outfile=/scratch/kocevski/207843/cmap_HighResolution_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.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=109.516 yref=45.6163 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.79
user 0.36
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207843/Model_4FGL_J0718.0+4536_daily_bin1012.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/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits.....................!
real 87.21
user 85.50
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits', '/scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits', expMap='/scratch/kocevski/207843/expmap_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits', expCube='/scratch/kocevski/207843/ltcube_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207843/Model_4FGL_J0718.0+4536_daily_bin1012.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0718.0+4536'

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  2.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/207843/ft1_filtered_4FGL_J0718.0+4536_daily_bin1012.fits
Spacecraft file(s): /scratch/kocevski/207843/ft2_4FGL_J0718.0+4536_daily_bin1012.fits
Exposure map: /scratch/kocevski/207843/expmap_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits
Exposure cube: /scratch/kocevski/207843/ltcube_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207843/Model_4FGL_J0718.0+4536_daily_bin1012.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) = 8484.49927246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71280E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.4642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50714       1.0000         .10000E-03   10000.    
     5 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.217       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1123       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0342       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0658       1.0000         .10000E-03   10000.    
    19 'norm      '    9.2874       1.0000         .10000E-03   10000.    
    20 'norm      '    .33392       1.0000         .10000E-03   10000.    
    21 'norm      '    .58994       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93654       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90062       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8484.439     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     1813 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    16.785       -.56838E-05** at limit **
   2  norm          .10000E-03    4.2617       -.33822E-06** at limit **
   3  norm          5.4723        4.0433       -.51705E-06   -.27625E-04
   4  Prefactor     .14392        922.09       -.60521E-06   -.39024E-05
   5  norm          .10000E-03    1.5038        .56233E-07** at limit **
   6  Prefactor     .10000E-03    1.1744        .46335E-07** at limit **
   7  Prefactor     23.201        14.251        .69226E-06   -.10644E-02
   8  norm          .10000E-03    3.5593        .36585E-07** at limit **
   9  Prefactor     .10000E-03    16.222       -.99639E-06** at limit **
  10  Prefactor     3.6434        2.2086        .29971E-06    .90144E-03
  11  Prefactor     6.0931        5.1805        .45891E-06   -.11020E-02
  12  norm          1.6953        .90605       -.25267E-07   -.14099E-04
  13  Prefactor     5.6449        1.2359        .10939E-06    .10695E-02
  14  Prefactor     .10000E-03    8.1861        .10455E-05** at limit **
  15  norm          2.8790        2.2371        .15033E-07   -.12481E-04
  16  Prefactor     .47018        2.9903       -.37248E-06    .20796E-02
  17  Prefactor     5.0196        3.8823       -.38354E-06    .16472E-02
  18  Prefactor     9.0631        4.9118        .42528E-07   -.29432E-03
  19  norm          9.2863        1.3928       -.56797E-08    .26978E-02
  20  norm          .33409        .84122        .12740E-07   -.25324E-04
  21  norm          .58986        .41857        .69193E-07    .30981E-03
  22  Normalizat    .93682        .19654        .92399E-06    .38393E-04
  23  Prefactor     .90061        .10265       -.36853E-06    .18149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 5.47233
  Prefactor  = 0.143924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64342
  Prefactor  = 6.09309
  norm       = 1.69525
  Prefactor  = 5.64491
  Prefactor  = 0.0001
  norm       = 2.87896
  Prefactor  = 0.470183
  Prefactor  = 5.01957
  Prefactor  = 9.06311
  norm       = 9.28627
  norm       = 0.334093
  norm       = 0.589865
  Normalizat = 0.93682
  Prefactor  = 0.900606
 **********
 **   18 **HESSE 
 **********

 FCN=   8484.439     FROM HESSE     STATUS=OK           442 CALLS     2255 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    4.9543        .72925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.4723        4.0629        .42973E-02   -1.5240    
   4  Prefactor     .14392        18.203        .13220       -1.5632    
   5  norm          .10000E-03    1.4803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.201        16.393        .20783E-02   -1.4744    
   8  norm          .10000E-03    3.5108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6434        9.9423        .52883E-02   -1.5326    
  11  Prefactor     6.0931        22.951        .40598E-02   -1.5214    
  12  norm          1.6953        .91793        .80783E-02   -1.5448    
  13  Prefactor     5.6449        9.3989        .42258E-02   -1.5233    
  14  Prefactor     .10000E-03    8.1585        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8790        2.2927        .59875E-02   -1.5369    
  16  Prefactor     .47018        5.2838        .66809E-01   -1.5571    
  17  Prefactor     5.0196        75.534        .44804E-02   -1.5260    
  18  Prefactor     9.0631        5.0205        .33278E-02   -1.5106    
  19  norm          9.2863        4.5365        .32877E-02   -1.5098    
  20  norm          .33409        .92713        .31899E-01   -1.5592    
  21  norm          .58986        .42772        .11004E-01   -1.5554    
  22  Normalizat    .93682        .18004        .71027E-01   -.95178    
  23  Prefactor     .90061        .90352E-01    .45013E-01   -.96120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27966e-08
Minuit parameter uncertainties:
  1  0.000609828
  2  9.01061e-06
  3  4.06312
  4  3.23703
  5  1.03078e-06
  6  4.67749e-07
  7  16.3965
  8  2.28519e-06
  9  5.45302e-05
  10  9.9468
  11  22.9846
  12  0.917938
  13  9.40136
  14  2.8466e-06
  15  2.29274
  16  3.15237
  17  39.0021
  18  5.02073
  19  4.53664
  20  0.927174
  21  0.427718
  22  0.180154
  23  0.0903674
Done.

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

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  2.285e-06  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  2.248e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.006e-01  9.037e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.368e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 109.516 45.616
Photon Flux Upper Limit: 4.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207843/likelihoodResults_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.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) = 8484.44069582
delta logL = -0.00133942838693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8484.43935628
delta logL = 1.10940163722e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2337       1.0000          .0000       5.0000    
     3 'Normalizat'    .93682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   8484.439     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      238 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.588        .61378E-01** at limit **
   2  alpha         1.5376        3.0221        .50000       -.56525E-07
   3  Normalizat    .93682        .93906E-02    .31425E-03    .10419E-03
   4  Prefactor     .90061        .51237E-02    .17335E-03    .20790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5376
  Normalizat = 0.93682
  Prefactor  = 0.900606
 **********
 **   18 **HESSE 
 **********

 FCN=   8484.439     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    374.81        .29586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5376        3.3890        .50000       -.39517    
   3  Normalizat    .93682        .45911E-01    .12570E-04   -.95178    
   4  Prefactor     .90061        .25054E-01    .34669E-04   -.96120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.62979e-11
Minuit parameter uncertainties:
  1  0.000512536
  2  1949.75
  3  0.045913
  4  0.0250548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207843': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8484.43935334
delta logL = 3.04984678223e-06

Extracting fit parameters...

4FGL J0718.0+4536
   Spectrum: LogParabola
258         norm:  1.000e-04  5.125e-04  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.538e+00  1.950e+03  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  2.201e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  6.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.006e-01  2.505e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  9.368e-01  4.591e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 109.516 45.616

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/207843/cmap_HighResolution_501638401_501897601_4FGL_J0718.0+4536_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-08-26 23:41:00.827379', job_id='207843', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630046460.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1012' AND source_name='4FGL J0718.0+4536' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 23:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 207843: <4FGL_J0718.0+4536_daily_bin1012> in cluster <slac> Done

Job <4FGL_J0718.0+4536_daily_bin1012> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 23:25:25 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 23:25:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 23:25:28 2021
Terminated at Thu Aug 26 23:41:01 2021
Results reported at Thu Aug 26 23:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0718.0+4536_daily_bin1012 109.516 45.6163 501638401 501897601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0718.0+4536 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

