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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin200
RA = 194.663, Dec = -17.9958
tmin = 291168001, tmax = 291427201
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='52513', job_status='RUN', time_executed='2021-09-06 12:27:20.834349', time_epoch_executed='1630956440.83' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52513/ft1_4FGL_J1258.6-1759_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52513/ft1_4FGL_J1258.6-1759_daily_bin200.fits outfile=/scratch/kocevski/52513/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin200.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=291168001.0 tmax=291427201.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.70
user 3.23
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.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/52513/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.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.98
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/52513/ltcube_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.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/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits
.....................!
real 12.73
user 12.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/52513/ltcube_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits outfile=/scratch/kocevski/52513/expmap_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.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/52513/ltcube_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits
.....................!
real 194.15
user 186.15
sys 5.00

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

Setting source of interest to:
4FGL J1258.6-1759 @ 194.663 -17.9958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits outfile=/scratch/kocevski/52513/cmap_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.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=194.663 yref=-17.9958 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.93
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits outfile=/scratch/kocevski/52513/cmap_HighResolution_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.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=194.663 yref=-17.9958 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.61
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52513/Model_4FGL_J1258.6-1759_daily_bin200.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/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits.....................!
real 59.12
user 55.77
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits', '/scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits', expMap='/scratch/kocevski/52513/expmap_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits', expCube='/scratch/kocevski/52513/ltcube_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/52513/Model_4FGL_J1258.6-1759_daily_bin200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.6-1759'

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  4.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/52513/ft1_filtered_4FGL_J1258.6-1759_daily_bin200.fits
Spacecraft file(s): /scratch/kocevski/52513/ft2_4FGL_J1258.6-1759_daily_bin200.fits
Exposure map: /scratch/kocevski/52513/expmap_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits
Exposure cube: /scratch/kocevski/52513/ltcube_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/52513/Model_4FGL_J1258.6-1759_daily_bin200.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) = 6661.13030454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.292       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.915       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.745       1.0000         .10000E-03   10000.    
     8 'norm      '    9.9142       1.0000         .10000E-03   10000.    
     9 'norm      '    .10715E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .47033       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8999       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5403       1.0000         .10000E-03   10000.    
    21 'norm      '    12.211       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2372       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6661.123     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2569 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.289        .28312E-07** at limit **
   2  Prefactor     .10000E-03    1.8591        .47171E-07** at limit **
   3  Prefactor     8.0281        2.8845       -.22422E-08   -.52221E-05
   4  Prefactor     18.275        18.001        .22032E-06    .28378E-04
   5  Prefactor     13.897        15.673        .39145E-06    .45981E-04
   6  norm          6.1330        1.7503        .19072E-07    .71158E-05
   7  Prefactor     93.697        75.392       -.50496E-06   -.10621E-03
   8  norm          9.9114        8.4227        .48623E-07   -.47770E-05
   9  norm          .10000E-03    4.3889       -.87252E-06** at limit **
  10  Prefactor     .10000E-03    1.6014       -.13937E-06** at limit **
  11  norm          .46977        1.5923        .35546E-06   -.12364E-03
  12  norm          .10000E-03    3.0602        .10941E-08** at limit **
  13  Prefactor     .40352E-01    10.077        .10008E-06    .31779E-04
  14  Prefactor     .10000E-03    17.626        .31846E-07** at limit **
  15  Prefactor     .10000E-03    36.398        .12383E-06** at limit **
  16  norm          8.9043        4.9290        .39917E-07   -.22857E-04
  17  norm          .10000E-03    4.1424        .34637E-07** at limit **
  18  Prefactor     .10000E-03    7.0709       -.17457E-06** at limit **
  19  Prefactor     .10000E-03    9.0017       -.17223E-07** at limit **
  20  Prefactor     7.5376        9.8727        .23073E-05   -.88964E-04
  21  norm          12.209        6.5676       -.58757E-07   -.14421E-04
  22  Normalizat    1.2381        .27702       -.15179E-05    .79005E-05
  23  Prefactor     .93784        .12986        .37341E-06   -.78686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.02809
  Prefactor  = 18.2752
  Prefactor  = 13.897
  norm       = 6.13297
  Prefactor  = 93.6969
  norm       = 9.91137
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.469774
  norm       = 0.0001
  Prefactor  = 0.0403519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.90431
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5376
  norm       = 12.2085
  Normalizat = 1.23806
  Prefactor  = 0.937843
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.123     FROM HESSE     STATUS=OK           380 CALLS     2949 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8622        .10866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0281        2.8854        .80488E-04   -1.5141    
   4  Prefactor     18.275        18.026        .93647E-04   -1.4853    
   5  Prefactor     13.897        15.819        .10737E-03   -1.4962    
   6  norm          6.1330        1.7522        .54966E-04   -1.5213    
   7  Prefactor     93.697        75.331        .20754E-03   -1.3769    
   8  norm          9.9114        8.4241        .12726E-03   -1.5078    
   9  norm          .10000E-03    4.4798        .33232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6028        .10083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .46977        1.7537        .18185E-02   -1.5571    
  12  norm          .10000E-03    3.0604        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40352E-01    19.154        .70330E-01   -1.5668    
  14  Prefactor     .10000E-03    18.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.9043        4.9179        .12656E-03   -1.5111    
  17  norm          .10000E-03    4.1556        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.5376        9.9639        .73023E-03   -1.5159    
  21  norm          12.209        6.5684        .11463E-03   -1.5009    
  22  Normalizat    1.2381        .32260        .37298E-03   -.85435    
  23  Prefactor     .93784        .15140        .20572E-03   -.94831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62724e-08
