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


Performing analysis on: 4FGL_J0434.7+0922_daily_bin322
RA = 68.6886, Dec = 9.3783
tmin = 322790401, tmax = 323049601
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='583574', job_status='RUN', time_executed='2021-08-20 22:53:26.784551', time_epoch_executed='1629525206.78' WHERE source_name='4FGL J0434.7+0922' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583574/ft1_4FGL_J0434.7+0922_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583574/ft1_4FGL_J0434.7+0922_daily_bin322.fits outfile=/scratch/kocevski/583574/ft1_filteredMKT_4FGL_J0434.7+0922_daily_bin322.fits ra=68.6886 dec=9.3783 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.19
user 11.52
sys 0.61

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.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/583574/ft1_filteredMKT_4FGL_J0434.7+0922_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.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.76
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/583574/ltcube_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.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/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits
.....................!
real 11.40
user 10.77
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/583574/ltcube_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits outfile=/scratch/kocevski/583574/expmap_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.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/583574/ltcube_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits
.....................!
real 189.78
user 185.00
sys 4.41

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

Setting source of interest to:
4FGL J0434.7+0922 @ 68.6886 9.3783

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits outfile=/scratch/kocevski/583574/cmap_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.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=68.6886 yref=9.3783 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.77
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits outfile=/scratch/kocevski/583574/cmap_HighResolution_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.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=68.6886 yref=9.3783 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.78
user 0.39
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583574/Model_4FGL_J0434.7+0922_daily_bin322.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/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits.....................!
real 61.00
user 59.21
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits', '/scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits', expMap='/scratch/kocevski/583574/expmap_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits', expCube='/scratch/kocevski/583574/ltcube_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/583574/Model_4FGL_J0434.7+0922_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0434.7+0922'

4FGL J0434.7+0922
   Spectrum: PowerLaw
213    Prefactor:  7.725e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
214        Index:  1.954e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
215        Scale:  2.989e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/583574/ft1_filtered_4FGL_J0434.7+0922_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/583574/ft2_4FGL_J0434.7+0922_daily_bin322.fits
Exposure map: /scratch/kocevski/583574/expmap_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits
Exposure cube: /scratch/kocevski/583574/ltcube_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/583574/Model_4FGL_J0434.7+0922_daily_bin322.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) = 3654.83287329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    88.780       1.0000         .10000E-03   10000.    
     6 'norm      '    49.560       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.557       1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.162       1.0000         .10000E-03   10000.    
    14 'norm      '    .30171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    153.62       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6292       1.0000         .10000E-03   10000.    
    20 'norm      '    .68814       1.0000         .10000E-03   10000.    
    21 'norm      '    10.923       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.787       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10524E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0017       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3654.824     FROM MIGRAD    STATUS=CONVERGED     67 CALLS     3028 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    31.821       -.96375E-05** at limit **
   2  Prefactor     30.894        1.0345        .15761E-06   -.77388E-03
   3  Prefactor     30.833        1.0197        .11915E-06   -.37608E-03
   4  Prefactor     74.418        1.0025        .26997E-07   -.28100E-03
   5  Prefactor     88.779        1.0387       -.99449E-07    .13273E-02
   6  norm          49.562        1.1751        .29194E-06   -.17407E-02
   7  norm          .10000E-03    1.4513        .28960E-05** at limit **
   8  Prefactor     4.8223        2.5948        .34297E-05    .11762E-01
   9  Prefactor     78.141        1.4386        .39007E-06   -.42863E-02
  10  Prefactor     39.828        1.7611        .76527E-06   -.44250E-02
  11  Prefactor     31.555        1.0814       -.24020E-06    .85246E-03
  12  norm          .10003E-03    4.1722        .28931E-05** at limit **
  13  Prefactor     47.162        1.0008        .18419E-07   -.12265E-03
  14  norm          .10091E-03    24.101        .31359E-04** at limit **
  15  Prefactor     .10000E-03    14.751       -.63152E-05** at limit **
  16  norm          5.7668        4.1494        .80197E-06    .25524E-02
  17  Prefactor     153.62        1.0248        .60314E-07   -.13263E-02
  18  Prefactor     .10010E-03    31.543       -.54471E-05** at limit **
  19  Prefactor     3.6284        1.0128        .77007E-07    .10097E-04
  20  norm          .69026        1.3838       -.93185E-06    .20841E-04
  21  norm          10.915        2.4858        .22030E-05   -.13391E-02
  22  Prefactor     .10003E-03    4.1398       -.35059E-05** at limit **
  23  Prefactor     26.785        1.0156        .93682E-07   -.35593E-03
  24  Normalizat    .10000E-01    7.6901        .16317E-06** at limit **
  25  Prefactor     1.0019        .70148E-01    .51115E-05    .19867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100201
  Prefactor  = 30.8936
  Prefactor  = 30.8326
  Prefactor  = 74.4181
  Prefactor  = 88.7793
  norm       = 49.5623
  norm       = 0.0001
  Prefactor  = 4.82225
  Prefactor  = 78.1411
  Prefactor  = 39.8277
  Prefactor  = 31.5555
  norm       = 0.00010003
  Prefactor  = 47.162
  norm       = 0.000100909
  Prefactor  = 0.000100001
  norm       = 5.76678
  Prefactor  = 153.617
  Prefactor  = 0.000100095
  Prefactor  = 3.6284
  norm       = 0.690262
  norm       = 10.9155
  Prefactor  = 0.000100031
  Prefactor  = 26.7853
  Normalizat = 0.01
  Prefactor  = 1.0019
 **********
 **   18 **HESSE 
 **********

 FCN=   3654.824     FROM HESSE     STATUS=OK           499 CALLS     3527 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    63.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.894        36.790        .18022E-02   -1.4596    
   3  Prefactor     30.833        54.144        .18040E-02   -1.4597    
   4  Prefactor     74.418        66.094        .11636E-02   -1.3980    
   5  Prefactor     88.779        101.21        .10661E-02   -1.3821    
   6  norm          49.562        81.975        .14241E-02   -1.4299    
   7  norm          .10000E-03    1.4437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8223        4.8429        .45812E-02   -1.5269    
   9  Prefactor     78.141        67.546        .11357E-02   -1.3938    
  10  Prefactor     39.828        123.29        .15879E-02   -1.4445    
  11  Prefactor     31.555        26.253        .17832E-02   -1.4584    
  12  norm          .10003E-03    7.5348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.162        64.055        .14597E-02   -1.4333    
  14  norm          .10091E-03    6.4626        .80090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7668        4.2412        .41814E-02   -1.5228    
  17  Prefactor     153.62        122.79        .81310E-03   -1.3223    
  18  Prefactor     .10010E-03    62.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6284        8.8564        .53018E-02   -1.5327    
  20  norm          .69026        1.8600        .22878E-01   -1.5542    
  21  norm          10.915        12.659        .30306E-02   -1.5047    
  22  Prefactor     .10003E-03    7.5259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.785        14.593        .19351E-02   -1.4672    
  24  Normalizat    .10000E-01    .80123        .33755       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0019        .10560        .30515E-01   -.92666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04177e-06
