/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 39 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 = 7444
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1258.8-2219_daily_bin376
RA = 194.717, Dec = -22.3257
tmin = 336787201, tmax = 337046401
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='62379', job_status='RUN', time_executed='2021-09-06 12:57:07.867297', time_epoch_executed='1630958227.87' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62379

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62379/ft1_4FGL_J1258.8-2219_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62379/ft1_4FGL_J1258.8-2219_daily_bin376.fits outfile=/scratch/kocevski/62379/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin376.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=336787201.0 tmax=337046401.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 7.01
user 6.47
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.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/62379/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin376.fits evtable="EVENTS" outfile="/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/62379/ltcube_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.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/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits
.....................!
real 11.71
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/62379/ltcube_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits outfile=/scratch/kocevski/62379/expmap_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.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/62379/ltcube_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits
.....................!
real 192.45
user 185.44
sys 5.52

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/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits outfile=/scratch/kocevski/62379/cmap_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits outfile=/scratch/kocevski/62379/cmap_HighResolution_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62379/Model_4FGL_J1258.8-2219_daily_bin376.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/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits.....................!
real 92.97
user 91.40
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits', '/scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits', expMap='/scratch/kocevski/62379/expmap_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits', expCube='/scratch/kocevski/62379/ltcube_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62379/Model_4FGL_J1258.8-2219_daily_bin376.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/62379/ft1_filtered_4FGL_J1258.8-2219_daily_bin376.fits
Spacecraft file(s): /scratch/kocevski/62379/ft2_4FGL_J1258.8-2219_daily_bin376.fits
Exposure map: /scratch/kocevski/62379/expmap_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits
Exposure cube: /scratch/kocevski/62379/ltcube_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62379/Model_4FGL_J1258.8-2219_daily_bin376.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) = 5467.60204725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5674       1.0000         .10000E-03   10000.    
    10 'norm      '    6.7371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8122       1.0000         .10000E-03   10000.    
    15 'norm      '    6.3911       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9293       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .94416E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    25.963       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5475       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82504       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5467.601     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3297 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.038        97.233       -.41697E-04    .28960E-04
   2  Prefactor     .10000E-03    32.054       -.17070E-05** at limit **
   3  Prefactor     .10000E-03    26.519       -.14929E-04** at limit **
   4  Prefactor     .10000E-03    37.670        .15447E-04** at limit **
   5  Prefactor     53.036        38.413        .17670E-05    .53873E-05
   6  Prefactor     10.033        9.5208       -.84774E-07   -.38927E-04
   7  Prefactor     5.2801        3.1440        .62988E-08   -.67345E-04
   8  Prefactor     .10000E-03    6.3189        .18443E-05** at limit **
   9  Prefactor     6.5677        9.1342       -.14263E-06   -.37637E-04
  10  norm          6.7371        1.9202       -.28241E-07    .53433E-04
  11  Prefactor     .10000E-03    47.949        .19960E-04** at limit **
  12  norm          .10000E-03    8.4377        .41820E-05** at limit **
  13  norm          .10000E-03    10.141       -.42556E-05** at limit **
  14  Prefactor     4.8115        4.9395        .12469E-05    .13617E-03
  15  norm          6.3920        8.0951       -.42513E-06   -.12304E-03
  16  norm          1.9292        2.0047        .48675E-07    .14076E-03
  17  norm          .10000E-03    9.7954       -.24155E-05** at limit **
  18  Prefactor     10.346        9.4577       -.10760E-06    .25507E-05
  19  Prefactor     .10000E-03    7.0890       -.11742E-05** at limit **
  20  Prefactor     .10000E-03    9.1777        .10877E-05** at limit **
  21  Prefactor     .10000E-03    16.250        .67825E-05** at limit **
  22  Prefactor     .10000E-03    5.3290        .41900E-06** at limit **
  23  Prefactor     .10000E-03    7.0025       -.15077E-05** at limit **
  24  norm          .10180E-03    5.0344       -.23030E-05** at limit **
  25  norm          25.964        25.845        .76206E-06    .21098E-05
  26  Normalizat    1.5475        .30349        .32821E-06    .11851E-03
  27  Prefactor     .82499        .13510        .27639E-06    .23859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.038
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 53.0355
  Prefactor  = 10.0331
  Prefactor  = 5.28011
  Prefactor  = 0.0001
  Prefactor  = 6.56769
  norm       = 6.73708
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.81153
  norm       = 6.39196
  norm       = 1.92925
  norm       = 0.0001
  Prefactor  = 10.3457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101803
  norm       = 25.9644
  Normalizat = 1.5475
  Prefactor  = 0.824985
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.601     FROM HESSE     STATUS=OK           486 CALLS     3783 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.038        96.865        .66733E-04   -1.4507    
   2  Prefactor     .10000E-03    32.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.036        38.413        .55076E-04   -1.4250    
   6  Prefactor     10.033        9.5278        .12651E-03   -1.5074    
   7  Prefactor     5.2801        3.1453        .94254E-04   -1.5248    
   8  Prefactor     .10000E-03    6.3341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5677        9.1297        .15660E-03   -1.5195    
  10  norm          6.7371        1.9206        .52214E-04   -1.5189    
  11  Prefactor     .10000E-03    48.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8115        4.9436        .16138E-03   -1.5269    
  15  norm          6.3920        8.0899        .15877E-03   -1.5202    
  16  norm          1.9292        2.0111        .10392E-03   -1.5430    
  17  norm          .10000E-03    9.8602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.346        9.4591        .12457E-03   -1.5065    
  19  Prefactor     .10000E-03    7.0920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3342        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10180E-03    61.362        .31589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.964        25.850        .78619E-04   -1.4688    
  26  Normalizat    1.5475        .36174        .34920E-03   -.76452    
  27  Prefactor     .82499        .16114        .20456E-03   -.98814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79456e-08
