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


Performing analysis on: 4FGL_J1049.8+1429_daily_bin1624
RA = 162.467, Dec = 14.4835
tmin = 660268801, tmax = 660528001
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='299960', job_status='RUN', time_executed='2021-12-07 21:17:16.739683', time_epoch_executed='1638940636.74' WHERE source_name='4FGL J1049.8+1429' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299960/ft1_4FGL_J1049.8+1429_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299960/ft1_4FGL_J1049.8+1429_daily_bin1624.fits outfile=/scratch/kocevski/299960/ft1_filteredMKT_4FGL_J1049.8+1429_daily_bin1624.fits ra=162.467 dec=14.4835 rad=12.0 tmin=660268801.0 tmax=660528001.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.87
user 3.64
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/299960/ltcube_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.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/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits
.....................!
real 14.47
user 14.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/299960/ltcube_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits outfile=/scratch/kocevski/299960/expmap_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.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/299960/ltcube_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits
.....................!
real 192.99
user 186.86
sys 5.58

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/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits scfile=/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits outfile=/scratch/kocevski/299960/cmap_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits scfile=/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits outfile=/scratch/kocevski/299960/cmap_HighResolution_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits', '/scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits', expMap='/scratch/kocevski/299960/expmap_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits', expCube='/scratch/kocevski/299960/ltcube_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299960/Model_4FGL_J1049.8+1429_daily_bin1624.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/299960/ft1_filtered_4FGL_J1049.8+1429_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/299960/ft2_4FGL_J1049.8+1429_daily_bin1624.fits
Exposure map: /scratch/kocevski/299960/expmap_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits
Exposure cube: /scratch/kocevski/299960/ltcube_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299960/Model_4FGL_J1049.8+1429_daily_bin1624.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) = 7417.89128122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    35.775       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.134       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .72842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.171       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0819       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=   7417.888     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2015 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.461        .96105E-05** at limit **
   2  Prefactor     35.769        34.479       -.86753E-05    .14812E-04
   3  Prefactor     .10000E-03    18.264        .11780E-04** at limit **
   4  Prefactor     .10000E-03    6.0372        .98345E-07** at limit **
   5  Prefactor     .10000E-03    8.5679       -.34083E-05** at limit **
   6  Prefactor     .77558E-01    1.5143       -.61692E-06    .69197E-03
   7  Prefactor     .10000E-03    .56761       -.24283E-07** at limit **
   8  Prefactor     15.367        8.1409       -.28579E-06    .34146E-04
   9  Prefactor     19.948        9.1290       -.21365E-07    .36952E-03
  10  Prefactor     13.131        10.800       -.79366E-06    .41226E-04
  11  Prefactor     18.063        11.928        .45617E-06    .41943E-04
  12  Prefactor     .10000E-03    3.9853       -.79582E-09** at limit **
  13  norm          .72828        1.0480       -.27405E-07   -.14227E-03
  14  Prefactor     33.166        21.822       -.55312E-05    .51814E-04
  15  Prefactor     .10000E-03    2.1986       -.88633E-08** at limit **
  16  norm          12.165        8.7682       -.53435E-06   -.69559E-03
  17  Prefactor     .10000E-03    12.262       -.50924E-05** at limit **
  18  Prefactor     .10000E-03    15.091       -.99330E-05** at limit **
  19  Normalizat    1.0397        .17478        .17201E-05    .29439E-03
  20  Prefactor     1.0819        .16104        .66844E-06    .34339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0775581
  Prefactor  = 0.0001
  Prefactor  = 15.3673
  Prefactor  = 19.9479
  Prefactor  = 13.1315
  Prefactor  = 18.0635
  Prefactor  = 0.0001
  norm       = 0.728284
  Prefactor  = 33.1662
  Prefactor  = 0.0001
  norm       = 12.1653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03973
  Prefactor  = 1.08195
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.888     FROM HESSE     STATUS=OK           291 CALLS     2306 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.769        34.519        .67002E-04   -1.4511    
   3  Prefactor     .10000E-03    18.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77558E-01    45.817        .18963E-02   -1.5652    
   7  Prefactor     .10000E-03    .57062        .63345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.367        8.1914        .10217E-03   -1.4924    
   9  Prefactor     19.948        9.4045        .89714E-04   -1.4814    
  10  Prefactor     13.131        10.856        .11053E-03   -1.4983    
  11  Prefactor     18.063        11.926        .94235E-04   -1.4858    
  12  Prefactor     .10000E-03    3.9900        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .72828        1.0474        .48682E-04   -1.5537    
  14  Prefactor     33.166        21.855        .69575E-04   -1.4556    
  15  Prefactor     .10000E-03    2.2080        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.165        8.8206        .57421E-03   -1.5010    
  17  Prefactor     .10000E-03    12.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0397        .21120        .26492E-03   -.91711    
  20  Prefactor     1.0819        .19263        .25306E-03   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98091e-09
