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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1564
RA = 106.207, Dec = 49.1318
tmin = 644716801, tmax = 644976001
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='102997', job_status='RUN', time_executed='2021-08-26 17:46:00.010989', time_epoch_executed='1630025160.01' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102997/ft1_4FGL_J0704.8+4907_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102997/ft1_4FGL_J0704.8+4907_daily_bin1564.fits outfile=/scratch/kocevski/102997/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1564.fits ra=106.207 dec=49.1318 rad=12.0 tmin=644716801.0 tmax=644976001.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.45
user 1.96
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.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/102997/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1564.fits evtable="EVENTS" outfile="/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.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.67
user 0.26
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/102997/ltcube_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.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/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits
.....................!
real 9.63
user 8.93
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/102997/ltcube_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits outfile=/scratch/kocevski/102997/expmap_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.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/102997/ltcube_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits
.....................!
real 144.00
user 138.81
sys 4.29

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/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits outfile=/scratch/kocevski/102997/cmap_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.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 0.76
user 0.31
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits outfile=/scratch/kocevski/102997/cmap_HighResolution_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.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 0.72
user 0.30
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102997/Model_4FGL_J0704.8+4907_daily_bin1564.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/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits.....................!
real 45.71
user 43.85
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits', '/scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits', expMap='/scratch/kocevski/102997/expmap_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits', expCube='/scratch/kocevski/102997/ltcube_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/102997/Model_4FGL_J0704.8+4907_daily_bin1564.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/102997/ft1_filtered_4FGL_J0704.8+4907_daily_bin1564.fits
Spacecraft file(s): /scratch/kocevski/102997/ft2_4FGL_J0704.8+4907_daily_bin1564.fits
Exposure map: /scratch/kocevski/102997/expmap_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits
Exposure cube: /scratch/kocevski/102997/ltcube_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/102997/Model_4FGL_J0704.8+4907_daily_bin1564.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) = 3488.30216904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.572       1.0000         .10000E-03   10000.    
     2 'norm      '    .25849E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .50287E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    411.31       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19962E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25838E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99859E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5498       1.0000         .10000E-03   10000.    
     9 'norm      '    .24590E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.485       1.0000         .10000E-03   10000.    
    11 'norm      '    .14947E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17585E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36997E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17413E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.850       1.0000         .10000E-03   10000.    
    19 'norm      '    .67662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20288E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50126E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3226       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11257E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31324E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7960       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .49338       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2291       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=   3483.122     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     2645 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1970.2        .46089E-04** at limit **
   2  norm          .10000E-03    26.009       -.51000E-06** at limit **
   3  norm          .10000E-03    15.698       -.13441E-05** at limit **
   4  Prefactor     93.489        226.03       -.22852E-04    .72891E-04
   5  Prefactor     .10000E-03    18.934        .38884E-05** at limit **
   6  Prefactor     .10000E-03    68.587       -.27037E-05** at limit **
   7  Prefactor     .10001E-03    68.033       -.11200E-04** at limit **
   8  norm          5.9250        7.3884        .11149E-06   -.10712E-03
   9  norm          .10000E-03    5.8574        .46415E-05** at limit **
  10  Prefactor     43.693        56.270       -.97396E-06   -.52295E-04
  11  norm          .10000E-03    4.0939       -.74222E-07** at limit **
  12  Prefactor     12.027        13.915        .10644E-06   -.13624E-04
  13  Prefactor     .10000E-03    8.1572        .19685E-05** at limit **
  14  Prefactor     .10000E-03    67.027        .18087E-04** at limit **
  15  Prefactor     .10000E-03    101.29       -.24045E-04** at limit **
  16  norm          3.8011        7.4584        .10338E-05   -.17140E-03
  17  Prefactor     16.075        21.511        .20561E-05   -.56261E-04
  18  Prefactor     42.356        42.643       -.64189E-05    .12947E-03
  19  norm          .70474        .91103       -.58172E-06   -.19937E-03
  20  Prefactor     .10000E-03    5.4626       -.50026E-06** at limit **
  21  Prefactor     .10000E-03    21.156        .28803E-05** at limit **
  22  norm          1.3706        1.7175       -.39064E-06    .94735E-05
  23  Prefactor     .10000E-03    3.6266       -.18156E-06** at limit **
  24  Prefactor     .10065E-03    50.597       -.38505E-05** at limit **
  25  norm          .10000E-03    1.7541        .36198E-08** at limit **
  26  norm          4.8828        2.1172       -.15356E-06    .10456E-03
  27  Normalizat    .47113        .30128        .21215E-04    .15755E-03
  28  Prefactor     1.2074        .18928       -.38164E-05    .25210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 93.4891
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.92502
  norm       = 0.0001
  Prefactor  = 43.6934
  norm       = 0.0001
  Prefactor  = 12.0274
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.80108
  Prefactor  = 16.0748
  Prefactor  = 42.3559
  norm       = 0.704743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37065
  Prefactor  = 0.0001
  Prefactor  = 0.000100646
  norm       = 0.0001
  norm       = 4.8828
  Normalizat = 0.471133
  Prefactor  = 1.20739
 **********
 **   18 **HESSE 
 **********

 FCN=   3483.122     FROM HESSE     STATUS=OK           573 CALLS     3218 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1895.8        .23886E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.954        .99922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.403        .10577E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     93.489        230.09        .50354E-03   -1.3771    
   5  Prefactor     .10000E-03    17.657        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    143.44        .91515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    84.762        .10382E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.9250        7.4325        .39202E-02   -1.5221    
   9  norm          .10000E-03    6.2678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.693        56.327        .15559E-02   -1.4385    
  11  norm          .10000E-03    3.9462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.027        14.046        .29087E-02   -1.5014    
  13  Prefactor     .10000E-03    7.8632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.323        .97948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    97.313        .91098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8011        7.7360        .52797E-02   -1.5318    
  17  Prefactor     16.075        21.261        .25092E-02   -1.4906    
  18  Prefactor     42.356        42.378        .15310E-02   -1.4405    
  19  norm          .70474        .95794        .11972E-01   -1.5540    
  20  Prefactor     .10000E-03    5.5347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.994        .95995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3706        1.7398        .95613E-02   -1.5474    
  23  Prefactor     .10000E-03    3.7537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10065E-03    104.70        .91785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.7774        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.8828        2.1171        .45927E-02   -1.5266    
  27  Normalizat    .47113        .29211        .93872E-01   -1.1377    
  28  Prefactor     1.2074        .18320        .33977E-01   -.86104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36021e-08
