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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1304
RA = 194.945, Dec = -32.3898
tmin = 577324801, tmax = 577584001
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='89967', job_status='RUN', time_executed='2021-09-06 14:22:00.593439', time_epoch_executed='1630963320.59' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89967

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89967/ft1_4FGL_J1259.7-3223_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89967/ft1_4FGL_J1259.7-3223_daily_bin1304.fits outfile=/scratch/kocevski/89967/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1304.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=577324801.0 tmax=577584001.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.08
user 2.84
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.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/89967/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/89967/ltcube_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.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/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits
.....................!
real 12.70
user 12.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/89967/ltcube_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits outfile=/scratch/kocevski/89967/expmap_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.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/89967/ltcube_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits
.....................!
real 191.35
user 185.40
sys 5.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 192 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 J1259.7-3223 @ 194.945 -32.3898

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits outfile=/scratch/kocevski/89967/cmap_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.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.945 yref=-32.3898 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.65
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits outfile=/scratch/kocevski/89967/cmap_HighResolution_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.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.945 yref=-32.3898 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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89967/Model_4FGL_J1259.7-3223_daily_bin1304.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/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits........!
real 15.71
user 13.86
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits', '/scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits', expMap='/scratch/kocevski/89967/expmap_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits', expCube='/scratch/kocevski/89967/ltcube_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89967/Model_4FGL_J1259.7-3223_daily_bin1304.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.7-3223'

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.897e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/89967/ft1_filtered_4FGL_J1259.7-3223_daily_bin1304.fits
Spacecraft file(s): /scratch/kocevski/89967/ft2_4FGL_J1259.7-3223_daily_bin1304.fits
Exposure map: /scratch/kocevski/89967/expmap_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits
Exposure cube: /scratch/kocevski/89967/ltcube_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89967/Model_4FGL_J1259.7-3223_daily_bin1304.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 103.492805249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 102.812853981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    187.00       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.429       1.0000         .10000E-03   10000.    
     4 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5725       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7776       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1691       1.0000         .10000E-03   10000.    
     8 'norm      '    .48467       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7078       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61815       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3035       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9903       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1522       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5390       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0324       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .43140       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   101.6193     FROM MIGRAD    STATUS=CONVERGED    432 CALLS      656 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.06        79.560        .12311E-02    .14550E-02
   2  Prefactor     259.52        222.50        .73821E-03   -.47305E-01
   3  Prefactor     121.69        232.45        .18785E-02   -.11520E-01
   4  norm          .10000E-03    24.541        .90712E-02** at limit **
   5  Prefactor     .85987        9318.2        .34228E-02    .32095E-02
   6  norm          4.7776        1.0056         .0000         .0000    
   7  Prefactor     1.1691        1.1478         .0000         .0000    
   8  norm          .10158E-03    .31405        .84845E-05** at limit **
   9  Prefactor     4114.0        20.683        .11732E-03   -.96451E-03
  10  norm          .78685E-03    .63284E-01   -.90581E-05** at limit **
  11  Prefactor     .13336E-03    .34480       -.54449E-05** at limit **
  12  norm          1.3035        1.1038         .0000         .0000    
  13  norm          5.4290        1.0043         .0000         .0000    
  14  Prefactor     1.2961        1.1056         .0000         .0000    
  15  Prefactor     9.9903        1.0013         .0000         .0000    
  16  norm          3.1522        1.0132         .0000         .0000    
  17  norm          7.5390        1.0022         .0000         .0000    
  18  norm          2.0324        1.0340         .0000         .0000    
  19  Normalizat    .10000E-01    .25748       -.60799E-04** at limit **
  20  Prefactor     .17283E-09    .36982        .42977E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.06
  Prefactor  = 259.52
  Prefactor  = 121.694
  norm       = 0.0001
  Prefactor  = 0.859873
  norm       = 4.77765
  Prefactor  = 1.1691
  norm       = 0.000101581
  Prefactor  = 4114.02
  norm       = 0.000786848
  Prefactor  = 0.000133357
  norm       = 1.30348
  norm       = 5.42897
  Prefactor  = 1.29613
  Prefactor  = 9.99031
  norm       = 3.15221
  norm       = 7.53902
  norm       = 2.0324
  Normalizat = 0.01
  Prefactor  = 1.7283e-10
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   101.6193     FROM HESSE     STATUS=FAILED        21 CALLS      677 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.06        79.560        .12311E-02   -1.3654    
   2  Prefactor     259.52        222.50        .73821E-03   -1.2472    
   3  Prefactor     121.69        232.45        .18785E-02   -1.7919    
   4  norm          .10000E-03    24.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .85987        9318.2        .34228E-02   -1.5523    
   6  norm          533.77        528.94         .0000       -1.5271    
   7  Prefactor     1.1691        1.1478         .0000       -1.5492    
   8  norm          .10158E-03    .31405        .84845E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4114.0        20.683        .11732E-03   -.17814    
  10  norm          .78685E-03    .63284E-01   -.90581E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13336E-03    .34480       -.54449E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3035        1.1038         .0000       -1.5480    
  13  norm          5.4290        1.0043         .0000       -1.5242    
  14  Prefactor     1.2961        1.1056         .0000       -1.5480    
  15  Prefactor     9.9903        1.0013         .0000       -1.5076    
  16  norm          3.1522        1.0132         .0000       -1.5353    
  17  norm          7.5390        1.0022         .0000       -1.5159    
  18  norm          2.0324        1.0340         .0000       -1.5423    
  19  Normalizat    .10000E-01    .25748       -.60799E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .17283E-09    .36982        .42977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.65629e-09
