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


Performing analysis on: 4FGL_J0734.0+5021_daily_bin626
RA = 113.524, Dec = 50.3572
tmin = 401587201, tmax = 401846401
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='518719', job_status='RUN', time_executed='2021-08-27 16:26:11.016496', time_epoch_executed='1630106771.02' WHERE source_name='4FGL J0734.0+5021' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518719

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518719/ft1_4FGL_J0734.0+5021_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518719/ft1_4FGL_J0734.0+5021_daily_bin626.fits outfile=/scratch/kocevski/518719/ft1_filteredMKT_4FGL_J0734.0+5021_daily_bin626.fits ra=113.524 dec=50.3572 rad=12.0 tmin=401587201.0 tmax=401846401.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 3.71
user 3.01
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.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/518719/ft1_filteredMKT_4FGL_J0734.0+5021_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.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.93
user 0.26
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/518719/ltcube_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.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/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits
.....................!
real 10.25
user 8.79
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/518719/ltcube_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits outfile=/scratch/kocevski/518719/expmap_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.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/518719/ltcube_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits
.....................!
real 146.36
user 142.02
sys 3.90

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
Added 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J0734.0+5021 @ 113.524 50.3572

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits outfile=/scratch/kocevski/518719/cmap_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.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=113.524 yref=50.3572 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.93
user 0.30
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits outfile=/scratch/kocevski/518719/cmap_HighResolution_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.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=113.524 yref=50.3572 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.94
user 0.30
sys 0.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/518719/Model_4FGL_J0734.0+5021_daily_bin626.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
Working on...
/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits.....................!
real 64.99
user 62.73
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits', '/scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits', expMap='/scratch/kocevski/518719/expmap_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits', expCube='/scratch/kocevski/518719/ltcube_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/518719/Model_4FGL_J0734.0+5021_daily_bin626.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0734.0+5021'

4FGL J0734.0+5021
   Spectrum: PowerLaw
282    Prefactor:  9.135e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  8.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/518719/ft1_filtered_4FGL_J0734.0+5021_daily_bin626.fits
Spacecraft file(s): /scratch/kocevski/518719/ft2_4FGL_J0734.0+5021_daily_bin626.fits
Exposure map: /scratch/kocevski/518719/expmap_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits
Exposure cube: /scratch/kocevski/518719/ltcube_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/518719/Model_4FGL_J0734.0+5021_daily_bin626.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) = 8247.05459816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2201       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57869E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.893       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30826       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .66370       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8580       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8247.044     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3528 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.316        .12601E-05** at limit **
   2  norm          5.2196        4.0918       -.14319E-06   -.13746E-03
   3  norm          2.0381        3.0560        .10726E-06   -.18092E-03
   4  Prefactor     .10000E-03    6.4124       -.14719E-05** at limit **
   5  norm          1.5697        5.2167        .82971E-06   -.22015E-03
   6  Prefactor     .10000E-03    4.7044        .51676E-06** at limit **
   7  Prefactor     .95078        4.6464        .14894E-05   -.35022E-03
   8  Prefactor     .10009E-03    14.345       -.15629E-05** at limit **
   9  Prefactor     .10000E-03    6.9077        .11480E-05** at limit **
  10  norm          .10000E-03    2.2771       -.34887E-07** at limit **
  11  Prefactor     30.892        26.331        .11858E-06   -.74213E-04
  12  Prefactor     .10000E-03    5.2970        .11300E-05** at limit **
  13  norm          .30786        .58300        .22757E-06    .44329E-03
  14  Prefactor     .10000E-03    3.4495       -.58155E-08** at limit **
  15  Prefactor     .10000E-03    17.427        .50065E-06** at limit **
  16  norm          2.7667        2.1793        .39376E-07   -.78721E-04
  17  Prefactor     .10000E-03    2.0059        .46503E-08** at limit **
  18  Prefactor     .10000E-03    28.140       -.49954E-06** at limit **
  19  Prefactor     .10000E-03    12.644       -.21217E-06** at limit **
  20  Prefactor     .10000E-03    2.5719       -.59657E-08** at limit **
  21  norm          .10000E-03    .94273        .30280E-08** at limit **
  22  norm          4.7967        1.8920       -.59864E-08   -.43753E-05
  23  Prefactor     .10000E-03    4.8084       -.12506E-05** at limit **
  24  norm          .66370        .64036        .73953E-07   -.26872E-03
  25  Prefactor     .10000E-03    3.1342        .14046E-07** at limit **
  26  Prefactor     1.8583        7.0491        .86478E-06   -.13149E-03
  27  Normalizat    1.2118        .17712       -.40915E-06    .45533E-04
  28  Prefactor     .90125        .10504       -.11308E-06    .63406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.21963
  norm       = 2.03812
  Prefactor  = 0.000100001
  norm       = 1.5697
  Prefactor  = 0.0001
  Prefactor  = 0.950775
  Prefactor  = 0.000100086
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 30.8919
  Prefactor  = 0.000100001
  norm       = 0.307859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.79669
  Prefactor  = 0.000100001
  norm       = 0.663703
  Prefactor  = 0.0001
  Prefactor  = 1.85833
  Normalizat = 1.21175
  Prefactor  = 0.901248
 **********
 **   18 **HESSE 
 **********

 FCN=   8247.044     FROM HESSE     STATUS=OK           523 CALLS     4051 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2196        4.0651        .15358E-03   -1.5251    
   3  norm          2.0381        3.0369        .18651E-03   -1.5422    
   4  Prefactor     .10000E-03    6.6873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5697        4.8189        .31560E-03   -1.5457    
   6  Prefactor     .10000E-03    4.7402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .95078        4.5245        .35098E-03   -1.5513    
   8  Prefactor     .10009E-03    131.96        .60217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2876        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.892        26.206        .36044E-03   -1.4596    
  12  Prefactor     .10000E-03    5.4577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .30786        .49365        .94100E-03   -1.5597    
  14  Prefactor     .10000E-03    3.4622        .16469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7667        2.1741        .11551E-03   -1.5375    
  17  Prefactor     .10000E-03    2.0096        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6029        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .94616        .86095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7967        1.8936        .76188E-04   -1.5270    
  23  Prefactor     .10000E-03    5.0195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .66370        .61660        .68770E-03   -1.5545    
  25  Prefactor     .10000E-03    3.1737        .15694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8583        7.1208        .30575E-03   -1.5435    
  27  Normalizat    1.2118        .20466        .28120E-03   -.86240    
  28  Prefactor     .90125        .12203        .19636E-03   -.96098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93854e-09
