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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin943
RA = 194.717, Dec = -22.3257
tmin = 483753601, tmax = 484012801
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='66630', job_status='RUN', time_executed='2021-09-06 13:14:13.710136', time_epoch_executed='1630959253.71' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66630/ft1_4FGL_J1258.8-2219_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66630/ft1_4FGL_J1258.8-2219_daily_bin943.fits outfile=/scratch/kocevski/66630/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin943.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=483753601.0 tmax=484012801.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 5.52
user 5.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/66630/ltcube_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.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/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits
.....................!
real 11.68
user 11.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/66630/ltcube_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.fits outfile=/scratch/kocevski/66630/expmap_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.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/66630/ltcube_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.fits
.....................!
real 192.02
user 185.57
sys 5.30

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/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits scfile=/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits outfile=/scratch/kocevski/66630/cmap_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits scfile=/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits outfile=/scratch/kocevski/66630/cmap_HighResolution_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.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.59
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/66630/ft2_4FGL_J1258.8-2219_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66630/Model_4FGL_J1258.8-2219_daily_bin943.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/66630/ft1_filtered_4FGL_J1258.8-2219_daily_bin943.fits.....................!
real 93.01
user 91.32
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.220       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .76407       1.0000         .10000E-03   10000.    
    17 'norm      '    16.545       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.638       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40635E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.8373       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80198       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1639       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=   5601.825     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     2834 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.216        .11639E-06** at limit **
   2  Prefactor     .10000E-03    167.66       -.13944E-05** at limit **
   3  Prefactor     27.312        27.444        .30779E-06    .12183E-04
   4  Prefactor     .10000E-03    32.444        .47029E-06** at limit **
   5  Prefactor     1.7450        108.79        .21609E-05    .79634E-05
   6  Prefactor     .10000E-03    2.9789        .11105E-07** at limit **
   7  Prefactor     5.0354        2.5936        .24291E-07   -.12657E-04
   8  Prefactor     10.697        12.359        .75123E-07   -.17003E-04
   9  Prefactor     27.217        18.194        .10267E-06   -.23820E-04
  10  norm          2.0640        1.5573        .12408E-06    .15332E-03
  11  Prefactor     .10000E-03    58.476        .98234E-06** at limit **
  12  norm          .10000E-03    40.079       -.17285E-05** at limit **
  13  norm          24.712        9.4341       -.62981E-07   -.12404E-03
  14  Prefactor     .10000E-03    3.5652        .11484E-07** at limit **
  15  norm          .10001E-03    5.4139       -.11821E-05** at limit **
  16  norm          .76438        2.7236        .17182E-05    .52326E-03
  17  norm          16.541        13.126        .11480E-06    .40244E-04
  18  Prefactor     .10000E-03    12.470        .47445E-07** at limit **
  19  Prefactor     .10000E-03    17.492       -.62259E-07** at limit **
  20  Prefactor     46.653        26.042        .17202E-05    .16206E-04
  21  Prefactor     .10000E-03    14.861        .12544E-06** at limit **
  22  Prefactor     .10000E-03    3.4761        .49613E-08** at limit **
  23  Prefactor     .10103E-03    17.563        .22703E-05** at limit **
  24  norm          7.8383        8.2392        .16550E-06    .89989E-05
  25  norm          .10000E-03    41.123       -.98057E-06** at limit **
  26  Normalizat    .80175        .32795       -.16214E-05   -.12262E-03
  27  Prefactor     1.1639        .15054       -.35387E-06   -.22947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.3121
  Prefactor  = 0.000100001
  Prefactor  = 1.74496
  Prefactor  = 0.0001
  Prefactor  = 5.03539
  Prefactor  = 10.6967
  Prefactor  = 27.2168
  norm       = 2.06398
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 24.7124
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.764385
  norm       = 16.541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101028
  norm       = 7.83831
  norm       = 0.000100001
  Normalizat = 0.801749
  Prefactor  = 1.16391
 **********
 **   18 **HESSE 
 **********

 FCN=   5601.825     FROM HESSE     STATUS=OK           486 CALLS     3320 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    169.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.312        27.432        .76672E-04   -1.4662    
   4  Prefactor     .10000E-03    32.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7450        109.37        .31970E-03   -1.5444    
   6  Prefactor     .10000E-03    2.9819        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0354        2.5916        .84109E-04   -1.5259    
   8  Prefactor     10.697        12.353        .12249E-03   -1.5054    
   9  Prefactor     27.217        18.195        .76785E-04   -1.4664    
  10  norm          2.0640        1.5493        .76592E-04   -1.5421    
  11  Prefactor     .10000E-03    58.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    41.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.712        9.4101        .80575E-04   -1.4713    
  14  Prefactor     .10000E-03    3.5782        .13782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    15.081        .31871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .76438        2.7153        .22572E-03   -1.5533    
  17  norm          16.541        13.084        .98466E-04   -1.4894    
  18  Prefactor     .10000E-03    12.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.653        24.310        .58712E-04   -1.4341    
  21  Prefactor     .10000E-03    14.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4783        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10103E-03    102.42        .50128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.8383        8.2350        .14323E-03   -1.5148    
  25  norm          .10000E-03    41.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80175        .36021        .46161E-03   -1.0000    
  27  Prefactor     1.1639        .16830        .18268E-03   -.87449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08234e-08