Minuit parameter uncertainties:
  1  6.99415e-06
  2  6.73444e-08
  3  2.88543
  4  18.0317
  5  15.8235
  6  1.75221
  7  75.408
  8  8.42509
  9  1.46192e-05
  10  1.14695e-06
  11  1.75385
  12  9.25659e-08
  13  1.75669
  14  2.54236e-05
  15  1.32425e-05
  16  4.91817
  17  4.30401e-07
  18  2.22821e-05
  19  1.87173e-06
  20  9.96612
  21  6.56883
  22  0.323123
  23  0.151471
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  9.911e+00  8.425e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.378e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.238e+00  3.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 194.663 -17.996
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.44e-05

TS (Fixed Index): 3.40
Ra Dec: 194.663 -17.996
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52513/likelihoodResults_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.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) = 6660.74851908
delta logL = 0.374944504028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6660.70707337
delta logL = 0.416390216932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3991       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6660.707     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3935        6.4933        .36862E-02   -.39164E-03
   2  alpha         1.4501        .55281        .47067       -.33518E-04
   3  Normalizat    1.2625        .25793        .83528E-01    .15664E-04
   4  Prefactor     .93343        .12644        .45429E-01   -.32341E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.39347
  alpha      = 1.45005
  Normalizat = 1.26254
  Prefactor  = 0.933429
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3935        8.1636        .73723E-03   -1.5164    
   2  alpha         1.4501        .78267        .19504E-01   -.43342    
   3  Normalizat    1.2625        .29906        .36981E-03   -.84692    
   4  Prefactor     .93343        .14702        .20614E-03   -.94983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45524e-12
Minuit parameter uncertainties:
  1  8.16487
  2  0.79909
  3  0.299467
  4  0.147085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52513': 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) = 6660.70707304
delta logL = 0.416390548472

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  7.393e+00  8.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.450e+00  7.991e-01  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.334e-01  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.263e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 194.663 -17.996
Photon Index (Free Index): 1.45 +/- 0.80
Photon Flux (Free Index): 1.92e-08 +/- 2.42e-08
Energy Flux (Free Index): 2.58e-05 +/- 3.08e-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/52513/cmap_HighResolution_291168001_291427201_4FGL_J1258.6-1759_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-05', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='2.58e-05', photon_flux_error='3.83e-08', dlogl='4.16e-01', energy_flux='1.70e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-06 12:39:10.624193', photon_index_error2='0.80', photon_index2='1.45', ts='3.40', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='3.08e-05', EG='1.24', time_epoch_completed='1630957150.62', return_code='0', job_id='52513', GAL2='0.93', EG2='1.26', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='2.42e-08', ts2='4.21', photon_index='2.23' WHERE bin_id='200' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:39:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 52513: <4FGL_J1258.6-1759_daily_bin200> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin200> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:25:20 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:25:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:25:21 2021
Terminated at Mon Sep  6 12:39:11 2021
Results reported at Mon Sep  6 12:39:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin200 194.663 -17.9958 291168001 291427201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.6-1759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