Minuit parameter uncertainties:
  1  0.000350847
  2  4.06536
  3  3.03716
  4  0.000151714
  5  4.82008
  6  4.44227e-05
  7  4.14842
  8  0.00675814
  9  0.000121043
  10  2.37392e-06
  11  26.2155
  12  0.000105179
  13  0.493654
  14  8.43635e-07
  15  6.51587e-05
  16  2.17418
  17  7.98586e-08
  18  0.000107006
  19  2.96329e-05
  20  7.57069e-07
  21  3.11104e-08
  22  1.89358
  23  0.000110128
  24  0.616603
  25  1.7102e-06
  26  7.12409
  27  0.204794
  28  0.122071
Done.

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

Extracting fit parameters...

4FGL J0734.0+5021
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.052e-04  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  8.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.012e-01  1.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.212e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 113.524 50.357
Photon Flux Upper Limit: 3.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518719/likelihoodResults_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.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) = 8247.04497867
delta logL = -0.000869747800607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8247.04410876
delta logL = 1.64885932463e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4503       1.0000          .0000       10.000    
     3 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   8247.044     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      263 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.523        .18142E-01** at limit **
   2  Index         1.8182        5.5839        .50000       -.27194E-07
   3  Normalizat    1.2118        .88105E-02    .28120E-03    .71802E-04
   4  Prefactor     .90125        .54246E-02    .19636E-03    .11788E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81825
  Normalizat = 1.21175
  Prefactor  = 0.901248
 **********
 **   18 **HESSE 
 **********

 FCN=   8247.044     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    205.31        .24386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8182        7.7646        .50000       -.68976    
   3  Normalizat    1.2118        .24750E-01    .11248E-04   -.86240    
   4  Prefactor     .90125        .15239E-01    .78545E-05   -.96097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.80518e-11
Minuit parameter uncertainties:
  1  2.81387e-05
  2  811.072
  3  0.0247507
  4  0.0152388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518719': 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): 102
logL (Free Index) = 8247.04410637
delta logL = 2.55218037637e-06

Extracting fit parameters...

4FGL J0734.0+5021
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.814e-05  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.818e+00  8.111e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  8.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.012e-01  1.524e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.212e+00  2.475e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 113.524 50.357

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/518719/cmap_HighResolution_401587201_401846401_4FGL_J0734.0+5021_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-03', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2021-08-27 16:39:46.183277', job_id='518719', GAL2='0.90', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630107586.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='626' AND source_name='4FGL J0734.0+5021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 16:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 518719: <4FGL_J0734.0+5021_daily_bin626> in cluster <slac> Done

Job <4FGL_J0734.0+5021_daily_bin626> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 16:25:32 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 16:25:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 16:25:49 2021
Terminated at Fri Aug 27 16:39:46 2021
Results reported at Fri Aug 27 16:39:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0734.0+5021_daily_bin626 113.524 50.3572 401587201 401846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0734.0+5021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            854 sec.

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

