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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin410
RA = 194.717, Dec = -22.3257
tmin = 345600001, tmax = 345859201
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='63528', job_status='RUN', time_executed='2021-09-06 13:00:55.558087', time_epoch_executed='1630958455.56' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63528/ft1_4FGL_J1258.8-2219_daily_bin410.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63528/ft1_4FGL_J1258.8-2219_daily_bin410.fits outfile=/scratch/kocevski/63528/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin410.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=345600001.0 tmax=345859201.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.31
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.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/63528/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin410.fits evtable="EVENTS" outfile="/scratch/kocevski/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits" evtable="EVENTS" scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits sctable="SC_DATA" outfile=/scratch/kocevski/63528/ltcube_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.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/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits
.....................!
real 12.00
user 11.53
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/63528/ltcube_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.fits outfile=/scratch/kocevski/63528/expmap_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.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/63528/ltcube_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.fits
.....................!
real 192.43
user 187.32
sys 4.72

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/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits outfile=/scratch/kocevski/63528/cmap_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits outfile=/scratch/kocevski/63528/cmap_HighResolution_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.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.55
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/63528/ft2_4FGL_J1258.8-2219_daily_bin410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63528/Model_4FGL_J1258.8-2219_daily_bin410.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/63528/ft1_filtered_4FGL_J1258.8-2219_daily_bin410.fits.....................!
real 129.32
user 127.79
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3017       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3968       1.0000         .10000E-03   10000.    
    11 'Prefactor '    145.21       1.0000         .10000E-03   10000.    
    12 'norm      '    .23071E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    6.0367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.7183       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4174       1.0000         .10000E-03   10000.    
    17 'norm      '    21.297       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.475       1.0000         .10000E-03   10000.    
    24 'norm      '    3.1136       1.0000         .10000E-03   10000.    
    25 'norm      '    7.7779       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0752       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1137       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=   7977.105     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3283 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.823       -.44108E-07** at limit **
   2  Prefactor     2.2141        340.18       -.60000E-05    .71296E-05
   3  Prefactor     11.738        14.359        .91777E-07    .31190E-04
   4  Prefactor     .10000E-03    17.084        .95620E-07** at limit **
   5  Prefactor     36.013        32.679        .14969E-05    .17743E-03
   6  Prefactor     1.6774        3.8119        .83299E-06    .36978E-03
   7  Prefactor     4.3017        2.0301       -.57724E-07   -.13583E-05
   8  Prefactor     .10000E-03    16.234       -.40675E-07** at limit **
   9  Prefactor     .10000E-03    3.7456       -.36527E-07** at limit **
  10  norm          7.3969        1.7203       -.88569E-08    .47645E-03
  11  Prefactor     145.20        111.22       -.46482E-06    .83332E-04
  12  norm          .10054E-03    12.471       -.34182E-05** at limit **
  13  norm          6.0369        7.9135        .33349E-06    .33500E-03
  14  Prefactor     .10000E-03    2.3494       -.29664E-06** at limit **
  15  norm          7.7176        6.9854        .60313E-07    .10360E-03
  16  norm          3.4175        2.5553       -.18349E-07    .13890E-03
  17  norm          21.299        12.581       -.74885E-07    .25043E-04
  18  Prefactor     9.3805        8.9200        .15714E-05    .67222E-03
  19  Prefactor     5.6920        17.574       -.11945E-06    .29229E-04
  20  Prefactor     .10000E-03    27.478        .37907E-06** at limit **
  21  Prefactor     9.0704        25.072       -.63952E-07    .26800E-04
  22  Prefactor     .10000E-03    3.9229       -.15895E-07** at limit **
  23  Prefactor     23.476        14.479        .45952E-06    .25295E-03
  24  norm          3.1137        3.5529       -.74861E-07   -.38414E-04
  25  norm          7.7788        16.017        .70276E-07    .11401E-04
  26  Normalizat    1.0751        .27877        .76041E-06    .49269E-03
  27  Prefactor     1.1137        .12889        .23792E-06    .98678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.21407
  Prefactor  = 11.7381
  Prefactor  = 0.0001
  Prefactor  = 36.0128
  Prefactor  = 1.67735
  Prefactor  = 4.30175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.39689
  Prefactor  = 145.203
  norm       = 0.000100542
  norm       = 6.03692
  Prefactor  = 0.0001
  norm       = 7.71762
  norm       = 3.41751
  norm       = 21.2992
  Prefactor  = 9.38049
  Prefactor  = 5.69201
  Prefactor  = 0.0001
  Prefactor  = 9.07037
  Prefactor  = 0.0001
  Prefactor  = 23.4762
  norm       = 3.11375
  norm       = 7.77883
  Normalizat = 1.07515
  Prefactor  = 1.11368
 **********
 **   18 **HESSE 
 **********

 FCN=   7977.105     FROM HESSE     STATUS=OK           492 CALLS     3775 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2141        329.42        .27922E-03   -1.5410    
   3  Prefactor     11.738        14.354        .11693E-03   -1.5023    
   4  Prefactor     .10000E-03    17.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.013        32.480        .66770E-04   -1.4507    
   6  Prefactor     1.6774        3.7789        .25488E-03   -1.5449    
   7  Prefactor     4.3017        2.0310        .84591E-04   -1.5293    
   8  Prefactor     .10000E-03    16.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7520        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3969        1.7194        .53806E-04   -1.5164    
  11  Prefactor     145.20        110.68        .33438E-04   -1.3292    
  12  norm          .10054E-03    50.860        .42012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0369        7.8704        .16342E-03   -1.5217    
  14  Prefactor     .10000E-03    2.3603        .13368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.7176        6.9737        .14434E-03   -1.5152    
  16  norm          3.4175        2.5576        .11965E-03   -1.5338    
  17  norm          21.299        12.573        .86794E-04   -1.4785    
  18  Prefactor     9.3805        8.9531        .65427E-03   -1.5095    
  19  Prefactor     5.6920        17.569        .16832E-03   -1.5231    
  20  Prefactor     .10000E-03    27.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0704        25.080        .13310E-03   -1.5106    
  22  Prefactor     .10000E-03    3.9267        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.476        14.408        .82673E-04   -1.4739    
  24  norm          3.1137        3.5531        .17521E-03   -1.5355    
  25  norm          7.7788        16.012        .14378E-03   -1.5150    
  26  Normalizat    1.0751        .31641        .42590E-03   -.90554    
  27  Prefactor     1.1137        .14861        .19692E-03   -.89030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1183e-08
