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


Performing analysis on: 4FGL_J0704.8+4907_daily_bin1184
RA = 106.207, Dec = 49.1318
tmin = 546220801, tmax = 546480001
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='99883', job_status='RUN', time_executed='2021-08-26 17:38:08.237792', time_epoch_executed='1630024688.24' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99883/ft1_4FGL_J0704.8+4907_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99883/ft1_4FGL_J0704.8+4907_daily_bin1184.fits outfile=/scratch/kocevski/99883/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin1184.fits ra=106.207 dec=49.1318 rad=12.0 tmin=546220801.0 tmax=546480001.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 5.45
user 3.64
sys 1.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/99883/ltcube_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.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/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits
.....................!
real 13.21
user 11.63
sys 1.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/99883/ltcube_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits outfile=/scratch/kocevski/99883/expmap_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.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/99883/ltcube_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits
.....................!
real 192.39
user 185.05
sys 6.42

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/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits scfile=/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits outfile=/scratch/kocevski/99883/cmap_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.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 1.55
user 0.36
sys 1.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits scfile=/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits outfile=/scratch/kocevski/99883/cmap_HighResolution_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.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 1.54
user 0.38
sys 1.12

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits', '/scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits', expMap='/scratch/kocevski/99883/expmap_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits', expCube='/scratch/kocevski/99883/ltcube_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99883/Model_4FGL_J0704.8+4907_daily_bin1184.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/99883/ft1_filtered_4FGL_J0704.8+4907_daily_bin1184.fits
Spacecraft file(s): /scratch/kocevski/99883/ft2_4FGL_J0704.8+4907_daily_bin1184.fits
Exposure map: /scratch/kocevski/99883/expmap_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits
Exposure cube: /scratch/kocevski/99883/ltcube_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99883/Model_4FGL_J0704.8+4907_daily_bin1184.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 798.393071807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 796.20108501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6349       1.0000         .10000E-03   10000.    
     2 'norm      '    .85229       1.0000         .10000E-03   10000.    
     3 'norm      '    25.152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22147E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3655       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5805       1.0000         .10000E-03   10000.    
     8 'norm      '    15.505       1.0000         .10000E-03   10000.    
     9 'norm      '    18.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60161E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46470       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7677       1.0000         .10000E-03   10000.    
    16 'norm      '    .64406E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82072       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49866E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.443       1.0000         .10000E-03   10000.    
    22 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45702E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33032       1.0000         .10000E-03   10000.    
    25 'norm      '    .83790E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .60180E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    2.6357       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .27725E-01   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=   796.1924     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      393 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6028        1.6801        .57426E-06    .90559E-03
   2  norm          .88767        81.899       -.59455E-04   -.42296E-03
   3  norm          25.142        1.2486        .47727E-06    .17753E-03
   4  Prefactor     4.7116        1.0057         .0000         .0000    
   5  Prefactor     .10000E-03    17.700        .41779E-05** at limit **
   6  Prefactor     3.3655        1.0115         .0000         .0000    
   7  Prefactor     4.5805        1.0061         .0000         .0000    
   8  norm          15.839        9.4494       -.45304E-05    .24983E-02
   9  norm          18.248        3.3235        .15501E-05   -.60830E-03
  10  Prefactor     .10108E-03    25.820        .37361E-05** at limit **
  11  norm          .12804E-03    73.088       -.26833E-04** at limit **
  12  Prefactor     2.3504        1.0246         .0000         .0000    
  13  Prefactor     17.765        31.433        .43733E-05    .42646E-02
  14  Prefactor     .10838E-03    80.169        .20978E-05** at limit **
  15  Prefactor     5.7677        1.0038         .0000         .0000    
  16  norm          .10000E-03    15.907       -.28554E-05** at limit **
  17  Prefactor     3.5212        1.0104         .0000         .0000    
  18  Prefactor     .10596E-03    132.93        .16075E-05** at limit **
  19  norm          1.0164        1.3026         .0000         .0000    
  20  Prefactor     .10012E-03    51.325       -.19996E-04** at limit **
  21  Prefactor     31.155        82.300        .34976E-04    .44153E-03
  22  norm          .10000E-03    8.3397        .12349E-05** at limit **
  23  Prefactor     .12174E-03    34.010       -.18295E-04** at limit **
  24  Prefactor     .13046E-03    128.70       -.43499E-05** at limit **
  25  norm          .10029E-03    59.203        .41641E-05** at limit **
  26  norm          .10000E-03    19.431        .74309E-05** at limit **
  27  Normalizat    2.6461        .77905        .91066E-05    .47793E-04
  28  Prefactor     .25848E-01    .70182       -.37270E-04    .83274E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.60283
  norm       = 0.887672
  norm       = 25.1415
  Prefactor  = 4.7116
  Prefactor  = 0.0001
  Prefactor  = 3.36551
  Prefactor  = 4.58054
  norm       = 15.8392
  norm       = 18.2476
  Prefactor  = 0.000101077
  norm       = 0.000128043
  Prefactor  = 2.35041
  Prefactor  = 17.7651
  Prefactor  = 0.000108378
  Prefactor  = 5.76768
  norm       = 0.0001
  Prefactor  = 3.52117
  Prefactor  = 0.000105964
  norm       = 1.01645
  Prefactor  = 0.000100119
  Prefactor  = 31.1552
  norm       = 0.0001
  Prefactor  = 0.000121743
  Prefactor  = 0.000130455
  norm       = 0.000100286
  norm       = 0.0001
  Normalizat = 2.6461
  Prefactor  = 0.025848
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   796.1924     FROM HESSE     STATUS=FAILED        27 CALLS      420 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6028        8382.2        .32276E-02   -1.5088    
   2  norm          .88767        36.467        .54574E-01   -1.5520    
   3  norm          25.142        18.731        .19969E-02   -1.4705    
   4  Prefactor     534.45        529.69         .0000       -1.5274    
   5  Prefactor     .10000E-03    .25339        .41779E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3655        1.0115         .0000       -1.5341    
   7  Prefactor     4.5805        1.0061         .0000       -1.5280    
   8  norm          15.839        1.0112       -.45304E-05   -1.4912    
   9  norm          18.248        .99929        .15501E-05   -1.4853    
  10  Prefactor     .10108E-03    .21713        .37361E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12804E-03    .22760       -.26833E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3504        1.0246         .0000       -1.5401    
  13  Prefactor     17.765        1.0068        .43733E-05   -1.4865    
  14  Prefactor     .10838E-03    .30945        .20978E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7677        1.0038         .0000       -1.5228    
  16  norm          .10000E-03    .22164       -.28554E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.5212        1.0104         .0000       -1.5333    
  18  Prefactor     .10596E-03    .39168        .16075E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0164        1.3026         .0000       -1.5506    
  20  Prefactor     .10012E-03    .21480       -.19996E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.155        .95133        .34976E-04   -1.4591    
  22  norm          .10000E-03    .20571        .12349E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12174E-03    .21386       -.18295E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13046E-03    .27863       -.43499E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10029E-03    .22248        .41641E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .27726        .74309E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    2.6461        1.0094        .91066E-05   -.49184    
  28  Prefactor     .25848E-01    .26098       -.37270E-04   -1.4691    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.60093e-10
