/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 8 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0704.8+4907_daily_bin302
RA = 106.207, Dec = 49.1318
tmin = 317606401, tmax = 317865601
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='95141', job_status='RUN', time_executed='2021-08-26 17:21:52.994931', time_epoch_executed='1630023712.99' WHERE source_name='4FGL J0704.8+4907' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95141/ft1_4FGL_J0704.8+4907_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95141/ft1_4FGL_J0704.8+4907_daily_bin302.fits outfile=/scratch/kocevski/95141/ft1_filteredMKT_4FGL_J0704.8+4907_daily_bin302.fits ra=106.207 dec=49.1318 rad=12.0 tmin=317606401.0 tmax=317865601.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.64
user 2.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95141/ft1_filtered_4FGL_J0704.8+4907_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/95141/ltcube_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.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/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits
.....................!
real 9.47
user 9.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95141/ft1_filtered_4FGL_J0704.8+4907_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/95141/ltcube_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.fits outfile=/scratch/kocevski/95141/expmap_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.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/95141/ltcube_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.fits
.....................!
real 146.42
user 142.40
sys 3.77

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/95141/ft1_filtered_4FGL_J0704.8+4907_daily_bin302.fits scfile=/scratch/kocevski/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits outfile=/scratch/kocevski/95141/cmap_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.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.49
user 0.29
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95141/ft1_filtered_4FGL_J0704.8+4907_daily_bin302.fits scfile=/scratch/kocevski/95141/ft2_4FGL_J0704.8+4907_daily_bin302.fits outfile=/scratch/kocevski/95141/cmap_HighResolution_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.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.49
user 0.30
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.696       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9117       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.662       1.0000         .10000E-03   10000.    
     8 'norm      '    .79328       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2878       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41291E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.219       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26298E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0125       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5585       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0372       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=   10369.27     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3535 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.666        46.661        .15683E-05   -.16524E-04
   2  norm          2.9114        2.0122       -.34034E-08   -.11714E-03
   3  norm          .10000E-03    .87970        .46274E-07** at limit **
   4  Prefactor     .10000E-03    12.217       -.15921E-06** at limit **
   5  Prefactor     .10000E-03    4.7980        .39185E-06** at limit **
   6  Prefactor     14.568        20.959        .26980E-06    .49520E-05
   7  Prefactor     27.663        27.864        .10860E-06    .34397E-05
   8  norm          .79199        4.1157        .12490E-05    .12041E-03
   9  norm          .10000E-03    1.3316        .16561E-06** at limit **
  10  Prefactor     .10000E-03    6.2688        .29178E-06** at limit **
  11  norm          5.2877        4.1761       -.10940E-06   -.34290E-03
  12  Prefactor     .10000E-03    5.7249       -.10396E-06** at limit **
  13  Prefactor     .10002E-03    4.0261       -.94877E-06** at limit **
  14  Prefactor     33.017        17.641       -.34671E-06   -.10058E-03
  15  Prefactor     .10000E-03    3.8928        .30050E-07** at limit **
  16  norm          1.8242        6.5270        .80838E-05   -.11947E-03
  17  Prefactor     .10000E-03    9.0178        .89643E-07** at limit **
  18  Prefactor     23.203        32.196        .23499E-05    .28448E-03
  19  norm          5.4727        1.2435        .34201E-07    .46416E-03
  20  Prefactor     .10000E-03    6.4971       -.16052E-05** at limit **
  21  Prefactor     .10000E-03    3.3663        .38635E-07** at limit **
  22  norm          .10000E-03    1.1653        .24941E-06** at limit **
  23  Prefactor     .10000E-03    1.7456        .37215E-07** at limit **
  24  Prefactor     .10000E-03    12.815        .20680E-06** at limit **
  25  norm          1.0129        2.5571        .38105E-06    .21149E-03
  26  norm          1.5583        1.3891       -.50839E-07    .24370E-03
  27  Normalizat    1.0412        .18804       -.16610E-05    .11955E-03
  28  Prefactor     1.0373        .87935E-01    .13950E-06    .47578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.666
  norm       = 2.9114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5675
  Prefactor  = 27.6628
  norm       = 0.791994
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.28773
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 33.0175
  Prefactor  = 0.0001
  norm       = 1.8242
  Prefactor  = 0.0001
  Prefactor  = 23.2034
  norm       = 5.47267
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01293
  norm       = 1.55835
  Normalizat = 1.04123
  Prefactor  = 1.03727
 **********
 **   18 **HESSE 
 **********

 FCN=   10369.27     FROM HESSE     STATUS=OK           525 CALLS     4060 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.666        46.594        .54736E-04   -1.4242    
   2  norm          2.9114        2.0161        .11636E-03   -1.5367    
   3  norm          .10000E-03    .88164        .93277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.568        20.957        .10494E-03   -1.4944    
   7  Prefactor     27.663        27.867        .76171E-04   -1.4656    
   8  norm          .79199        4.1428        .38974E-03   -1.5530    
   9  norm          .10000E-03    1.3570        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2877        4.1658        .86638E-03   -1.5248    
  12  Prefactor     .10000E-03    5.7274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    5.2531        .55078E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.017        17.615        .69737E-04   -1.4558    
  15  Prefactor     .10000E-03    3.8940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8242        6.6929        .15458E-02   -1.5438    
  17  Prefactor     .10000E-03    9.0311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.203        32.106        .83128E-04   -1.4744    
  19  norm          5.4727        1.2448        .51436E-04   -1.5240    
  20  Prefactor     .10000E-03    40.677        .48137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9900        .21197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.7470        .13139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0129        2.3829        .24684E-02   -1.5507    
  26  norm          1.5583        1.3955        .54423E-03   -1.5458    
  27  Normalizat    1.0412        .21007        .36000E-03   -.91662    
  28  Prefactor     1.0373        .99743E-01    .17675E-03   -.91497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05477e-10