Minuit parameter uncertainties:
  1  4.92914e-05
  2  54.3196
  3  14.3586
  4  1.00141e-05
  5  32.4958
  6  3.77945
  7  2.03107
  8  1.08023e-05
  9  3.10586e-06
  10  1.71942
  11  110.838
  12  0.0105096
  13  7.87174
  14  1.69345e-05
  15  6.97441
  16  2.55763
  17  12.575
  18  8.9544
  19  17.5851
  20  7.3602e-05
  21  25.1094
  22  2.57966e-06
  23  14.41
  24  3.55334
  25  16.021
  26  0.316971
  27  0.148662
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  6.037e+00  7.872e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.114e+00  1.487e-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.075e+00  3.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/63528/likelihoodResults_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.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) = 7977.04240334
delta logL = 0.0627627628437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7977.03390787
delta logL = 0.0712582369861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2578       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6289       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1171       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7977.034     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      234 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2572        7.0122        .17529E-03    .67391E-03
   2  alpha         2.6285        .83927        .17870E-01    .83949E-04
   3  Normalizat    1.0611        .31133        .42827E-03   -.18367E-03
   4  Prefactor     1.1171        .14651        .19663E-03   -.49266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.25719
  alpha      = 2.62853
  Normalizat = 1.06111
  Prefactor  = 1.11713
 **********
 **   18 **HESSE 
 **********

 FCN=   7977.034     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2572        6.6125        .70118E-05   -1.5249    
   2  alpha         2.6285        .79256        .71480E-03    .51436E-01
   3  Normalizat    1.0611        .31132        .17131E-04   -.91010    
   4  Prefactor     1.1171        .14648        .39326E-04   -.88921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78572e-10
Minuit parameter uncertainties:
  1  6.61337
  2  0.806514
  3  0.31186
  4  0.146531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63528': 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) = 7977.03390765
delta logL = 0.0712584532839

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  5.257e+00  6.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.629e+00  8.065e-01  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.117e+00  1.465e-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.061e+00  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 2.63 +/- 0.81
Photon Flux (Free Index): 6.34e-08 +/- 7.29e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/63528/cmap_HighResolution_345600001_345859201_4FGL_J1258.8-2219_daily_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-05', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='7.13e-02', photon_flux2='6.34e-08', job_status='DONE', time_completed='2021-09-06 13:16:57.284341', photon_index_error2='0.81', photon_index2='2.63', ts='0.95', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.81e-05', EG='1.08', time_epoch_completed='1630959417.28', return_code='0', job_id='63528', GAL2='1.12', EG2='1.06', return_code2='0', photon_flux_error2='7.29e-08', ts2='1.10', photon_index='2.33' WHERE bin_id='410' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 63528: <4FGL_J1258.8-2219_daily_bin410> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin410> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 13:00:38 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:00:40 2021
Terminated at Mon Sep  6 13:16:57 2021
Results reported at Mon Sep  6 13:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin410 194.717 -22.3257 345600001 345859201 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 :                                   956.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

