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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1460
RA = 106.207, Dec = 49.1318
tmin = 617760001, tmax = 618019201
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='102826', job_status='RUN', time_executed='2021-08-26 17:50:00.231227', time_epoch_executed='1630025400.23' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102826

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102826/ft1_4FGL_J0704.8+4907_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102826/ft1_4FGL_J0704.8+4907_daily_bin1460.fits outfile=/scratch/kocevski/102826/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1460.fits ra=106.207 dec=49.1318 rad=12.0 tmin=617760001.0 tmax=618019201.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.80
user 2.49
sys 8.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.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/102826/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/102826/ft1_filtered_4FGL_J0704.8+4907_daily_bin1460.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 8.55
user 0.35
sys 8.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102826/ft1_filtered_4FGL_J0704.8+4907_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/102826/ltcube_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.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/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits
.....................!
real 22.51
user 13.14
sys 9.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102826/ft1_filtered_4FGL_J0704.8+4907_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/102826/ltcube_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.fits outfile=/scratch/kocevski/102826/expmap_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.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/102826/ltcube_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.fits
.....................!
real 202.02
user 186.74
sys 14.74

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/102826/ft1_filtered_4FGL_J0704.8+4907_daily_bin1460.fits scfile=/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits outfile=/scratch/kocevski/102826/cmap_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.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 9.34
user 0.40
sys 8.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102826/ft1_filtered_4FGL_J0704.8+4907_daily_bin1460.fits scfile=/scratch/kocevski/102826/ft2_4FGL_J0704.8+4907_daily_bin1460.fits outfile=/scratch/kocevski/102826/cmap_HighResolution_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.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.42
user 0.39
sys 7.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0572       1.0000         .10000E-03   10000.    
     4 'Prefactor '    77.290       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.801       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    53.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    150.70       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3021       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.969       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .82223E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.745       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0531       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.

 FCN=   1005.850     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3368 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.785        .50376E-04** at limit **
   2  norm          .10000E-03    3.2403       -.10919E-07** at limit **
   3  norm          6.0576        9.0664       -.69798E-06   -.22836E-04
   4  Prefactor     77.308        74.755        .16848E-04   -.23282E-05
   5  Prefactor     48.806        33.700        .28004E-05    .22421E-04
   6  Prefactor     .10000E-03    99.367        .34246E-05** at limit **
   7  Prefactor     .10000E-03    44.598       -.35960E-04** at limit **
   8  norm          .10000E-03    25.030        .10349E-04** at limit **
   9  norm          53.538        36.568        .28807E-05    .19249E-04
  10  Prefactor     150.67        203.89       -.22771E-04    .13594E-04
  11  norm          .10000E-03    18.738        .57277E-05** at limit **
  12  Prefactor     .10000E-03    24.544        .94259E-05** at limit **
  13  Prefactor     .10000E-03    18.824        .12194E-05** at limit **
  14  Prefactor     .10000E-03    56.750        .18349E-04** at limit **
  15  Prefactor     .10000E-03    20.890       -.23070E-04** at limit **
  16  norm          .10000E-03    45.069       -.34096E-04** at limit **
  17  Prefactor     .10000E-03    23.888        .65724E-05** at limit **
  18  Prefactor     .10000E-03    127.16       -.11990E-03** at limit **
  19  norm          3.3021        3.4151        .19594E-06    .12866E-03
  20  Prefactor     .10000E-03    56.429        .17050E-04** at limit **
  21  Prefactor     .10000E-03    83.196        .48586E-04** at limit **
  22  norm          17.969        19.844       -.34923E-06    .18648E-04
  23  Prefactor     45.020        75.664        .55374E-04    .23844E-03
  24  Prefactor     .10032E-03    757.36       -.36593E-03** at limit **
  25  norm          15.746        14.486        .68299E-07    .48895E-04
  26  norm          .10000E-03    3.3563       -.87068E-07** at limit **
  27  Normalizat    .10000E-01    .25173       -.37068E-05** at limit **
  28  Prefactor     1.0530        .17689       -.96822E-06    .13397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.05756
  Prefactor  = 77.3077
  Prefactor  = 48.8064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 53.5381
  Prefactor  = 150.671
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9694
  Prefactor  = 45.0204
  Prefactor  = 0.000100317
  norm       = 15.7457
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.05305
 **********
 **   18 **HESSE 
 **********

 FCN=   1005.850     FROM HESSE     STATUS=OK           503 CALLS     3871 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2680        .55750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0576        9.0750        .11238E-03   -1.5216    
   4  Prefactor     77.308        74.746        .45677E-04   -1.3947    
   5  Prefactor     48.806        33.822        .57403E-04   -1.4310    
   6  Prefactor     .10000E-03    99.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.062        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          53.538        36.543        .54818E-04   -1.4243    
  10  Prefactor     150.67        204.60        .16416E-03   -1.3247    
  11  norm          .10000E-03    18.740        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.548        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.826        .13445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.873        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    45.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.886        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    126.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3021        3.4001        .56463E-04   -1.5345    
  20  Prefactor     .10000E-03    56.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    83.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.969        19.840        .94485E-04   -1.4860    
  23  Prefactor     45.020        76.210        .29891E-03   -1.4365    
  24  Prefactor     .10032E-03    765.96        .20886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.746        14.479        .10094E-03   -1.4914    
  26  norm          .10000E-03    3.3590        .56728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .27916        .91499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0530        .17160        .15122E-03   -.90982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22875e-09
