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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1389
RA = 106.207, Dec = 49.1318
tmin = 599356801, tmax = 599616001
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='101448', job_status='RUN', time_executed='2021-08-26 17:45:30.040522', time_epoch_executed='1630025130.04' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101448/ft1_4FGL_J0704.8+4907_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101448/ft1_4FGL_J0704.8+4907_daily_bin1389.fits outfile=/scratch/kocevski/101448/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1389.fits ra=106.207 dec=49.1318 rad=12.0 tmin=599356801.0 tmax=599616001.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 10.95
user 2.50
sys 8.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.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/101448/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.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 7.87
user 0.33
sys 7.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/101448/ltcube_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.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/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits
.....................!
real 21.77
user 12.19
sys 9.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/101448/ltcube_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits outfile=/scratch/kocevski/101448/expmap_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.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/101448/ltcube_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits
.....................!
real 198.99
user 184.82
sys 13.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0704.8+4907 @ 106.207 49.1318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits outfile=/scratch/kocevski/101448/cmap_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.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.207 yref=49.1318 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 8.54
user 0.38
sys 8.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits outfile=/scratch/kocevski/101448/cmap_HighResolution_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.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.207 yref=49.1318 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 8.55
user 0.40
sys 8.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101448/Model_4FGL_J0704.8+4907_daily_bin1389.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits.........................!
real 35.14
user 22.42
sys 11.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits', '/scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits', expMap='/scratch/kocevski/101448/expmap_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits', expCube='/scratch/kocevski/101448/ltcube_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/101448/Model_4FGL_J0704.8+4907_daily_bin1389.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0704.8+4907'

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.520e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/101448/ft1_filtered_4FGL_J0704.8+4907_daily_bin1389.fits
Spacecraft file(s): /scratch/kocevski/101448/ft2_4FGL_J0704.8+4907_daily_bin1389.fits
Exposure map: /scratch/kocevski/101448/expmap_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits
Exposure cube: /scratch/kocevski/101448/ltcube_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/101448/Model_4FGL_J0704.8+4907_daily_bin1389.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) = 868.636529197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    446.87       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    73.127       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    189.90       1.0000         .10000E-03   10000.    
    19 'norm      '    .32662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    303.14       1.0000         .10000E-03   10000.    
    25 'norm      '    13.351       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .18296E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   862.9895     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     4715 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        12.176        .29777E-04   -.10046E-02
   2  norm         10000.0        45.182        .55924E-04   -.17633E-02
   3  norm         10000.0        .72174        .63132E-05   -.22251E-03
   4  Prefactor     446.87        1.0024       -.16000E-07    .14283E-03
   5  Prefactor    10000.0        11.354        .28767E-04   -.97259E-03
   6  Prefactor     .10355E-03    69.378        .65800E-04** at limit **
   7  Prefactor     .10108E-03    26.472       -.21128E-04** at limit **
   8  norm          .10069E-03    16.748        .32009E-05** at limit **
   9  norm          .10740E-03    46.595        .10101E-05** at limit **
  10  Prefactor     .69847E-02    12.737       -.30446E-04    .10257E-02
  11  norm          .10020E-03    9.2028       -.16816E-04** at limit **
  12  Prefactor     .10034E-03    13.491       -.25176E-04** at limit **
  13  Prefactor     .10040E-03    12.605        .17695E-04** at limit **
  14  Prefactor     47.221        1.1245        .30945E-06   -.44971E-03
  15  Prefactor     73.127        1.0114       -.10009E-06   -.18500E-03
  16  norm          .10005E-03    8.6517        .74841E-05** at limit **
  17  Prefactor     .10067E-03    17.209        .22840E-04** at limit **
  18  Prefactor     189.89        1.1176       -.16144E-06    .86244E-03
  19  norm          .32679        1.2952       -.10046E-05   -.65745E-04
  20  Prefactor     .10005E-03    20.237       -.25822E-04** at limit **
  21  Prefactor     .10034E-03    15.254        .27622E-04** at limit **
  22  norm          10.728        7.1654        .42918E-05    .61238E-02
  23  Prefactor     .12761E-03    270.64       -.65170E-04** at limit **
  24  Prefactor     303.14        2.2549       -.49707E-06    .41243E-02
  25  norm          13.350        5.5261        .25257E-05    .27235E-02
  26  norm          .10000E-03    3.6908        .42294E-06** at limit **
  27  Normalizat    .18598E-01    8.3824       -.15074E-03   -.10441E-04
  28  Prefactor     .82964        .39401        .50784E-05   -.43448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9999.99
  norm       = 10000
  norm       = 9999.99
  Prefactor  = 446.868
  Prefactor  = 9999.99
  Prefactor  = 0.00010355
  Prefactor  = 0.000101076
  norm       = 0.000100695
  norm       = 0.000107402
  Prefactor  = 0.00698466
  norm       = 0.0001002
  Prefactor  = 0.000100336
  Prefactor  = 0.000100395
  Prefactor  = 47.2208
  Prefactor  = 73.1271
  norm       = 0.000100045
  Prefactor  = 0.000100669
  Prefactor  = 189.894
  norm       = 0.326788
  Prefactor  = 0.00010005
  Prefactor  = 0.000100339
  norm       = 10.7277
  Prefactor  = 0.00012761
  Prefactor  = 303.136
  norm       = 13.3504
  norm       = 0.0001
  Normalizat = 0.0185981
  Prefactor  = 0.829643
 **********
 **   18 **HESSE 
 **********

 FCN=   862.9895     FROM HESSE     STATUS=NOT POSDEF   565 CALLS     5280 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6640.5        .90712E-02    1.5691    
   2  norm         10000.0        1649.4        .90712E-02    1.5694    
   3  norm         10000.0        9822.2        .90712E-02    1.5689    
   4  Prefactor     446.87        473.84        .48399E-03   -1.1448    
   5  Prefactor    10000.0        6696.5        .90712E-02    1.5691    
   6  Prefactor     .10355E-03    93.377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10108E-03    41.596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10069E-03    37.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10740E-03    67.736        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .69847E-02    6597.5        .90712E-02   -1.5691    
  11  norm          .10020E-03    21.932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10034E-03    22.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10040E-03    20.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.221        113.46        .14588E-02   -1.4333    
  15  Prefactor     73.127        148.21        .11737E-02   -1.3996    
  16  norm          .10005E-03    20.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10067E-03    30.377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     189.89        241.80        .73267E-03   -1.2943    
  19  norm          .32679        4.0576        .10541E-01   -1.5594    
  20  Prefactor     .10005E-03    18.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10034E-03    31.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.728        9.9704        .30583E-02   -1.5053    
  23  Prefactor     .12761E-03    261.42        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     303.14        564.91        .58326E-03   -1.2208    
  25  norm          13.350        22.069        .27406E-02   -1.4977    
  26  norm          .10000E-03    3.5056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .18598E-01    5.0561        .24027       -1.5121    
  28  Prefactor     .82964        1.7787        .44105E-01   -.98645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04282e-05