Minuit parameter uncertainties:
  1  97.2919
  2  2.45056e-05
  3  0.00061633
  4  0.000302896
  5  38.4305
  6  9.52924
  7  3.14536
  8  9.23537e-07
  9  9.13163
  10  1.9206
  11  2.32262e-05
  12  1.60038e-05
  13  3.62572e-06
  14  4.94406
  15  8.09133
  16  2.01116
  17  3.72004e-06
  18  9.4605
  19  7.97114e-07
  20  8.51065e-06
  21  6.90544e-06
  22  2.31677e-06
  23  3.24775e-06
  24  0.0210593
  25  25.8612
  26  0.362345
  27  0.161228
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  3.626e-06  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:  8.250e-01  1.612e-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.547e+00  3.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62379/likelihoodResults_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.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) = 5467.60125088
delta logL = -0.000451883469395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5467.60079895
delta logL = 4.45634213975e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82499       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=   5467.601     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.601        .90712E-02** at limit **
   2  alpha         2.2815        3.4978        .41307        .11968E-04
   3  Normalizat    1.5475        .29771        .78902E-01    .49655E-05
   4  Prefactor     .82498        .13332        .44042E-01   -.41949E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28152
  Normalizat = 1.5475
  Prefactor  = 0.824985
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.601     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .14E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1203.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2815        3.3820        .50000       -.87505E-01
   3  Normalizat    1.5475        .97738E-01    .34920E-03   -.76452    
   4  Prefactor     .82498        .43467E-01    .20456E-03   -.98814    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.013816
Minuit parameter uncertainties:
  1  0.00109385
  2  24482.5
  3  0.0977499
  4  0.0434684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62379': 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) = 5467.60079876
delta logL = 2.38383108808e-07

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  1.094e-03  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.282e+00  2.448e+04  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:  8.250e-01  4.347e-02  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.547e+00  9.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/62379/cmap_HighResolution_336787201_337046401_4FGL_J1258.8-2219_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-06 13:10:07.259958', job_id='62379', GAL2='0.82', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630959007.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='376' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 62379: <4FGL_J1258.8-2219_daily_bin376> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin376> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 12:56:05 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:56:07 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:56:07 2021
Terminated at Mon Sep  6 13:10:08 2021
Results reported at Mon Sep  6 13:10:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin376 194.717 -22.3257 336787201 337046401 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 :                                   761.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

