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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin712
RA = 162.467, Dec = 14.4835
tmin = 423878401, tmax = 424137601
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='230012', job_status='RUN', time_executed='2021-09-02 17:24:11.516345', time_epoch_executed='1630628651.52' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230012/ft1_4FGL_J1049.8+1429_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230012/ft1_4FGL_J1049.8+1429_daily_bin712.fits outfile=/scratch/kocevski/230012/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin712.fits ra=162.467 dec=14.4835 rad=12.0 tmin=423878401.0 tmax=424137601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.47
user 5.21
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.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/230012/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/230012/ltcube_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.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/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits
.....................!
real 16.73
user 16.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/230012/ltcube_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits outfile=/scratch/kocevski/230012/expmap_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.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/230012/ltcube_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits
.....................!
real 191.34
user 186.50
sys 4.26

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

Setting source of interest to:
4FGL J1049.8+1429 @ 162.467 14.4835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits outfile=/scratch/kocevski/230012/cmap_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.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=162.467 yref=14.4835 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits outfile=/scratch/kocevski/230012/cmap_HighResolution_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.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=162.467 yref=14.4835 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230012/Model_4FGL_J1049.8+1429_daily_bin712.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/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits.....................!
real 41.16
user 39.31
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits', '/scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits', expMap='/scratch/kocevski/230012/expmap_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits', expCube='/scratch/kocevski/230012/ltcube_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230012/Model_4FGL_J1049.8+1429_daily_bin712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1049.8+1429'

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  4.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/230012/ft1_filtered_4FGL_J1049.8+1429_daily_bin712.fits
Spacecraft file(s): /scratch/kocevski/230012/ft2_4FGL_J1049.8+1429_daily_bin712.fits
Exposure map: /scratch/kocevski/230012/expmap_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits
Exposure cube: /scratch/kocevski/230012/ltcube_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230012/Model_4FGL_J1049.8+1429_daily_bin712.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) = 3687.44926488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7190       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18740E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.793       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3687.447     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2301 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    24.317       -.57832E-05** at limit **
   2  Prefactor     .10001E-03    16.229        .42646E-05** at limit **
   3  Prefactor     .10002E-03    25.371        .63069E-05** at limit **
   4  Prefactor     .10000E-03    8.5824       -.25310E-06** at limit **
   5  Prefactor     1.4776        5.0695        .17533E-06   -.19561E-03
   6  Prefactor     3.4811        3.8729       -.27069E-06   -.38498E-03
   7  Prefactor     .10000E-03    1.4975        .26352E-08** at limit **
   8  Prefactor     2.7193        5.2273        .43339E-05   -.11444E-02
   9  Prefactor     3.1748        9.6134        .38013E-06   -.67166E-04
  10  Prefactor     .10000E-03    3.1681       -.67060E-08** at limit **
  11  Prefactor     .10000E-03    6.2947       -.22107E-06** at limit **
  12  Prefactor     .10001E-03    16.904       -.43394E-05** at limit **
  13  norm          .10000E-03    1.5061       -.96073E-07** at limit **
  14  Prefactor     .10030E-03    26.136       -.86778E-06** at limit **
  15  Prefactor     .10000E-03    7.0218        .72776E-06** at limit **
  16  norm          .10000E-03    7.1963       -.29764E-06** at limit **
  17  Prefactor     .10000E-03    5.3573        .35381E-07** at limit **
  18  Prefactor     24.805        46.712        .22766E-05    .93962E-04
  19  Normalizat    1.0247        .23095       -.81143E-06    .88305E-04
  20  Prefactor     1.1444        .22117       -.24357E-06    .73688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.000100007
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 1.47763
  Prefactor  = 3.48113
  Prefactor  = 0.0001
  Prefactor  = 2.71926
  Prefactor  = 3.17479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.000100302
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.805
  Normalizat = 1.02473
  Prefactor  = 1.14438
 **********
 **   18 **HESSE 
 **********

 FCN=   3687.447     FROM HESSE     STATUS=OK           287 CALLS     2588 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    25.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    16.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    26.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5870        .17378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4776        5.0326        .24584E-03   -1.5465    
   6  Prefactor     3.4811        3.8593        .11834E-03   -1.5335    
   7  Prefactor     .10000E-03    1.5278        .72522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7193        5.6262        .10062E-02   -1.5378    
   9  Prefactor     3.1748        9.5573        .22743E-03   -1.5352    
  10  Prefactor     .10000E-03    3.1717        .10555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3063        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    17.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6127        .14218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10030E-03    241.12        .58631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0889        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.2618        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3609        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.805        46.801        .80449E-04   -1.4711    
  19  Normalizat    1.0247        .26797        .25431E-03   -.92207    
  20  Prefactor     1.1444        .26014        .23427E-03   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81822e-09
