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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin774
RA = 162.546, Dec = 4.5377
tmin = 439948801, tmax = 440208001
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='237661', job_status='RUN', time_executed='2021-09-02 17:48:36.390441', time_epoch_executed='1630630116.39' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237661

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237661/ft1_4FGL_J1050.1+0432_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237661/ft1_4FGL_J1050.1+0432_daily_bin774.fits outfile=/scratch/kocevski/237661/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin774.fits ra=162.546 dec=4.5377 rad=12.0 tmin=439948801.0 tmax=440208001.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.58
user 3.28
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.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/237661/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin774.fits evtable="EVENTS" outfile="/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/237661/ltcube_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.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/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits
.....................!
real 16.61
user 16.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/237661/ltcube_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits outfile=/scratch/kocevski/237661/expmap_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.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/237661/ltcube_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits
.....................!
real 192.47
user 186.59
sys 5.04

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

Setting source of interest to:
4FGL J1050.1+0432 @ 162.546 4.5377

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits outfile=/scratch/kocevski/237661/cmap_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.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.546 yref=4.5377 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits outfile=/scratch/kocevski/237661/cmap_HighResolution_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.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.546 yref=4.5377 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237661/Model_4FGL_J1050.1+0432_daily_bin774.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/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits.....................!
real 73.14
user 71.52
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits', '/scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits', expMap='/scratch/kocevski/237661/expmap_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits', expCube='/scratch/kocevski/237661/ltcube_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/237661/Model_4FGL_J1050.1+0432_daily_bin774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1050.1+0432'

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/237661/ft1_filtered_4FGL_J1050.1+0432_daily_bin774.fits
Spacecraft file(s): /scratch/kocevski/237661/ft2_4FGL_J1050.1+0432_daily_bin774.fits
Exposure map: /scratch/kocevski/237661/expmap_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits
Exposure cube: /scratch/kocevski/237661/ltcube_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/237661/Model_4FGL_J1050.1+0432_daily_bin774.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) = 7847.43023996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.511       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9225       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67536E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .42420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7041       1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3857       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   7847.411     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     2539 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.083        11.041        .99859E-04    .27437E-04
   2  Prefactor     .10000E-03    12.854        .18142E-02** at limit **
   3  norm          .10000E-03    6.6462        .18142E-02** at limit **
   4  Prefactor     .10000E-03    5.5067        .18142E-02** at limit **
   5  Prefactor     20.512        53.700        .88439E-04   -.16069E-04
   6  Prefactor     .10000E-03    38.043        .18142E-02** at limit **
   7  Prefactor     7.9196        11.038        .14245E-03   -.16823E-03
   8  norm          5.3356        1.6123        .59172E-04    .14064E-03
   9  Prefactor     .54817E-01    4.5064        .51240E-01    .39425E-03
  10  Prefactor     12.152        4.1637        .10020E-03    .77832E-04
  11  Prefactor     .10000E-03    5.0197        .18142E-02** at limit **
  12  Prefactor     .10000E-03    3.7175        .16625E-02** at limit **
  13  norm          .42397        .39710        .50755E-03   -.16107E-02
  14  Prefactor     9.7086        7.9111        .64320E-03   -.56419E-04
  15  norm          .10000E-03    1.0040        .13134E-02** at limit **
  16  Prefactor     .10000E-03    5.6103        .18142E-02** at limit **
  17  Prefactor     .10000E-03    1.3177        .98715E-03** at limit **
  18  norm          .10000E-03    10.919        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.9300        .23483E-02** at limit **
  20  Normalizat    1.3859        .21278        .25315E-03    .90832E-04
  21  Prefactor     .85389        .17272        .26060E-03    .13781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5116
  Prefactor  = 0.0001
  Prefactor  = 7.91965
  norm       = 5.33563
  Prefactor  = 0.0548168
  Prefactor  = 12.1523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.423969
  Prefactor  = 9.70855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38591
  Prefactor  = 0.853886
 **********
 **   18 **HESSE 
 **********

 FCN=   7847.411     FROM HESSE     STATUS=OK           309 CALLS     2848 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.083        11.040        .39944E-05   -1.4906    
   2  Prefactor     .10000E-03    12.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.512        53.665        .35376E-05   -1.4802    
   6  Prefactor     .10000E-03    38.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9196        11.037        .56981E-05   -1.5145    
   8  norm          5.3356        1.6122        .23669E-05   -1.5246    
   9  Prefactor     .54817E-01    4.3679        .52391E-01   -1.5661    
  10  Prefactor     12.152        4.1636        .40081E-05   -1.5011    
  11  Prefactor     .10000E-03    5.0227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7182        .33250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .42397        .39675        .20302E-04   -1.5578    
  14  Prefactor     9.7086        7.9055        .25728E-04   -1.5085    
  15  norm          .10000E-03    1.0062        .26267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6105        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3179        .19743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9360        .46966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3859        .21291        .50630E-04   -.81037    
  21  Prefactor     .85389        .17286        .10424E-04   -.97772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53531e-10
Minuit parameter uncertainties:
  1  11.0411
  2  7.2063e-05
  3  1.43658e-05
  4  5.48974e-06
  5  53.7915
  6  0.000119759
  7  11.0394
  8  1.61226
  9  0.977816
  10  4.16369
  11  6.65011e-07
  12  1.70485e-06
  13  0.396756
  14  7.90634
  15  6.46732e-06
  16  5.09544e-06
  17  6.14995e-07
  18  0.00010564
  19  3.90882e-06
  20  0.213049
  21  0.172967
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.705e-06  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.539e-01  1.730e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.386e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237661/likelihoodResults_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.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) = 7847.41261832
delta logL = -0.00128069296898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7847.41133808
delta logL = -4.61447598354e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6017       1.0000          .0000       10.000    
     3 'Normalizat'    1.3858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+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=   7847.411     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    103.13        .16638E-02** at limit **
   2  Index         2.5756        5.0162        .50000        .76349E-05
   3  Normalizat    1.3859        .24391E-01    .25315E-03    .48142E-04
   4  Prefactor     .85389        .20383E-01    .26060E-03    .32894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100144
  Index      = 2.57558
  Normalizat = 1.38591
  Prefactor  = 0.853885
 **********
 **   18 **HESSE 
 **********

 FCN=   7847.411     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    409.32        .33275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5756        8.5523        .50000       -.50623    
   3  Normalizat    1.3859        .55480E-01    .10126E-04   -.81037    
   4  Prefactor     .85389        .46360E-01    .10424E-04   -.97772    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14108e-08
Minuit parameter uncertainties:
  1  0.0154832
  2  1173.94
  3  0.0554821
  4  0.0463625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237661': 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) = 7847.41133758
delta logL = 4.32582965004e-08

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  1.001e-04  1.548e-02  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.576e+00  1.174e+03  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.539e-01  4.636e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.386e+00  5.548e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 162.546 4.538

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/237661/cmap_HighResolution_439948801_440208001_4FGL_J1050.1+0432_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-02 18:00:59.717616', job_id='237661', GAL2='0.85', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630630859.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='774' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 18:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 237661: <4FGL_J1050.1+0432_daily_bin774> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:45:59 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:46:02 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:46:02 2021
Terminated at Thu Sep  2 18:01:00 2021
Results reported at Thu Sep  2 18:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin774 162.546 4.5377 439948801 440208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1050.1+0432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            901 sec.

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