Minuit parameter uncertainties:
  1  79.6408
  2  223.231
  3  234.225
  4  0.000110247
  5  222.892
  6  1.00558
  7  1.14786
  8  0.00140929
  9  20.6833
  10  0.0131859
  11  0.00678288
  12  1.10385
  13  1.0043
  14  1.10561
  15  1.00126
  16  1.01317
  17  1.00222
  18  1.03401
  19  9.61292e-06
  20  1.60897e-05
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 101.619329564

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.016e-04  1.409e-03  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.728e-10  1.609e-05  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.000e-02  9.613e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 4.08e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89967/likelihoodResults_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.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): 102
logL (Free Index) = 101.619335291
delta logL = -5.72655800113e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 101.619335051
delta logL = -5.4868819177e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96203E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3235       1.0000          .0000       5.0000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .13653E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   101.6193     FROM MIGRAD    STATUS=FAILED        97 CALLS      244 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19240E-03    9991.7        .18146E-01** at limit **
   2  alpha         1.5130        3.2401        .16513        .88938E-07
   3  Normalizat    .10000E-01    .89423E-01    .95548E-02** at limit **
   4  Prefactor     .58892E-11    .12227E-01    .42381E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   101.6193     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      372 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19240E-03    9991.7        .52224E-02** at limit **
   2  alpha         1.5130        3.2401        .23335E-04    .88938E-07
   3  Normalizat    .10000E-01    .89423E-01    .67919E-02** at limit **
   4  Prefactor     .58892E-11    .12227E-01    .17281E-02** at limit **
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   101.6193     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      422 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    9260.7        .36291E-01** at limit **
   2  alpha         1.1542        3.0118        .50000        .54609E-08
   3  Normalizat    .10000E-01    .37671E-01    .19110E-02** at limit **
   4  Prefactor     .57637E-11    .51343E-02    .84761E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100134
  alpha      = 1.15419
  Normalizat = 0.01
  Prefactor  = 5.76372e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   101.6193     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      451 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10013E-03    5106.4        .52843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1542        2.6334        .50000       -.56845    
   3  Normalizat    .10000E-01    .25578        .38219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57637E-11    .35087E-01    .16952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08354e-10
Minuit parameter uncertainties:
  1  0.219329
  2  18642.6
  3  7.98992e-06
  4  8.99921e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89967': 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) = 101.61932953
delta logL = 3.40352386274e-08

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.001e-04  2.193e-01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.154e+00  1.864e+04  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  5.764e-12  8.999e-07  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.000e-02  7.990e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.945 -32.390

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/89967/cmap_HighResolution_577324801_577584001_4FGL_J1259.7-3223_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='4.08e-05', time_completed='2021-09-06 14:28:42.175265', job_id='89967', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630963722.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='3.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1304' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:28:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 89967: <4FGL_J1259.7-3223_daily_bin1304> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin1304> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:20:24 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:20:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:20:25 2021
Terminated at Mon Sep  6 14:28:42 2021
Results reported at Mon Sep  6 14:28:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1304 194.945 -32.3898 577324801 577584001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.7-3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   325.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            498 sec.

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

