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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin978
RA = 194.717, Dec = -22.3257
tmin = 492825601, tmax = 493084801
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='68067', job_status='RUN', time_executed='2021-09-06 13:20:20.790316', time_epoch_executed='1630959620.79' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68067/ft1_4FGL_J1258.8-2219_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68067/ft1_4FGL_J1258.8-2219_daily_bin978.fits outfile=/scratch/kocevski/68067/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin978.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=492825601.0 tmax=493084801.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.79
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/68067/ltcube_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.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/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits
.....................!
real 12.70
user 12.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/68067/ltcube_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits outfile=/scratch/kocevski/68067/expmap_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.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/68067/ltcube_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits
.....................!
real 190.36
user 185.44
sys 4.39

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/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits scfile=/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits outfile=/scratch/kocevski/68067/cmap_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits scfile=/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits outfile=/scratch/kocevski/68067/cmap_HighResolution_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.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/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68067/Model_4FGL_J1258.8-2219_daily_bin978.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/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits.....................!
real 96.42
user 94.86
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits', '/scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits', expMap='/scratch/kocevski/68067/expmap_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits', expCube='/scratch/kocevski/68067/ltcube_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68067/Model_4FGL_J1258.8-2219_daily_bin978.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/68067/ft1_filtered_4FGL_J1258.8-2219_daily_bin978.fits
Spacecraft file(s): /scratch/kocevski/68067/ft2_4FGL_J1258.8-2219_daily_bin978.fits
Exposure map: /scratch/kocevski/68067/expmap_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits
Exposure cube: /scratch/kocevski/68067/ltcube_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68067/Model_4FGL_J1258.8-2219_daily_bin978.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5812.48876963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    125.41       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18838E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56536E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5736       1.0000         .10000E-03   10000.    
    10 'norm      '    .26332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8328       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6019       1.0000         .10000E-03   10000.    
    25 'norm      '    26.646       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3569       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89523       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=   5812.440     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     2874 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    35.435       -.42124E-05** at limit **
   2  Prefactor     125.46        14.539        .87318E-07   -.18081E-01
   3  Prefactor     19.531        9.3216        .10071E-06    .35048E-02
   4  Prefactor     .10399E-03    39.707        .26623E-05** at limit **
   5  Prefactor     .96168        2.7807       -.26199E-06    .19476E-03
   6  Prefactor     .10000E-03    2.6270        .56570E-06** at limit **
   7  Prefactor     .29544        1.6208       -.87694E-07    .99447E-05
   8  Prefactor     .93933        83.892        .46714E-05    .60550E-04
   9  Prefactor     9.6026        2.1846        .13417E-06   -.11085E-03
  10  norm          .26346        .72594       -.43794E-06   -.53770E-03
  11  Prefactor     .10004E-03    42.954        .67017E-06** at limit **
  12  norm          .10000E-03    3.1004       -.94385E-06** at limit **
  13  norm          21.211        8.9958        .28305E-06   -.28042E-03
  14  Prefactor     .10000E-03    5.4533        .14151E-05** at limit **
  15  norm          3.8462        1.6574       -.17974E-06    .57520E-02
  16  norm          .10000E-03    2.0226        .36297E-06** at limit **
  17  norm          .10000E-03    5.6053       -.10279E-05** at limit **
  18  Prefactor     .10000E-03    7.8818        .14075E-06** at limit **
  19  Prefactor     30.243        29.329        .30815E-06    .56601E-03
  20  Prefactor     11.151        2.2275        .19445E-06   -.20212E-02
  21  Prefactor     .10337E-03    39.366        .28478E-05** at limit **
  22  Prefactor     .10000E-03    7.4654        .12017E-05** at limit **
  23  Prefactor     .10000E-03    10.805        .12857E-05** at limit **
  24  norm          1.6081        5.7449       -.18866E-06   -.76672E-04
  25  norm          26.653        2.2791        .22957E-07    .10967E-02
  26  Normalizat    1.3547        .33413       -.11935E-05    .11101E-03
  27  Prefactor     .89522        .14684        .11012E-05    .28197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 125.457
  Prefactor  = 19.5313
  Prefactor  = 0.000103994
  Prefactor  = 0.961681
  Prefactor  = 0.0001
  Prefactor  = 0.295442
  Prefactor  = 0.939325
  Prefactor  = 9.60256
  norm       = 0.26346
  Prefactor  = 0.000100044
  norm       = 0.0001
  norm       = 21.2114
  Prefactor  = 0.0001
  norm       = 3.8462
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.2433
  Prefactor  = 11.1505
  Prefactor  = 0.000103375
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.60808
  norm       = 26.6532
  Normalizat = 1.35471
  Prefactor  = 0.895217
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.440     FROM HESSE     STATUS=OK           544 CALLS     3418 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    35.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     125.46        85.911        .89863E-03   -1.3463    
   3  Prefactor     19.531        26.803        .22663E-02   -1.4824    
   4  Prefactor     .10399E-03    76.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .96168        26.841        .12654       -1.5512    
   6  Prefactor     .10000E-03    2.6223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .29544        1.6208        .10401E-01   -1.5599    
   8  Prefactor     .93933        82.184        .93019E-02   -1.5514    
   9  Prefactor     9.6026        17.380        .32379E-02   -1.5088    
  10  norm          .26346        .75583        .24960E-01   -1.5605    
  11  Prefactor     .10004E-03    43.422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.211        9.0521        .21743E-02   -1.4787    
  14  Prefactor     .10000E-03    5.3907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8462        6.2072        .51538E-02   -1.5316    
  16  norm          .10000E-03    1.9902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.5791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.243        33.487        .18238E-02   -1.4608    
  20  Prefactor     11.151        14.943        .30021E-02   -1.5040    
  21  Prefactor     .10337E-03    69.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6081        5.8181        .83732E-02   -1.5454    
  25  norm          26.653        25.355        .19402E-02   -1.4675    
  26  Normalizat    1.3547        .29322        .79941E-01   -.81948    
  27  Prefactor     .89522        .12532        .44944E-01   -.96308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0181e-06