Minuit parameter uncertainties:
  1  6.14584e-05
  2  0.00125823
  3  27.4449
  4  0.000256395
  5  27.6812
  6  1.12298e-06
  7  2.59161
  8  12.356
  9  18.1985
  10  1.54938
  11  0.000747562
  12  0.000472206
  13  9.41066
  14  1.64974e-06
  15  0.0006978
  16  2.71578
  17  13.0862
  18  1.41231e-05
  19  2.03031e-05
  20  24.3148
  21  3.38053e-05
  22  1.82655e-07
  23  0.0205603
  24  8.23623
  25  0.000433997
  26  0.361289
  27  0.168381
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.471e+01  9.411e+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.164e+00  1.684e-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:  8.017e-01  3.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.59
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 7.59e-08
Energy Flux (Fixed Index): 7.05e-05 +/- 2.69e-05

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) = 5601.27558327
delta logL = 0.549256660091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5601.2082817
delta logL = 0.616558234248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.998       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9519       1.0000          .0000       5.0000    
     3 'Normalizat'    .84794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1539       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=   5601.208     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.998        13.232        .18928E-02    .11586E-02
   2  alpha         1.9519        .38700        .22630        .67047E-05
   3  Normalizat    .84793        .31616        .10159        .22533E-04
   4  Prefactor     1.1539        .14769        .35825E-01   -.96463E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 27.9981
  alpha      = 1.95195
  Normalizat = 0.847928
  Prefactor  = 1.15388
 **********
 **   18 **HESSE 
 **********

 FCN=   5601.208     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.998        10.943        .75714E-04   -1.4649    
   2  alpha         1.9519        .33811        .94019E-02   -.22102    
   3  Normalizat    .84793        .35247        .45024E-03   -.98315    
   4  Prefactor     1.1539        .16597        .18338E-03   -.87763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90747e-10
Minuit parameter uncertainties:
  1  10.9436
  2  0.339201
  3  0.353426
  4  0.166043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66630': 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) = 5601.2082817
delta logL = 0.616558235283

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.800e+01  1.094e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  1.952e+00  3.392e-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.154e+00  1.660e-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:  8.479e-01  3.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.82
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 1.95 +/- 0.34
Photon Flux (Free Index): 1.46e-07 +/- 7.51e-08
Energy Flux (Free Index): 8.89e-05 +/- 4.20e-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/66630/cmap_HighResolution_483753601_484012801_4FGL_J1258.8-2219_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='8.89e-05', photon_flux_error='7.59e-08', dlogl='6.17e-01', energy_flux='7.05e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-06 13:25:16.263217', photon_index_error2='0.34', photon_index2='1.95', ts='17.59', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='0.80', time_epoch_completed='1630959916.26', return_code='0', job_id='66630', GAL2='1.15', EG2='0.85', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='7.51e-08', ts2='18.82', photon_index='2.33' WHERE bin_id='943' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 66630: <4FGL_J1258.8-2219_daily_bin943> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin943> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 13:10:55 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:10:56 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:10:56 2021
Terminated at Mon Sep  6 13:25:16 2021
Results reported at Mon Sep  6 13:25:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin943 194.717 -22.3257 483753601 484012801 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

