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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin653
RA = 128.667, Dec = 44.05
tmin = 408585601, tmax = 408844801
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='573831', job_status='RUN', time_executed='2021-08-30 01:34:30.078570', time_epoch_executed='1630312470.08' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573831/ft1_4FGL_J0834.6+4402_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573831/ft1_4FGL_J0834.6+4402_daily_bin653.fits outfile=/scratch/kocevski/573831/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin653.fits ra=128.667 dec=44.05 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.28
user 4.02
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.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/573831/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/573831/ltcube_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.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/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits
.....................!
real 11.75
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/573831/ltcube_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits outfile=/scratch/kocevski/573831/expmap_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.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/573831/ltcube_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits
.....................!
real 191.93
user 187.19
sys 4.18

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

Setting source of interest to:
4FGL J0834.6+4402 @ 128.667 44.05

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits outfile=/scratch/kocevski/573831/cmap_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.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=128.667 yref=44.05 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.62
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits outfile=/scratch/kocevski/573831/cmap_HighResolution_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.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=128.667 yref=44.05 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.62
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573831/Model_4FGL_J0834.6+4402_daily_bin653.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/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits.....................!
real 34.37
user 31.30
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits', '/scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits', expMap='/scratch/kocevski/573831/expmap_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits', expCube='/scratch/kocevski/573831/ltcube_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573831/Model_4FGL_J0834.6+4402_daily_bin653.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0834.6+4402'

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.700e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/573831/ft1_filtered_4FGL_J0834.6+4402_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/573831/ft2_4FGL_J0834.6+4402_daily_bin653.fits
Exposure map: /scratch/kocevski/573831/expmap_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits
Exposure cube: /scratch/kocevski/573831/ltcube_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573831/Model_4FGL_J0834.6+4402_daily_bin653.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) = 2522.0935826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4503       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1796       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4668       1.0000         .10000E-03   10000.    
    17 'norm      '    .11122E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.084       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5875       1.0000         .10000E-03   10000.    
    27 'norm      '    19.340       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96128       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77707       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2522.084     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4053 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3863       -.14277E-06** at limit **
   2  Prefactor     .10000E-03    16.571        .60840E-06** at limit **
   3  norm          .10000E-03    1.5039        .53769E-08** at limit **
   4  Prefactor     .10000E-03    7.3591       -.54743E-07** at limit **
   5  Prefactor     .10000E-03    29.471       -.20656E-05** at limit **
   6  Prefactor     .10000E-03    4.8764       -.28519E-08** at limit **
   7  norm          .10000E-03    5.6447        .22372E-06** at limit **
   8  norm          3.4497        4.2577        .28124E-06    .10558E-03
   9  norm          1.4647        1.0014        .22688E-07   -.80725E-05
  10  Prefactor     22.136        22.225       -.24356E-06   -.64106E-04
  11  Prefactor     6.3702        17.810        .99587E-06    .46241E-04
  12  Prefactor     .10000E-03    2.9580       -.99500E-07** at limit **
  13  Prefactor     .10000E-03    38.443        .25042E-05** at limit **
  14  Prefactor     .10000E-03    20.099       -.14857E-06** at limit **
  15  Prefactor     5.1312        54.461       -.70403E-06   -.45492E-04
  16  norm          7.4725        12.251        .25805E-05   -.16987E-03
  17  norm          .10000E-03    19.181       -.10070E-05** at limit **
  18  Prefactor     13.070        112.28       -.84978E-06   -.89327E-05
  19  Prefactor     2.6193        2.8881       -.81837E-07   -.14911E-04
  20  Prefactor     .10000E-03    18.640        .48064E-06** at limit **
  21  Prefactor     .10000E-03    74.220       -.73114E-06** at limit **
  22  Prefactor     .10000E-03    35.003        .54902E-08** at limit **
  23  Prefactor     .10000E-03    1.4310        .21686E-08** at limit **
  24  Prefactor     .10000E-03    15.092       -.57066E-06** at limit **
  25  norm          .10000E-03    .42236        .34681E-07** at limit **
  26  Prefactor     3.5884        4.6120        .12389E-06   -.34518E-04
  27  norm          19.340        12.916        .14661E-07    .13374E-05
  28  Prefactor     .10000E-03    1.4815        .68027E-08** at limit **
  29  Prefactor     .10000E-03    6.8441        .21502E-06** at limit **
  30  Normalizat    .96141        .27296       -.63970E-06    .21070E-05
  31  Prefactor     .77692        .22001        .42944E-07   -.13739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.44972
  norm       = 1.46467
  Prefactor  = 22.1356
  Prefactor  = 6.37023
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.13119
  norm       = 7.4725
  norm       = 0.0001
  Prefactor  = 13.0699
  Prefactor  = 2.61934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.58843
  norm       = 19.3405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.961414
  Prefactor  = 0.776919
 **********
 **   18 **HESSE 
 **********

 FCN=   2522.084     FROM HESSE     STATUS=OK           616 CALLS     4669 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3945        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5068        .60149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3859        .13306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9115        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.6577        .11624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4497        4.2599        .10984E-03   -1.5336    
   9  norm          1.4647        .99895        .38953E-04   -1.5466    
  10  Prefactor     22.136        22.268        .85107E-04   -1.4767    
  11  Prefactor     6.3702        17.844        .15898E-03   -1.5203    
  12  Prefactor     .10000E-03    2.9892        .84126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1312        49.230        .17664E-03   -1.5255    
  16  norm          7.4725        12.606        .73385E-03   -1.5161    
  17  norm          .10000E-03    19.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.070        100.18        .11074E-03   -1.4985    
  19  Prefactor     2.6193        2.8902        .86911E-04   -1.5384    
  20  Prefactor     .10000E-03    18.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    74.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4328        .58659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .44826        .60780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5884        4.4530        .11017E-03   -1.5329    
  27  norm          19.340        12.941        .91074E-04   -1.4828    
  28  Prefactor     .10000E-03    1.4886        .59653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.8584        .12841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96141        .32093        .24536E-03   -.94335    
  31  Prefactor     .77692        .25843        .22496E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18371e-10