Minuit parameter uncertainties:
  1  0.00156043
  2  85.9961
  3  26.8196
  4  0.0348941
  5  10.1657
  6  2.51854e-05
  7  1.3838
  8  17.5964
  9  17.3895
  10  0.755858
  11  0.00275216
  12  4.51867e-05
  13  9.05271
  14  9.13735e-05
  15  6.20821
  16  1.39966e-05
  17  6.71146e-05
  18  0.000166815
  19  33.5081
  20  14.9484
  21  0.0306701
  22  0.000216357
  23  0.00015997
  24  5.82018
  25  25.3654
  26  0.293582
  27  0.125356
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.121e+01  9.053e+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:  8.952e-01  1.254e-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.355e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.99
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 7.30e-08
Energy Flux (Fixed Index): 6.05e-05 +/- 2.58e-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) = 5812.1404228
delta logL = 0.299390814212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.13148287
delta logL = 0.308330750143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.157       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6893       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91199       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=   5812.131     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.157        9.9822        .96695E-04   -.55294E-03
   2  alpha         2.6893        .48890        .87826E-02   -.92088E-04
   3  Normalizat    1.2933        .33457        .36070E-03    .42928E-04
   4  Prefactor     .91199        .14770        .18940E-03    .18974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1569
  alpha      = 2.68929
  Normalizat = 1.29333
  Prefactor  = 0.91199
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.131     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.157        9.5700        .38678E-05   -1.4879    
   2  alpha         2.6893        .46832        .35131E-03    .75788E-01
   3  Normalizat    1.2933        .33403        .14428E-04   -.83766    
   4  Prefactor     .91199        .14757        .37880E-04   -.95723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26132e-10
Minuit parameter uncertainties:
  1  9.5709
  2  0.471124
  3  0.334592
  4  0.147633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68067': 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) = 5812.13148284
delta logL = 0.308330776416

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.716e+01  9.571e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.689e+00  4.711e-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:  9.120e-01  1.476e-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.293e+00  3.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.56
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 2.69 +/- 0.47
Photon Flux (Free Index): 2.26e-07 +/- 1.12e-07
Energy Flux (Free Index): 5.78e-05 +/- 2.33e-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/68067/cmap_HighResolution_492825601_493084801_4FGL_J1258.8-2219_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='5.78e-05', photon_flux_error='7.30e-08', dlogl='3.08e-01', energy_flux='6.05e-05', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-06 13:31:41.297272', photon_index_error2='0.47', photon_index2='2.69', ts='10.99', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='1.35', time_epoch_completed='1630960301.3', return_code='0', job_id='68067', GAL2='0.91', EG2='1.29', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='1.12e-07', ts2='11.56', photon_index='2.33' WHERE bin_id='978' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:31:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 68067: <4FGL_J1258.8-2219_daily_bin978> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin978> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:16:07 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:16:08 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:16:08 2021
Terminated at Mon Sep  6 13:31:41 2021
Results reported at Mon Sep  6 13:31:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin978 194.717 -22.3257 492825601 493084801 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 :                                   675.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

