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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin287
RA = 194.717, Dec = -22.3257
tmin = 313718401, tmax = 313977601
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='62201', job_status='RUN', time_executed='2021-09-06 12:55:53.325735', time_epoch_executed='1630958153.33' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62201/ft1_4FGL_J1258.8-2219_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62201/ft1_4FGL_J1258.8-2219_daily_bin287.fits outfile=/scratch/kocevski/62201/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin287.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=313718401.0 tmax=313977601.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.34
user 3.11
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.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/62201/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin287.fits evtable="EVENTS" outfile="/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/62201/ltcube_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.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/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits
.....................!
real 12.73
user 12.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/62201/ltcube_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits outfile=/scratch/kocevski/62201/expmap_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.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/62201/ltcube_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits
.....................!
real 192.54
user 185.89
sys 5.59

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 182 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1258.8-2219 @ 194.717 -22.3257

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits outfile=/scratch/kocevski/62201/cmap_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.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.717 yref=-22.3257 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.70
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits outfile=/scratch/kocevski/62201/cmap_HighResolution_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.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.717 yref=-22.3257 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.74
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62201/Model_4FGL_J1258.8-2219_daily_bin287.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits.....................!
real 110.28
user 108.57
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits', '/scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits', expMap='/scratch/kocevski/62201/expmap_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits', expCube='/scratch/kocevski/62201/ltcube_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62201/Model_4FGL_J1258.8-2219_daily_bin287.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.8-2219'

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  4.778e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62201/ft1_filtered_4FGL_J1258.8-2219_daily_bin287.fits
Spacecraft file(s): /scratch/kocevski/62201/ft2_4FGL_J1258.8-2219_daily_bin287.fits
Exposure map: /scratch/kocevski/62201/expmap_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits
Exposure cube: /scratch/kocevski/62201/ltcube_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62201/Model_4FGL_J1258.8-2219_daily_bin287.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) = 6598.40664898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.960       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12705E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94793E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2045       1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.481       1.0000         .10000E-03   10000.    
    12 'norm      '    .12751E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1320       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26655       1.0000         .10000E-03   10000.    
    15 'norm      '    .11333E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8045       1.0000         .10000E-03   10000.    
    17 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.418       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9817       1.0000         .10000E-03   10000.    
    24 'norm      '    .11024E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1240       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6598.377     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2796 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.008        4.5277        .15658E-05   -.17818E-02
   2  Prefactor     59.838        24.436       -.58433E-05    .67418E-02
   3  Prefactor     .10000E-03    14.290        .29019E-05** at limit **
   4  Prefactor     .10001E-03    52.228        .81442E-05** at limit **
   5  Prefactor     .11468E-03    333.78       -.39530E-04** at limit **
   6  Prefactor     .10000E-03    4.7890       -.55509E-07** at limit **
   7  Prefactor     6.4649        2.7597       -.55463E-07    .24963E-04
   8  Prefactor     .10068E-03    53.548       -.20075E-05** at limit **
   9  Prefactor     .10000E-03    5.9088        .66134E-07** at limit **
  10  norm          4.2048        1.7264        .28254E-06    .64746E-05
  11  Prefactor     69.466        4.1012       -.14940E-05    .25454E-02
  12  norm          .10001E-03    22.876        .64277E-05** at limit **
  13  norm          4.1477        8.5365       -.20847E-04   -.16721E-02
  14  Prefactor     .27983        44.013        .30499E-04    .43194E-03
  15  norm          .10000E-03    7.3681        .37647E-06** at limit **
  16  norm          1.8048        2.1912        .35509E-06    .13650E-04
  17  norm          .10000E-03    5.1930       -.23891E-07** at limit **
  18  Prefactor     .10000E-03    3.2628        .45532E-06** at limit **
  19  Prefactor     14.484        9.6782       -.67857E-05    .46409E-02
  20  Prefactor     14.850        1.8295        .11740E-06    .29342E-02
  21  Prefactor     .10001E-03    18.030       -.50312E-05** at limit **
  22  Prefactor     .10000E-03    3.6486       -.15297E-06** at limit **
  23  Prefactor     5.9962        4.6453        .45628E-05    .20630E-02
  24  norm          .10000E-03    5.3691        .72930E-07** at limit **
  25  norm          .10000E-03    11.202       -.48411E-05** at limit **
  26  Normalizat    1.1243        .34452        .50510E-05   -.67154E-04
  27  Prefactor     1.1332        .16042       -.11318E-05   -.14952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0084
  Prefactor  = 59.838
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000114684
  Prefactor  = 0.0001
  Prefactor  = 6.46494
  Prefactor  = 0.000100684
  Prefactor  = 0.0001
  norm       = 4.2048
  Prefactor  = 69.4657
  norm       = 0.000100007
  norm       = 4.14775
  Prefactor  = 0.279828
  norm       = 0.0001
  norm       = 1.80482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4844
  Prefactor  = 14.8501
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.99622
  norm       = 0.0001
  norm       = 0.000100001
  Normalizat = 1.12428
  Prefactor  = 1.13324
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.377     FROM HESSE     STATUS=OK           558 CALLS     3354 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.008        61.522        .15653E-02   -1.4426    
   2  Prefactor     59.838        57.601        .12954E-02   -1.4159    
   3  Prefactor     .10000E-03    14.288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    106.53        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11468E-03    35.641        .12523       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4649        2.7620        .39461E-02   -1.5199    
   8  Prefactor     .10068E-03    8.9349        .13361       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2048        1.7407        .49133E-02   -1.5298    
  11  Prefactor     69.466        111.26        .12039E-02   -1.4039    
  12  norm          .10001E-03    22.268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1477        11.013        .49576E-02   -1.5301    
  14  Prefactor     .27983        9.4024        .64408E-01   -1.5602    
  15  norm          .10000E-03    7.1024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8048        2.2101        .77781E-02   -1.5439    
  17  norm          .10000E-03    5.1706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.484        26.808        .26371E-02   -1.4947    
  20  Prefactor     14.850        17.647        .25984E-02   -1.4937    
  21  Prefactor     .10001E-03    18.001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9962        15.414        .41044E-02   -1.5218    
  24  norm          .10000E-03    5.2591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1243        .30336        .92801E-01   -.88976    
  27  Prefactor     1.1332        .13751        .36431E-01   -.88411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97198e-07