Minuit parameter uncertainties:
  1  10.1494
  2  5.76663
  3  26.1522
  4  478.094
  5  10.4111
  6  0.0364684
  7  0.0133909
  8  0.0102651
  9  0.0448347
  10  9.98286
  11  0.00418632
  12  0.00550141
  13  0.00562854
  14  113.98
  15  148.972
  16  0.00194006
  17  0.00902371
  18  243.086
  19  2.30285
  20  0.00193105
  21  0.00656517
  22  9.97197
  23  0.170666
  24  575.661
  25  22.083
  26  7.37803e-06
  27  1.92504
  28  1.93306
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 862.989472706

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.002e-04  4.186e-03  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.296e-01  1.933e+00  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.860e-02  1.925e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 106.207 49.132
Photon Flux Upper Limit: 7.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101448/likelihoodResults_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.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) = 862.989659904
delta logL = -0.000187198782214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 862.893959781
delta logL = 0.0955129248272

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   862.8940     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      264 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60348        4.3432        .11686E-01    .86898E-03
   2  alpha         5.0000        4.9966        .46267    ** at limit **
   3  Normalizat    .10000E-01    1.1713        .24177    ** at limit **
   4  Prefactor     .82495        .27704        .44041E-01   -.18490E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.603484
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.824945
 **********
 **   18 **HESSE 
 **********

 FCN=   862.8940     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60348        1.5849        .61099E-03   -1.5553    
   2  alpha         5.0000        3.8477        .47940E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    6.5107        .13433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82495        .19174        .19784E-03   -.98815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81078e-09
Minuit parameter uncertainties:
  1  1.58505
  2  0.000192713
  3  0.000189916
  4  0.191896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101448': 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) = 862.893959776
delta logL = 0.0955129297361

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  6.035e-01  1.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  5.000e+00  1.927e-04  0.000e+00  5.000e+00 ( 1.000e+00)
267         beta:  1.530e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
268           Eb:  7.828e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.249e-01  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.000e-02  1.899e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 106.207 49.132

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/101448/cmap_HighResolution_599356801_599616001_4FGL_J0704.8+4907_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-04', job_status='DONE', photon_flux_upper_limit='7.66e-07', time_completed='2021-08-26 17:54:20.780189', job_id='101448', GAL2='0.82', fit_tolerance='1e-08', EG2='0.01', EG='0.02', time_epoch_completed='1630025660.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.83', dlogl='9.55e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1389' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 101448: <4FGL_J0704.8+4907_daily_bin1389> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin1389> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 26 17:40:45 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:40:47 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:40:47 2021
Terminated at Thu Aug 26 17:54:22 2021
Results reported at Thu Aug 26 17:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1389 106.207 49.1318 599356801 599616001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0704.8+4907 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             220.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