Minuit parameter uncertainties:
  1  5.24531e-06
  2  34.5379
  3  1.03876e-05
  4  4.0425e-06
  5  3.36013e-05
  6  3.77062
  7  3.9115e-07
  8  8.19201
  9  9.40522
  10  10.8574
  11  11.9276
  12  1.00814e-06
  13  1.04745
  14  21.8607
  15  2.31457e-06
  16  8.82157
  17  1.06316e-05
  18  5.45147e-06
  19  0.211367
  20  0.192752
Done.

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

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  1.537e+01  8.192e+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.082e+00  1.928e-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.040e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 162.467 14.483
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.29e-05

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) = 7417.55608342
delta logL = 0.331825445074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.54609395
delta logL = 0.341814913056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9156       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1893       1.0000          .0000       10.000    
     3 'Normalizat'    .99624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1137       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7417.546     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      278 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9143        10.369        .12244E-03    .19035E-04
   2  Index         3.1895        .86174        .57589E-02    .49952E-03
   3  Normalizat    .99626        .20781        .26970E-03   -.23741E-03
   4  Prefactor     1.1136        .19702        .24999E-03   -.32623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91426
  Index      = 3.18947
  Normalizat = 0.996256
  Prefactor  = 1.11364
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.546     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9143        9.1145        .48975E-05   -1.5078    
   2  Index         3.1895        .75748        .11518E-02   -.37053    
   3  Normalizat    .99626        .20737        .10788E-04   -.93156    
   4  Prefactor     1.1136        .19650        .49998E-04   -.89032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36436e-10
Minuit parameter uncertainties:
  1  9.11582
  2  0.760859
  3  0.20754
  4  0.196632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299960': 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) = 7417.54609392
delta logL = 0.341814943203

Extracting fit parameters...

4FGL J1049.8+1429
   Spectrum: PowerLaw
221    Prefactor:  9.914e+00  9.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
222        Index:  3.189e+00  7.609e-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.114e+00  1.966e-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:  9.963e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.25
Ra Dec: 162.467 14.483
Photon Index (Free Index): 3.19 +/- 0.76
Photon Flux (Free Index): 1.23e-07 +/- 6.52e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/299960/cmap_HighResolution_660268801_660528001_4FGL_J1049.8+1429_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='2.25e-05', photon_flux_error='4.87e-08', dlogl='3.42e-01', energy_flux='2.42e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-12-07 21:27:05.076314', photon_index_error2='0.76', photon_index2='3.19', ts='5.43', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.04', time_epoch_completed='1638941225.08', return_code='0', job_id='299960', GAL2='1.11', EG2='1.00', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.52e-08', ts2='6.25', photon_index='2.59' WHERE bin_id='1624' AND source_name='4FGL J1049.8+1429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:27:05 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 299960: <4FGL_J1049.8+1429_daily_bin1624> in cluster <slac> Done

Job <4FGL_J1049.8+1429_daily_bin1624> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 21:15:20 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:17:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:17:10 2021
Terminated at Tue Dec  7 21:27:05 2021
Results reported at Tue Dec  7 21:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1049.8+1429_daily_bin1624 162.467 14.4835 660268801 660528001 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 :                                   586.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             351.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            705 sec.

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