Minuit parameter uncertainties:
  1  0.00113296
  2  0.000681532
  3  0.00127173
  4  2.83146e-05
  5  5.034
  6  3.85957
  7  1.74615e-06
  8  5.62725
  9  9.56189
  10  1.50157e-06
  11  1.83431e-05
  12  0.00068536
  13  1.65993e-06
  14  0.0171252
  15  7.19689e-05
  16  3.71929e-05
  17  1.8441e-06
  18  46.8707
  19  0.268322
  20  0.26043
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  2.719e+00  5.627e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.144e+00  2.604e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.025e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 162.467 14.483
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230012/likelihoodResults_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.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) = 3686.56774816
delta logL = 0.879738098556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3686.55528752
delta logL = 0.892198740038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4091       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4244       1.0000          .0000       10.000    
     3 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3686.555     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4166        4.0320        .54776E-02   -.62704E-04
   2  Index         1.4243        .46691        .20321       -.41944E-04
   3  Normalizat    1.0418        .22596        .41100E-01    .71114E-05
   4  Prefactor     1.1284        .21939        .53232E-01    .29108E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41662
  Index      = 1.42433
  Normalizat = 1.04182
  Prefactor  = 1.12837
 **********
 **   18 **HESSE 
 **********

 FCN=   3686.555     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4166        5.0436        .12812E-03   -1.5338    
   2  Index         1.4243        .66622        .78726E-02   -.79682    
   3  Normalizat    1.0418        .26581        .25233E-03   -.91642    
   4  Prefactor     1.1284        .25803        .23536E-03   -.88565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68908e-12
Minuit parameter uncertainties:
  1  5.04423
  2  0.670326
  3  0.266151
  4  0.258321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230012': 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) = 3686.5552836
delta logL = 0.892202659755

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  3.417e+00  5.044e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  1.424e+00  6.703e-01  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  5.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.128e+00  2.583e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.042e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 162.467 14.483
Photon Index (Free Index): 1.42 +/- 0.67
Photon Flux (Free Index): 9.29e-09 +/- 1.29e-08
Energy Flux (Free Index): 3.79e-05 +/- 7.13e-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/230012/cmap_HighResolution_423878401_424137601_4FGL_J1049.8+1429_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', energy_flux2='3.79e-05', dlogl='8.92e-01', photon_flux2='9.29e-09', job_status='DONE', time_completed='2021-09-02 17:32:34.854914', photon_index_error2='0.67', photon_index2='1.42', ts='0.34', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='7.13e-05', EG='1.02', time_epoch_completed='1630629154.85', return_code='0', job_id='230012', GAL2='1.13', EG2='1.04', return_code2='0', photon_flux_error2='1.29e-08', ts2='2.13', photon_index='2.59' WHERE bin_id='712' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:32:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 230012: <4FGL_J1049.8+1429_daily_bin712> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin712> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 17:21:57 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:24:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:24:00 2021
Terminated at Thu Sep  2 17:32:35 2021
Results reported at Thu Sep  2 17:32:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin712 162.467 14.4835 423878401 424137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1049.8+1429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            638 sec.

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