Minuit parameter uncertainties:
  1  46.6253
  2  2.01618
  3  3.18988e-06
  4  6.85128e-06
  5  5.04821e-05
  6  20.9675
  7  27.88
  8  3.62291
  9  1.37538e-05
  10  1.96494e-05
  11  4.16601
  12  1.90137e-05
  13  0.000635709
  14  17.6182
  15  7.61114e-06
  16  6.69563
  17  2.91196e-05
  18  32.1301
  19  1.24483
  20  0.000530443
  21  4.36181e-06
  22  2.38166e-05
  23  3.06536e-06
  24  1.70063e-05
  25  2.38312
  26  1.39557
  27  0.210233
  28  0.0997609
Done.

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

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  5.288e+00  4.166e+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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.037e+00  9.976e-02  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.041e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 106.207 49.132
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 9.73e-06

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) = 10369.2309255
delta logL = 0.0393051940937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10369.2297509
delta logL = 0.0404798251966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3033       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0831       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0358       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=   10369.23     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      231 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3156        170.66        .43632E-02    .27390E-04
   2  alpha         2.0858        3.7056        .41899        .48517E-05
   3  Normalizat    1.0489        .23700        .81066E-01    .31083E-04
   4  Prefactor     1.0358        .66130E-01    .40825E-01   -.15580E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.31558
  alpha      = 2.08579
  Normalizat = 1.04889
  Prefactor  = 1.03577
 **********
 **   18 **HESSE 
 **********

 FCN=   10369.23     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3156        4.2959        .17453E-03   -1.5247    
   2  alpha         2.0858        .82183        .26842E-01   -.16645    
   3  Normalizat    1.0489        .19819        .35887E-03   -.91410    
   4  Prefactor     1.0358        .97008E-01    .17688E-03   -.91547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1361e-13
Minuit parameter uncertainties:
  1  4.29613
  2  0.83787
  3  0.198327
  4  0.0970245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95141': 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) = 10369.2297431
delta logL = 0.0404876201192

Extracting fit parameters...

4FGL J0704.8+4907
   Spectrum: LogParabola
265         norm:  5.316e+00  4.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        alpha:  2.086e+00  8.379e-01  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.036e+00  9.702e-02  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.049e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 106.207 49.132
Photon Index (Free Index): 2.09 +/- 0.84
Photon Flux (Free Index): 2.65e-08 +/- 3.32e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/95141/cmap_HighResolution_317606401_317865601_4FGL_J0704.8+4907_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.25e-05', photon_flux_error='2.70e-08', dlogl='4.05e-02', energy_flux='1.24e-05', photon_flux2='2.65e-08', job_status='DONE', time_completed='2021-08-26 17:35:53.750126', photon_index_error2='0.84', photon_index2='2.09', ts='4.98', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.04', time_epoch_completed='1630024553.75', return_code='0', job_id='95141', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='9.73e-06', photon_flux_error2='3.32e-08', ts2='5.06', photon_index='2.32' WHERE bin_id='302' AND source_name='4FGL J0704.8+4907' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 17:35:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 95141: <4FGL_J0704.8+4907_daily_bin302> in cluster <slac> Done

Job <4FGL_J0704.8+4907_daily_bin302> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 26 17:20:24 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 17:21:38 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:21:38 2021
Terminated at Thu Aug 26 17:35:54 2021
Results reported at Thu Aug 26 17:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0704.8+4907_daily_bin302 106.207 49.1318 317606401 317865601 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 :                                   838.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            930 sec.

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