Minuit parameter uncertainties:
  1  61.6178
  2  57.6548
  3  0.000284366
  4  0.00149555
  5  0.0457813
  6  5.58475e-06
  7  2.7621
  8  0.00494605
  9  5.70244e-06
  10  1.74077
  11  111.591
  12  0.000795502
  13  11.0183
  14  3.24408
  15  6.89558e-06
  16  2.21021
  17  3.31496e-06
  18  5.68339e-06
  19  26.83
  20  17.6529
  21  0.000635655
  22  5.51268e-07
  23  15.4242
  24  1.04513e-05
  25  0.000152385
  26  0.303837
  27  0.137552
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  4.148e+00  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.133e+00  1.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.124e+00  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 194.717 -22.326
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62201/likelihoodResults_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.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) = 6598.15171434
delta logL = 0.224894098366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6598.10221987
delta logL = 0.27438856581

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6598.102     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1877        48.262        .69406E-02    .72083E-03
   2  alpha         3.4476        4.2237        .45670        .50884E-04
   3  Normalizat    1.0554        .71558E-01    .95353E-01   -.55799E-04
   4  Prefactor     1.1523        .32362E-01    .35874E-01   -.44303E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18773
  alpha      = 3.44758
  Normalizat = 1.05544
  Prefactor  = 1.1523
 **********
 **   18 **HESSE 
 **********

 FCN=   6598.102     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      250 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1877        122.58        .12736E-03   -1.5412    
   2  alpha         3.4476        2.8395        .18019E-01    .38875    
   3  Normalizat    1.0554        .45418        .42243E-03   -.91196    
   4  Prefactor     1.1523        .20782        .18762E-03   -.87812    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.56353e-07
Minuit parameter uncertainties:
  1  32.8216
  2  9.80609
  3  0.455862
  4  0.207971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62201': 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) = 6598.10221801
delta logL = 0.274390423935

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.188e+00  3.282e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  3.448e+00  9.806e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.152e+00  2.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.055e+00  4.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
Ra Dec: 194.717 -22.326

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/62201/cmap_HighResolution_313718401_313977601_4FGL_J1258.8-2219_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-05', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-06 13:09:22.694085', job_id='62201', GAL2='1.15', fit_tolerance='1e-08', EG2='1.06', EG='1.12', time_epoch_completed='1630958962.69', return_code2='102', ts='0.34', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.74e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='287' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 62201: <4FGL_J1258.8-2219_daily_bin287> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin287> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 12:55:40 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:55:41 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:55:41 2021
Terminated at Mon Sep  6 13:09:23 2021
Results reported at Mon Sep  6 13:09:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin287 194.717 -22.3257 313718401 313977601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.8-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