Minuit parameter uncertainties:
  1  0.0140011
  2  0.000437685
  3  0.00015215
  4  232.337
  5  0.00049949
  6  0.000483416
  7  0.00176407
  8  7.43368
  9  2.51852e-05
  10  56.3961
  11  1.46993e-06
  12  14.0503
  13  2.71972e-05
  14  0.000912475
  15  0.000271284
  16  7.73805
  17  21.2712
  18  42.4078
  19  0.957957
  20  4.33951e-05
  21  7.46679e-05
  22  1.73991
  23  1.54144e-06
  24  0.0164774
  25  7.39615e-07
  26  2.11711
  27  0.293064
  28  0.183292
Done.

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

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  1.470e-06  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:  1.207e+00  1.833e-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:  4.711e-01  2.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/102997/likelihoodResults_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.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) = 3483.12320128
delta logL = -0.00119139672688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3483.12201047
delta logL = -5.88433522353e-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.3214       1.0000          .0000       5.0000    
     3 'Normalizat'    .47145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2072       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3483.122     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      225 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.4377        .11448E-02** at limit **
   2  alpha         2.3462        2.8803        .16514       -.29726E-06
   3  Normalizat    .47113        .28989        .41596E-03    .21701E-04
   4  Prefactor     1.2074        .19174        .17599E-03    .29553E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  alpha      = 2.34617
  Normalizat = 0.471131
  Prefactor  = 1.2074
 **********
 **   18 **HESSE 
 **********

 FCN=   3483.122     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    3.9687        .22895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3462        3.0986        .66056E-02   -.61572E-01
   3  Normalizat    .47113        .28995        .16638E-04   -1.1377    
   4  Prefactor     1.2074        .19178        .70398E-05   -.86104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25245e-09
Minuit parameter uncertainties:
  1  0.000446765
  2  463.428
  3  0.290887
  4  0.191891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102997': 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) = 3483.12200988
delta logL = 2.99451130559e-09

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  4.468e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.346e+00  4.634e+02  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:  1.207e+00  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:  4.711e-01  2.909e-01  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/102997/cmap_HighResolution_644716801_644976001_4FGL_J0704.8+4907_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-26 17:53:43.626013', job_id='102997', GAL2='1.21', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1630025623.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.99e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1564' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:53:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 102997: <4FGL_J0704.8+4907_daily_bin1564> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin1564> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 26 17:45:39 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:45:44 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:45:44 2021
Terminated at Thu Aug 26 17:53:44 2021
Results reported at Thu Aug 26 17:53:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1564 106.207 49.1318 644716801 644976001 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 :                                   461.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   479 sec.
    Turnaround time :                            485 sec.

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