Minuit parameter uncertainties:
  1  2564.19
  2  11.3859
  3  18.7354
  4  1.00574
  5  7.47704e-07
  6  1.01148
  7  1.00608
  8  1.01121
  9  0.99929
  10  0.000967291
  11  0.00505275
  12  1.02464
  13  1.00679
  14  0.00322034
  15  1.00381
  16  3.57887e-06
  17  1.01045
  18  0.00305686
  19  1.30263
  20  0.000319637
  21  0.951326
  22  1.24058e-06
  23  0.00431284
  24  0.00582613
  25  0.000504934
  26  1.15219e-06
  27  1.0185
  28  0.165205
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 796.192363496

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.280e-04  5.053e-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:  2.585e-02  1.652e-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:  2.646e+00  1.018e+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: 1.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99883/likelihoodResults_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.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) = 796.192392858
delta logL = -2.93615825058e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 796.192392772
delta logL = -2.92761159244e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95937E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3212       1.0000          .0000       5.0000    
     3 'Normalizat'    2.6461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25849E-01   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=   796.1924     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10043E-03    542.32        .90754E-02** at limit **
   2  alpha         2.4399        3.6749        .41285       -.40624E-05
   3  Normalizat    2.6461        2.2928        .57533E-01    .32977E-04
   4  Prefactor     .25850E-01    6.7081        .17797        .40135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100433
  alpha      = 2.43991
  Normalizat = 2.6461
  Prefactor  = 0.0258496
 **********
 **   18 **HESSE 
 **********

 FCN=   796.1924     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10043E-03    340.69        .18151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4399        3.5400        .16514       -.24039E-01
   3  Normalizat    2.6461        .69771        .25426E-03   -.49185    
   4  Prefactor     .25850E-01    .56018        .64339E-02   -1.4691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02456e-09
Minuit parameter uncertainties:
  1  0.0244206
  2  2.50787
  3  0.700663
  4  0.243302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99883': 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) = 796.192363226
delta logL = 2.69885617854e-07

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  1.004e-04  2.442e-02  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.440e+00  2.508e+00  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:  2.585e-02  2.433e-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:  2.646e+00  7.007e-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/99883/cmap_HighResolution_546220801_546480001_4FGL_J0704.8+4907_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-04', job_status='DONE', photon_flux_upper_limit='1.34e-06', time_completed='2021-08-26 17:44:07.502311', job_id='99883', GAL2='0.03', fit_tolerance='1e-08', EG2='2.65', EG='2.65', time_epoch_completed='1630025047.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.03', dlogl='2.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1184' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 99883: <4FGL_J0704.8+4907_daily_bin1184> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin1184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 26 17:35:35 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:35:36 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:35:36 2021
Terminated at Thu Aug 26 17:44:08 2021
Results reported at Thu Aug 26 17:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin1184 106.207 49.1318 546220801 546480001 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 :                                   373.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            513 sec.

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