Minuit parameter uncertainties:
  1  1.16475e-05
  2  7.3395e-05
  3  6.62353e-08
  4  3.19502e-06
  5  0.000337285
  6  5.4273e-06
  7  1.50638e-05
  8  4.26031
  9  0.998962
  10  22.2763
  11  17.8592
  12  5.78721e-06
  13  0.000487335
  14  1.96028e-05
  15  31.8213
  16  12.6104
  17  0.000158741
  18  72.5386
  19  2.89032
  20  6.56622e-05
  21  0.00019699
  22  3.94763e-06
  23  2.71809e-08
  24  6.49247e-05
  25  1.55646e-06
  26  4.45346
  27  12.943
  28  2.00501e-07
  29  1.65823e-05
  30  0.321571
  31  0.258835
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.960e-05  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.769e-01  2.588e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.614e-01  3.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573831/likelihoodResults_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.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) = 2522.0840327
delta logL = -0.000235817574321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2522.08379816
delta logL = -1.27494513436e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4181       1.0000          .0000       10.000    
     3 'Normalizat'    .96142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   2522.084     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      270 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10444E-03    6.1159        .18142E-01** at limit **
   2  Index         2.3204        8.5438        .50000        .31103E-04
   3  Normalizat    .96141        .39700E-02    .24536E-03    .12720E-03
   4  Prefactor     .77692        .33227E-02    .22496E-03    .14736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010444
  Index      = 2.32042
  Normalizat = 0.961414
  Prefactor  = 0.77692
 **********
 **   18 **HESSE 
 **********

 FCN=   2522.084     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10444E-03    67.978        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3204        5.9690        .50000       -.56559    
   3  Normalizat    .96141        .13156E-01    .49072E-04   -.94335    
   4  Prefactor     .77692        .11011E-01    .44992E-04   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10047e-09
Minuit parameter uncertainties:
  1  0.0347848
  2  138.523
  3  0.0131564
  4  0.0110111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573831': 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) = 2522.08379748
delta logL = -5.93347976974e-07

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.044e-04  3.478e-02  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.320e+00  1.385e+02  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.769e-01  1.101e-02  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  9.614e-01  1.316e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 128.667 44.050

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/573831/cmap_HighResolution_408585601_408844801_4FGL_J0834.6+4402_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-08-30 01:44:11.735170', job_id='573831', GAL2='0.78', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630313051.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-5.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='653' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:44:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 573831: <4FGL_J0834.6+4402_daily_bin653> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin653> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 01:30:34 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:30:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:30:35 2021
Terminated at Mon Aug 30 01:44:12 2021
Results reported at Mon Aug 30 01:44:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin653 128.667 44.05 408585601 408844801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0834.6+4402 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