Minuit parameter uncertainties:
  1  0.00715223
  2  36.8172
  3  54.2303
  4  66.1595
  5  101.406
  6  82.162
  7  3.16084e-06
  8  4.84328
  9  67.612
  10  124.095
  11  26.2631
  12  0.000958322
  13  64.1491
  14  0.00484843
  15  0.000245466
  16  4.24138
  17  122.999
  18  0.00487258
  19  8.85964
  20  1.86017
  21  12.6622
  22  0.000964385
  23  14.5952
  24  5.92308e-05
  25  0.105619
Done.

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

Extracting fit parameters...

4FGL J0434.7+0922
   Spectrum: PowerLaw
213    Prefactor:  4.716e+01  6.415e+01  1.000e-04  1.000e+04 ( 1.000e-14)
214        Index:  1.954e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
215        Scale:  2.989e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.002e+00  1.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.000e-02  5.923e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 68.689 9.378
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 3.99e-05

TS (Fixed Index): 1.10
Ra Dec: 68.689 9.378
Photon Flux Upper Limit: 2.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583574/likelihoodResults_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.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) = 3654.81030565
delta logL = 0.0136148853248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3654.79993523
delta logL = 0.0239852999362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.050       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1743       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   3654.800     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      316 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.042        77.731        .66747E-04   -.86048E-04
   2  Index         2.1741        1.1019        .63294E-02   -.60056E-04
   3  Normalizat    .10000E-01    .73347        .32569    ** at limit **
   4  Prefactor     1.0009        .10639        .13490E-03    .74758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0417
  Index      = 2.17412
  Normalizat = 0.01
  Prefactor  = 1.00091
 **********
 **   18 **HESSE 
 **********

 FCN=   3654.800     FROM HESSE     STATUS=OK            35 CALLS      351 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.042        71.599        .13349E-04   -1.4507    
   2  Index         2.1741        1.0164        .25318E-03   -.60065    
   3  Normalizat    .10000E-01    .73302        .32569       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0009        .10641        .26980E-04   -.92699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50259e-10
Minuit parameter uncertainties:
  1  71.7704
  2  1.02697
  3  3.76507e-06
  4  0.106435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583574': 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) = 3654.79993386
delta logL = 0.0239866695092

Extracting fit parameters...

4FGL J0434.7+0922
   Spectrum: PowerLaw
213    Prefactor:  3.604e+01  7.177e+01  1.000e-04  1.000e+04 ( 1.000e-14)
214        Index:  2.174e+00  1.027e+00  0.000e+00  1.000e+01 (-1.000e+00)
215        Scale:  2.989e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.001e+00  1.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.000e-02  3.765e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 68.689 9.378
Photon Index (Free Index): 2.17 +/- 1.03
Photon Flux (Free Index): 4.96e-08 +/- 8.58e-08
Energy Flux (Free Index): 2.34e-05 +/- 3.67e-05

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/583574/cmap_HighResolution_322790401_323049601_4FGL_J0434.7+0922_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='2.34e-05', photon_flux_error='5.13e-08', dlogl='2.40e-02', energy_flux='2.93e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-08-20 23:02:59.709435', photon_index_error2='1.03', photon_index2='2.17', ts='1.10', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='3.67e-05', EG='0.01', time_epoch_completed='1629525779.71', return_code='0', job_id='583574', GAL2='1.00', EG2='0.01', return_code2='0', energy_flux_error='3.99e-05', photon_flux_error2='8.58e-08', ts2='1.15', photon_index='1.95' WHERE bin_id='322' AND source_name='4FGL J0434.7+0922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 23:02:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 583574: <4FGL_J0434.7+0922_daily_bin322> in cluster <slac> Done

Job <4FGL_J0434.7+0922_daily_bin322> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 22:50:18 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 22:50:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 22:50:19 2021
Terminated at Fri Aug 20 23:03:00 2021
Results reported at Fri Aug 20 23:03:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0434.7+0922_daily_bin322 68.6886 9.3783 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0434.7+0922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   572.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