Minuit parameter uncertainties:
  1  2.72704e-05
  2  5.29594e-07
  3  9.07701
  4  74.8371
  5  33.8357
  6  3.19711e-05
  7  1.17886e-06
  8  3.01732e-05
  9  36.5578
  10  205.573
  11  7.90273e-06
  12  1.34352e-06
  13  4.52118e-06
  14  7.68246e-06
  15  9.95632e-07
  16  1.01392e-05
  17  2.23861e-06
  18  3.30581e-05
  19  3.40029
  20  2.62523e-05
  21  0.000126859
  22  19.8472
  23  76.3756
  24  0.0315534
  25  14.4821
  26  2.89584e-06
  27  4.16165e-06
  28  0.171693
Done.

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

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  7.903e-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.053e+00  1.717e-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  4.162e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/102826/likelihoodResults_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.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) = 1005.8498217
delta logL = -0.000252592581205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1005.84957503
delta logL = -5.92783965203e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7087       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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=   1005.850     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      286 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1480.9        .78086E-02** at limit **
   2  alpha         1.6294        2.8361        .19994       -.72996E-08
   3  Normalizat    .10000E-01    .43654E-01    .91499E-02** at limit **
   4  Prefactor     1.0530        .59023E-01    .15122E-03    .16397E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.62936
  Normalizat = 0.01
  Prefactor  = 1.05305
 **********
 **   18 **HESSE 
 **********

 FCN=   1005.850     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.222        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6294        2.8593        .79974E-02   -.35571    
   3  Normalizat    .10000E-01    .27919        .18300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0530        .14978        .30245E-04   -.90982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19485e-10
Minuit parameter uncertainties:
  1  0.000549121
  2  654.271
  3  5.87308e-06
  4  0.149838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102826': 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) = 1005.84956859
delta logL = 5.10647737428e-07

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.000e-04  5.491e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  1.629e+00  6.543e+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.053e+00  1.498e-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  5.873e-06  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/102826/cmap_HighResolution_617760001_618019201_4FGL_J0704.8+4907_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-04', job_status='DONE', photon_flux_upper_limit='6.55e-07', time_completed='2021-08-26 17:58:57.526598', job_id='102826', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630025937.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1460' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 102826: <4FGL_J0704.8+4907_daily_bin1460> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1460 106.207 49.1318 617760001 618019201 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

